signoz-mcp-setup

작성자: signoz

Initialize or repair SigNoz MCP server configuration for Claude Code, Codex, Cursor, VS Code/GitHub Copilot, Claude Desktop, Gemini CLI, Devin CLI, Windsurf,…

npx skills add https://github.com/signoz/agent-skills --skill signoz-mcp-setup

SigNoz MCP Setup

Initialize or repair the SigNoz MCP server registration shipped with this plugin. The target state is one working signoz MCP server. Do not create a duplicate server unless the user explicitly asks for a separate configuration.

Shared reference

Read references/mcp-settings.md before checking state, mapping user input, or editing registration files. It contains the server-state check, registration file locations, editing rules, and region mapping used by this procedure.

Read references/client-configs.md when the user names a client other than the bundled Claude Code, Codex, or Cursor plugin path, when a native client config already exists, or when self-hosted stdio/local-binary setup is requested.

Configuration procedure

Step 1: Identify the client

Determine this before checking state — it decides where state is allowed to be checked from.

Use the client named in $ARGUMENTS or the user's latest message. If no client is named, infer it only when the active environment is obvious (which agent CLI or editor is running this skill, not just what files happen to exist on disk):

  • Claude Code, Codex, or Cursor plugin install: use the bundled plugin registration files.
  • VS Code / GitHub Copilot, Claude Desktop, Gemini CLI, Devin CLI, Windsurf, Zed, Antigravity CLI, or OpenCode: use the matching native client recipe in client-configs.md.
  • Unknown or unsupported client: use the generic HTTP MCP recipe and point the user to the SigNoz MCP Server docs for their client's exact config surface.

If you need to edit a native client config and the client is still ambiguous, ask which client they want to configure.

Step 2: Check state

Silently determine the SigNoz MCP server state using the reference flow, scoped to the client identified in Step 1:

Probe with signoz_list_services(timeRange: "1h", limit: 1). Do not use docs tools (signoz_search_docs or signoz_fetch_doc) for this check.

  • For a Claude Code, Codex, or Cursor bundled plugin install, the reference flow's registration-file fallback applies.
  • For every other client — including Devin CLI — do not read or search for .signoz_claude_mcp.json, .mcp.json, or .signoz_cursor_mcp.json. Those are bundled files for a different client's plugin distribution and are irrelevant here even if a file-search tool happens to find them (for example when this skill is linked from a local checkout of the agent-skills source repo itself, which ships all three files side by side). Check that client's own native config location instead, per client-configs.md.

State outcomes:

  • workingsignoz_list_services succeeded; continue with the user's original SigNoz request.
  • not-setup — run Step 3.
  • configured-but-not-working — if the user provided a new region or MCP URL, run Step 3. Otherwise tell them the SigNoz MCP server is configured but not connected, then ask for the SigNoz Cloud region or MCP URL to repair it. If they believe the endpoint is already correct, tell them to complete the client authentication step in Step 5.

Do not fall back to raw HTTP calls for SigNoz data when MCP is unavailable. The MCP server is the supported API surface for this plugin's live SigNoz workflows.

The workflow skills assume the current SigNoz MCP server contract. If a SigNoz tool reports schema or parameter errors that contradict the skill instructions, repair or update the MCP server connection instead of inventing alternate raw HTTP calls or teaching legacy parameters.

Step 3: Resolve the endpoint

Use $ARGUMENTS or the user's latest message if it already contains a region or URL. Otherwise ask for one of:

  • SigNoz Cloud region: us, us2, eu, eu2, in, in2, or a newer region code
  • SigNoz Cloud MCP URL, such as https://mcp.us.signoz.cloud/mcp
  • Self-hosted HTTP MCP URL, such as http://localhost:8000/mcp

Map the response using mcp-settings.md. If the user gives only a SigNoz workspace URL such as https://your-instance.signoz.cloud, do not guess the region from it. Ask them to check Settings -> Ingestion in SigNoz and provide the region.

Do not ask for an API key for SigNoz Cloud setup. OAuth asks for the instance URL and service account API key after the hosted MCP URL is configured. For self-hosted SigNoz, prefer HTTP mode when the user gives an /mcp endpoint. For stdio/local-binary mode, collect the binary path, SigNoz URL, and API key only if the user explicitly asks you to configure that mode. For clients that cannot complete interactive OAuth, use the header-based fallback in client-configs.md only when the user asks for it or the client requires it.

Step 4: Apply the endpoint

For bundled Claude Code, Codex, and Cursor plugin installs, edit the registration files using the reference editing rules:

  1. In .signoz_claude_mcp.json for Claude Code, replace only the url value with the resolved MCP endpoint. Preserve the existing server key and type: this file ships the server key mcp, and renaming it changes the tool namespace (plugin:signoz:mcp) and forces re-authentication.
  2. In .mcp.json for Codex, replace only the url value with the resolved MCP endpoint, preserving the existing signoz server key.
  3. In .signoz_cursor_mcp.json for Cursor, replace only the url value with the resolved MCP endpoint, preserving the existing signoz server key.
  4. Preserve unrelated MCP servers and settings.

Claude Code target shape (keep the mcp server key and type):

{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.us.signoz.cloud/mcp"
    }
  }
}

Codex and Cursor target shape (keep the signoz server key):

{
  "mcpServers": {
    "signoz": {
      "url": "https://mcp.us.signoz.cloud/mcp"
    }
  }
}

If either bundled file still uses any SIGNOZ_MCP_URL wrapper from an older version, replace it with the concrete resolved URL.

Bundled registration files live inside the installed plugin. Plugin updates can reset them to the placeholder; if that happens, rerun this setup skill. For a more durable native-client setup, use the relevant recipe in client-configs.md.

For Codex, if the user says the endpoint reset again, keeps resetting, or asks for a durable/persistent setup, also create or update the native Codex MCP server entry after resolving the endpoint:

codex mcp add signoz --url <resolved-mcp-url>

This writes the user-level [mcp_servers.signoz] entry in Codex config and survives plugin cache updates. If editing TOML directly, preserve unrelated config and only set url for mcp_servers.signoz.

For native client setup, use client-configs.md:

  • Edit an existing native client config only when the user named that client or the target file is clearly the active config for the task.
  • Create a new native client config only when the user asks for that client to be configured.
  • Never write service account API keys, bearer tokens, or header-based auth values into tracked project files. Prefer client OAuth for SigNoz Cloud, user-level config, environment-variable references, or short commands the user can run locally.
  • Preserve unrelated MCP servers and existing client settings.
  • Keep the server name signoz in native client configs (the bundled Claude Code plugin file is the only one that uses the mcp key — do not rename it).

Auth and role diagnosis

Backend RBAC classifies MCP failures from the API key's user role: reads need at least viewer; alert/dashboard writes need editor or admin; notification-channel management and API-key creation need admin. 401 / UNAUTHORIZED means the credential is missing, invalid, or expired: check configuration/presence first, then reauthenticate or reissue as appropriate. 403 / PERMISSION_DENIED means credentials are valid but under-privileged. Have a sufficiently privileged user act or issue a dedicated minimum-role key; never paste elevated keys into chat or tracked config.

Step 5: Tell the user how to finish

Tell the user that the SigNoz MCP endpoint has been configured, then give the client-specific authentication step:

  • Cursor — reload the window, then authenticate the signoz MCP server in Tools & MCP if prompted.
  • VS Code / GitHub Copilot — open Copilot Chat in Agent mode, approve the signoz server if prompted, then complete the authentication flow.
  • Codex — restart Codex if the server does not appear. For SigNoz Cloud, run codex mcp login signoz to complete OAuth, then verify with /mcp. For a self-hosted HTTP endpoint (no OAuth unless the server runs with OAUTH_ENABLED=true), skip the login step and just verify with /mcp that the already-authenticated signoz server is connected.
  • Claude Code — restart Claude Code if the server does not appear, then run /mcp, select signoz, and complete authentication.
  • Claude Desktop — for SigNoz Cloud or publicly reachable self-hosted HTTP, reconnect the custom connector and complete authentication when prompted. Private-network or localhost endpoints need local stdio because remote connectors originate from Anthropic's cloud. Restart Claude Desktop after a local stdio change so it reloads claude_desktop_config.json; that file is only for command-based registration, not a hosted URL.
  • Gemini CLI — restart Gemini CLI if needed, then run /mcp auth signoz.
  • Devin CLI — start a new session so the updated .devin/config.json is picked up. For SigNoz Cloud, run devin mcp login signoz to complete OAuth. For a self-hosted or header-based endpoint, no OAuth step is expected.
  • Windsurf — reload Windsurf and complete authentication when prompted.
  • Zed — reload Zed after config changes; self-hosted stdio mode reads the configured environment from the context server entry.
  • Antigravity CLI — type /mcp, select the signoz server, and choose Authenticate to start the OAuth flow (complete it in the browser). Self-hosted endpoints need no OAuth unless the server runs with OAUTH_ENABLED=true. If authentication is stuck, clear cached dynamic auth providers and retry.
  • OpenCode — run opencode mcp auth signoz if authentication does not start automatically, then verify with opencode mcp list.

Keep the response short. Do not expose registration file paths, placeholder values, environment variable names, API keys, tokens, or file contents unless the user explicitly asks for implementation details.

signoz의 다른 스킬

signoz-explaining-dashboards
signoz
이 스킬은 SigNoz MCP 서버 도구(signoz:signoz_get_dashboard, signoz:signoz_list_dashboards)를 호출합니다. 워크플로를 실행하기 전에 signoz:signoz_* 도구를 사용할 수 있는지 확인하세요. 사용할 수 없는 경우 SigNoz MCP 서버가 설치 또는 구성되지 않은 것이므로 중단하고 사용자에게 설정 방법을 안내하세요: https://signoz.io/docs/ai/signoz-mcp-server/ . 대시보드의 제목만으로 내용을 추측하지 마세요.
official
signoz-generating-queries
signoz
이 스킬은 SigNoz MCP 서버 도구들(signoz:signoz_execute_builder_query, signoz:signoz_query_metrics, signoz:signoz_search_logs, signoz:signoz_search_traces, signoz:signoz_aggregate_logs, signoz:signoz_aggregate_traces, signoz:signoz_get_field_keys, signoz:signoz_get_field_values, signoz:signoz_list_metrics, signoz:signoz_list_services, signoz:signoz_get_service_top_operations, signoz:signoz_get_trace_details)을 많이 호출합니다. 워크플로우를 실행하기 전에 다음을 확인하세요...
official
signoz-clickhouse-query
signoz
사용자가 SigNoz 쿼리를 요청할 때 이 스킬을 사용하세요:
official
signoz-docs
signoz
사용자가 SigNoz 계측, OpenTelemetry 설정, 쿼리, 대시보드, 알림, 문제 해결, 자체 호스팅 등에 대해 물을 때마다 이 스킬을 먼저 사용하세요.
official
signoz-searching-docs
signoz
공식 signoz.io 문서와 API 참조만 사용하세요. 모든 답변은 가져온 문서 내용에 근거하고 공식 문서 URL을 인용하세요.
official
signoz-writing-clickhouse-queries
signoz
사용자가 SigNoz 쿼리와 관련된 다음 사항을 요청할 때 이 스킬을 사용하세요:
official
signoz-creating-alerts
signoz
사용자의 자연어 의도로부터 SigNoz 알림을 구축합니다. 이 스킬은 두 가지 소비자를 대상으로 합니다: 사람의 개입 없이 실행되는 자율 AI SRE 에이전트와 Claude Code / Codex / Cursor 프롬프트에서 작업하는 인간입니다. 둘 다 동일한 흐름을 따르며, 인간은 미리보기 단계에서 개입할 기회를 얻습니다.
official
signoz-creating-dashboards
signoz
이 스킬은 SigNoz MCP 서버 도구(signoz:signoz_create_dashboard, signoz:signoz_list_dashboards, signoz:signoz_list_dashboard_templates, signoz:signoz_import_dashboard, signoz:signoz_list_metrics, signoz:signoz_get_field_values, signoz:signoz_aggregate_logs, signoz:signoz_aggregate_traces 등)를 호출합니다. 워크플로우를 실행하기 전에 signoz:signoz_* 도구를 사용할 수 있는지 확인하세요. 사용할 수 없는 경우 SigNoz MCP 서버가 설치 또는 구성되지 않은 것이므로 중단하고 사용자에게 설정하도록 안내합니다...
official