SigNoz
Why SigNozDocs
PricingCustomer Stories
Docs
IntroductionContributingMigrate from DatadogSigNoz API
OpenTelemetry
What is OpenTelemetryOpenTelemetry Collector GuideOpenTelemetry Demo
Community
Support
Slack
X
Launch Week
Changelog
Dashboard Templates
DevOps Wordle
Newsletter
KubeCon, Atlanta 2025
More
SigNoz vs DatadogSigNoz vs New RelicSigNoz vs GrafanaSigNoz vs Dynatrace
Careers
AboutTermsPrivacySecurity & Compliance
SigNoz Logo
SigNoz
All systems operational
HIPAASOC-2
SigNoz Cloud - This page applies to SigNoz Cloud editions.
Self-Host - This page applies to self-hosted SigNoz editions.

SigNoz MCP Server

The SigNoz MCP Server implements the Model Context Protocol (MCP) — an open standard that lets AI assistants interact with your SigNoz observability data. Query metrics, traces, logs, alerts, and dashboards through natural language.

If you've already set up the MCP server, skip ahead to the use cases to see what you can do with it.

Connect to SigNoz's MCP server

Connect your AI tool to SigNoz Cloud's hosted MCP server. No installation required — just add the URL and authenticate.

https://mcp.<region>.signoz.cloud/mcp

Make sure you select the correct region that matches your SigNoz Cloud account. Using the wrong region will result in authentication failures.

  • <region>: Your SigNoz Cloud region. Find your region under Settings → Ingestion in SigNoz, or see the region reference.

Install in one click

Manual Configuration

Add this configuration to .cursor/mcp.json:

{
  "mcpServers": {
    "signoz": {
      "url": "https://mcp.<region>.signoz.cloud/mcp"
    }
  }
}
  • <region>: Your SigNoz Cloud region

Need help? See the Cursor MCP docs ↗

Install in one click

Manual Configuration

Add this configuration to .vscode/mcp.json:

{
  "servers": {
    "signoz": {
      "type": "http",
      "url": "https://mcp.<region>.signoz.cloud/mcp"
    }
  }
}
  • <region>: Your SigNoz Cloud region

Need help? See the VS Code MCP docs ↗

Configure

You can add SigNoz Cloud as a custom connector in Claude Desktop:

  1. Open Claude Desktop.
  2. Go to Settings → Developer (or Features depending on your version).
  3. Click Add Custom Connector or Add Remote MCP Server.
  4. Enter your SigNoz MCP URL: https://mcp.<region>.signoz.cloud/mcp
  • <region>: Your SigNoz Cloud region

When prompted, complete the authentication flow.

Configure

Run this command to add the SigNoz MCP server:

claude mcp add --scope user --transport http signoz https://mcp.<region>.signoz.cloud/mcp
  • <region>: Your SigNoz Cloud region

After configuring the MCP server, you need to authenticate. In a terminal run:

claude /mcp

Select the signoz server and complete the authentication flow.

Configure

Run this command to add the SigNoz MCP server:

codex mcp add signoz --url https://mcp.<region>.signoz.cloud/mcp

Or add this configuration to config.toml:

[mcp_servers.signoz]
url = "https://mcp.<region>.signoz.cloud/mcp"
  • <region>: Your SigNoz Cloud region

After adding the server, authenticate:

codex mcp login signoz

Then run /mcp inside Codex to verify the connection.

Configure

Add the MCP server via CLI:

gemini mcp add -t http signoz https://mcp.<region>.signoz.cloud/mcp

Or add this configuration to ~/.gemini/settings.json:

{
  "mcpServers": {
    "signoz": {
      "httpUrl": "https://mcp.<region>.signoz.cloud/mcp"
    }
  }
}
  • <region>: Your SigNoz Cloud region

After installation, start Gemini CLI and authenticate:

/mcp auth signoz

Configure

Add this configuration to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "signoz": {
      "serverUrl": "https://mcp.<region>.signoz.cloud/mcp"
    }
  }
}
  • <region>: Your SigNoz Cloud region

When prompted, complete the authentication flow.

Configure

  1. Open the MCP Store via the ... menu in the agent panel.
  2. Click Manage MCP Servers.
  3. Add a new server with the SigNoz MCP URL: https://mcp.<region>.signoz.cloud/mcp

Or manually add to mcp_config.json:

{
  "mcpServers": {
    "signoz": {
      "serverUrl": "https://mcp.<region>.signoz.cloud/mcp"
    }
  }
}
  • <region>: Your SigNoz Cloud region

After saving the config, it will prompt you to complete the OAuth flow. To edit the config from within Antigravity, click the ... menu at the top of the Agent pane → MCP Servers → Manage MCP Servers → View raw config.

If you run into authentication issues, open the command palette and run Authentication: Remove Dynamic Authentication Providers to clear cached OAuth credentials and re-authenticate.

Authenticate from your client

When you add the hosted MCP URL to your client, the MCP client will initiate an authentication flow. You will be prompted to enter:

  1. Your SigNoz instance URL (e.g., https://your-instance.signoz.cloud)
  2. Your API key — go to Settings → Service Accounts in SigNoz, create a service account, and generate an API key (requires Admin role). See Service Accounts for details.

SigNoz Cloud's hosted MCP server uses OAuth 2.1 for client-to-MCP authentication. MCP clients discover the auth endpoints from the server metadata, dynamically register as an OAuth client using Dynamic Client Registration (DCR, RFC 7591) when supported, then use Authorization Code + PKCE. During the browser step, SigNoz asks for your SigNoz instance URL and service account API key; the MCP server validates those credentials and issues bearer/refresh tokens for future MCP requests.

SigNoz Cloud's MCP server also supports header-based authentication for clients that can't do OAuth, but the recommended approach is to use OAuth when possible for better security and token management.

Only Admin users can create API keys. If you don't see the option, contact your workspace administrator.

Header-Based Authentication

Some MCP clients (like Cursor Automations) run entirely in the cloud and cannot perform interactive OAuth authentication. For these clients, use header-based authentication by passing your API key and instance URL directly in the request headers.

If your MCP client doesn't support OAuth flows or stdio transport — for example, Cursor Automations: use this header-based configuration instead.

{
  "mcpServers": {
    "signoz": {
      "url": "https://mcp.<region>.signoz.cloud/mcp",
      "headers": {
        "SIGNOZ-API-KEY": "<your-api-key>",
        "X-SigNoz-URL": "<your-signoz-instance-url>"
      }
    }
  }
}
  • <region>: Your SigNoz Cloud region
  • <your-api-key>: API key from SigNoz Service accounts
  • <your-signoz-instance-url>: Your SigNoz Cloud instance URL

Keep your API key secure — never commit mcp.json to version control when it contains secrets.

For self-hosted SigNoz, you run the MCP server locally. The server supports two transport modes: Stdio (local binary, launched by the client) and HTTP (standalone server the client connects to over the network).

Fetch your API key

  1. Log in to your SigNoz instance.
  2. Go to Settings → Service Accounts.
  3. Create a service account, open its Keys tab, click Add Key, and copy the generated key. See Service Accounts for details.

Only Admin users can create API keys. Keep your key secure — never commit it to version control.

Install the MCP server

Download the latest binary from GitHub Releases:

# macOS (Apple Silicon)
curl -L https://github.com/SigNoz/signoz-mcp-server/releases/latest/download/signoz-mcp-server_darwin_arm64.tar.gz | tar xz

# macOS (Intel)
curl -L https://github.com/SigNoz/signoz-mcp-server/releases/latest/download/signoz-mcp-server_darwin_amd64.tar.gz | tar xz

# Linux (amd64)
curl -L https://github.com/SigNoz/signoz-mcp-server/releases/latest/download/signoz-mcp-server_linux_amd64.tar.gz | tar xz

This extracts a signoz-mcp-server binary in the current directory. Move it somewhere on your PATH or note the absolute path for the config below.

go install github.com/SigNoz/signoz-mcp-server/cmd/server@latest

The binary is installed as server to $GOPATH/bin/ (default: $HOME/go/bin/server). You may want to rename it:

mv "$(go env GOPATH)/bin/server" "$(go env GOPATH)/bin/signoz-mcp-server"
docker pull signoz/signoz-mcp-server:latest

Run in HTTP mode:

docker run -p 8000:8000 \
  -e TRANSPORT_MODE=http \
  -e MCP_SERVER_PORT=8000 \
  -e SIGNOZ_URL=<your-signoz-url> \
  -e SIGNOZ_API_KEY=<your-api-key> \
  signoz/signoz-mcp-server:latest
  • <your-signoz-url>: Your self-hosted SigNoz instance URL (e.g., http://localhost:3301)
  • <your-api-key>: The API key from Fetch your API key

Docker always runs in HTTP transport mode. Use the HTTP tabs in the client setup below.

git clone https://github.com/SigNoz/signoz-mcp-server.git
cd signoz-mcp-server
make build

The binary is at ./bin/signoz-mcp-server.

Configure your MCP client

Add the following to .cursor/mcp.json in your project root, or use Cursor → Settings → Tools & Integrations → + New MCP Server:

{
  "mcpServers": {
    "signoz": {
      "command": "<path-to-binary>/signoz-mcp-server",
      "args": [],
      "env": {
        "SIGNOZ_URL": "<your-signoz-url>",
        "SIGNOZ_API_KEY": "<your-api-key>",
        "LOG_LEVEL": "info"
      }
    }
  }
}
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key
  1. Start the MCP server in HTTP mode:
SIGNOZ_URL=<your-signoz-url> \
SIGNOZ_API_KEY=<your-api-key> \
TRANSPORT_MODE=http \
MCP_SERVER_PORT=8000 \
LOG_LEVEL=info \
./signoz-mcp-server
  1. Add to .cursor/mcp.json:
{
  "mcpServers": {
    "signoz": {
      "url": "http://localhost:8000/mcp"
    }
  }
}

Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P) → MCP: Open User Configuration, then add:

{
  "servers": {
    "signoz": {
      "type": "stdio",
      "command": "<path-to-binary>/signoz-mcp-server",
      "args": [],
      "env": {
        "SIGNOZ_URL": "<your-signoz-url>",
        "SIGNOZ_API_KEY": "<your-api-key>",
        "LOG_LEVEL": "info"
      }
    }
  }
}
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key

Open Copilot Chat in Agent mode and confirm you trust the server.

  1. Start the MCP server in HTTP mode.
  2. Add to VS Code MCP config:
{
  "servers": {
    "signoz": {
      "type": "http",
      "url": "http://localhost:8000/mcp"
    }
  }
}

Open Copilot Chat in Agent mode and confirm you trust the server.

Go to Settings → Developer → Edit Config and add to claude_desktop_config.json:

{
  "mcpServers": {
    "signoz": {
      "command": "<path-to-binary>/signoz-mcp-server",
      "args": [],
      "env": {
        "SIGNOZ_URL": "<your-signoz-url>",
        "SIGNOZ_API_KEY": "<your-api-key>",
        "LOG_LEVEL": "info"
      }
    }
  }
}
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key
  1. Start the MCP server in HTTP mode:
SIGNOZ_URL=<your-signoz-url> \
SIGNOZ_API_KEY=<your-api-key> \
TRANSPORT_MODE=http \
MCP_SERVER_PORT=8000 \
LOG_LEVEL=info \
./signoz-mcp-server
  1. Add to claude_desktop_config.json:
{
  "mcpServers": {
    "signoz": {
      "url": "http://localhost:8000/mcp"
    }
  }
}
claude mcp add --scope user signoz "<path-to-binary>/signoz-mcp-server" \
  -e SIGNOZ_URL="<your-signoz-url>" \
  -e SIGNOZ_API_KEY="<your-api-key>" \
  -e LOG_LEVEL=info
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key

Use --scope project to limit to the current project. Remove with claude mcp remove signoz.

  1. Start the MCP server in HTTP mode.
  2. Add via CLI:
claude mcp add --scope user --transport http signoz http://localhost:8000/mcp
codex mcp add signoz \
  --env SIGNOZ_URL="<your-signoz-url>" \
  --env SIGNOZ_API_KEY="<your-api-key>" \
  --env LOG_LEVEL=info \
  -- "<path-to-binary>/signoz-mcp-server"
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key

Edit ~/.codex/config.toml (global) or .codex/config.toml (project):

[mcp_servers.signoz]
command = "<path-to-binary>/signoz-mcp-server"
args = []

[mcp_servers.signoz.env]
SIGNOZ_URL = "<your-signoz-url>"
SIGNOZ_API_KEY = "<your-api-key>"
LOG_LEVEL = "info"

For HTTP mode via CLI or config.toml:

codex mcp add signoz --url http://localhost:8000/mcp
[mcp_servers.signoz]
url = "http://localhost:8000/mcp"

Add this configuration to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "signoz": {
      "command": "<path-to-binary>/signoz-mcp-server",
      "args": [],
      "env": {
        "SIGNOZ_URL": "<your-signoz-url>",
        "SIGNOZ_API_KEY": "<your-api-key>",
        "LOG_LEVEL": "info"
      }
    }
  }
}
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key
  1. Start the MCP server in HTTP mode.
  2. Edit ~/.codeium/windsurf/mcp_config.json:
{
  "mcpServers": {
    "signoz": {
      "serverUrl": "http://localhost:8000/mcp"
    }
  }
}

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "signoz": {
      "command": "<path-to-binary>/signoz-mcp-server",
      "args": [],
      "env": {
        "SIGNOZ_URL": "<your-signoz-url>",
        "SIGNOZ_API_KEY": "<your-api-key>",
        "LOG_LEVEL": "info"
      }
    }
  }
}
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key
  1. Start the MCP server in HTTP mode.
  2. Add to ~/.gemini/settings.json:
{
  "mcpServers": {
    "signoz": {
      "httpUrl": "http://localhost:8000/mcp"
    }
  }
}

Open Zed settings (Cmd+,) and add:

{
  "context_servers": {
    "signoz": {
      "command": "<path-to-binary>/signoz-mcp-server",
      "args": [],
      "env": {
        "SIGNOZ_URL": "<your-signoz-url>",
        "SIGNOZ_API_KEY": "<your-api-key>",
        "LOG_LEVEL": "info"
      }
    }
  }
}
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key

Add to mcp_config.json (open via ... menu → MCP Servers → Manage MCP Servers → View raw config):

{
  "mcpServers": {
    "signoz": {
      "command": "<path-to-binary>/signoz-mcp-server",
      "args": [],
      "env": {
        "SIGNOZ_URL": "<your-signoz-url>",
        "SIGNOZ_API_KEY": "<your-api-key>",
        "LOG_LEVEL": "info"
      }
    }
  }
}
  • <path-to-binary>: Absolute path to the signoz-mcp-server binary
  • <your-signoz-url>: Your SigNoz instance URL
  • <your-api-key>: The API key from Fetch your API key
  1. Start the MCP server in HTTP mode.
  2. Add to mcp_config.json:
{
  "mcpServers": {
    "signoz": {
      "serverUrl": "http://localhost:8000/mcp"
    }
  }
}

Configuration Reference

Environment variables for the self-hosted MCP server. SigNoz Cloud users do not need to set these.

VariableDescriptionDefault
SIGNOZ_URLURL of your SigNoz instance(required for stdio; optional for http with OAuth)
SIGNOZ_API_KEYAPI key for authenticating with SigNoz(required for stdio; optional for http with OAuth)
TRANSPORT_MODETransport protocol: stdio or httpstdio
MCP_SERVER_PORTPort for HTTP server (when TRANSPORT_MODE=http)8000
LOG_LEVELLogging verbosity: debug, info, warn, errorinfo
SIGNOZ_CUSTOM_HEADERSExtra HTTP headers added to every SigNoz API request, such as reverse-proxy auth headers. Format: Key1:Value1,Key2:Value2(optional)
SIGNOZ_DOCS_REFRESH_INTERVALRefresh interval for the embedded docs sitemap used by signoz_search_docs / signoz_fetch_doc (Go duration)6h
SIGNOZ_DOCS_FULL_REFRESH_INTERVALFull refresh interval for the embedded docs corpus (Go duration)24h
OAUTH_ENABLEDEnable OAuth 2.1 authentication (true/false)false
OAUTH_TOKEN_SECRETEncryption key for OAuth tokens (min 32 bytes)(required when OAUTH_ENABLED=true)
OAUTH_ISSUER_URLPublic URL of this MCP server(required when OAUTH_ENABLED=true)
OAUTH_ACCESS_TOKEN_TTL_MINUTESAccess token lifetime in minutes60
OAUTH_REFRESH_TOKEN_TTL_MINUTESRefresh token lifetime in minutes43200 (30d)
OAUTH_AUTH_CODE_TTL_SECONDSAuthorization code lifetime in seconds600 (10min)

Validate

After connecting, verify the server is working:

  1. Open your AI assistant.
  2. Ask: "List all alerts" or "Show me all available services".
  3. The assistant should return structured results from your SigNoz instance.

Available Tools

The MCP server exposes the following tools to your AI assistant:

Alert-rule and notification-channel tools use newer SigNoz rules and channels APIs. Use SigNoz v0.120.0 or later for full compatibility with the latest MCP server. Older SigNoz deployments may return HTTP 404 for those tools.

ToolDescription
signoz_list_metricsSearch and list available metrics
signoz_query_metricsQuery metrics with smart aggregation defaults
signoz_get_field_keysDiscover available field keys for metrics, traces, or logs
signoz_get_field_valuesGet possible values for a field key
signoz_list_alertsList firing, silenced, or inhibited Alertmanager alert instances
signoz_list_alert_rulesList configured alert rules, including inactive or disabled rules
signoz_get_alertGet an alert rule definition by ID
signoz_get_alert_historyGet alert history timeline for a rule
signoz_create_alertCreate an alert rule using v2 schema validation
signoz_update_alertUpdate an existing alert rule
signoz_delete_alertDelete an alert rule
signoz_list_dashboardsList all dashboards with summaries
signoz_get_dashboardGet full dashboard configuration
signoz_create_dashboardCreate a new dashboard
signoz_update_dashboardUpdate an existing dashboard
signoz_delete_dashboardDelete a dashboard by UUID
signoz_list_dashboard_templatesList the bundled SigNoz dashboard template catalog so the model can pick one
signoz_import_dashboardCreate a dashboard from a curated SigNoz dashboard template by path
signoz_list_servicesList services within a time range
signoz_get_service_top_operationsGet top operations for a service
signoz_list_viewsList saved Explorer views for traces, logs, or metrics
signoz_get_viewGet a saved Explorer view by UUID
signoz_create_viewCreate a saved Explorer view
signoz_update_viewReplace an existing saved Explorer view
signoz_delete_viewDelete a saved Explorer view
signoz_aggregate_logsAggregate logs (count, avg, p99, etc.) with grouping
signoz_search_logsSearch logs with flexible filtering
signoz_aggregate_tracesAggregate trace statistics with grouping
signoz_search_tracesSearch traces with flexible filtering
signoz_get_trace_detailsGet full trace with all spans
signoz_execute_builder_queryExecute a raw Query Builder v5 query
signoz_search_docsSearch official SigNoz docs for product, setup, instrumentation, config, API, deployment, or troubleshooting questions
signoz_fetch_docFetch full markdown for one official SigNoz docs page or heading
signoz_list_notification_channelsList notification channels
signoz_get_notification_channelGet a single notification channel by ID
signoz_create_notification_channelCreate a notification channel and send a test notification
signoz_update_notification_channelUpdate a notification channel and send a test notification
signoz_delete_notification_channelDelete a notification channel by ID

For detailed parameter reference, see the GitHub repository README.

Troubleshooting

Tools not appearing in the AI client

  • Verify the binary path is correct and the file is executable (self-hosted only).
  • Set LOG_LEVEL=debug for detailed server logs.

Authentication errors

  • For SigNoz Cloud: ensure you are using the correct region in the MCP URL.
  • Confirm your API key is valid and has not expired.
  • For self-hosted HTTP mode where the client sends the key, use the SIGNOZ-API-KEY: <your-api-key> header.

SigNoz Cloud connection issues

  • Verify the region in the URL matches your account (https://mcp.<region>.signoz.cloud/mcp).
  • Check your network can reach mcp.<region>.signoz.cloud.
  • Make sure you completed the authentication flow when prompted.

Server not starting (self-hosted HTTP mode)

  • Ensure port 8000 is not already in use.
  • Check that TRANSPORT_MODE=http is set.
  • Review server logs for startup errors.

Last updated: May 13, 2026

Edit on GitHub

Was this page helpful?

Your response helps us improve this page.

Prev
AI Tools and Skills
Next
Agent Skills
On this page
Connect to SigNoz's MCP server
Install in one click
Manual Configuration
Install in one click
Manual Configuration
Configure
Configure
Configure
Configure
Configure
Configure
Authenticate from your client
Header-Based Authentication
Fetch your API key
Install the MCP server
Configure your MCP client
Configuration Reference
Validate
Available Tools
Troubleshooting
Tools not appearing in the AI client
Authentication errors
SigNoz Cloud connection issues
Server not starting (self-hosted HTTP mode)

Is this page helpful?

Your response helps us improve this page.