SigNoz Cloud - This page is relevant for SigNoz Cloud editions.
Self-Host - This page is relevant for 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 external tools and data sources. It connects MCP-compatible clients (Claude Code/Desktop, Cursor, GitHub Copilot, OpenAI Codex, and others) to your SigNoz instance so you can query observability data in natural language.

Example use cases:

  • Ask your AI assistant "What alerts fired in the last hour?" and get structured results from SigNoz.
  • Debug issues by asking "Show me error logs for the payments service" without writing queries.
  • Explore traces, dashboards, and metrics through conversation.
📝 Note

The SigNoz MCP Server is functional but under active development. Expect breaking changes between releases. Early feedback is welcome — file issues on the GitHub repository.

Prerequisites

Get your API key

  1. Log in to your SigNoz instance.
  2. Go to SettingsAPI Keys.
  3. Click Create API Key and copy the generated key.
⚠️ Warning

Keep your API key secure. Never commit it to version control — use environment variables or a secrets manager.

Installation

The SigNoz MCP Server is open source: github.com/SigNoz/signoz-mcp-server

  1. Clone the repository and build the binary:
git clone https://github.com/SigNoz/signoz-mcp-server.git
cd signoz-mcp-server
go build -o bin/signoz-mcp-server ./cmd/server/
  1. The binary is created at bin/signoz-mcp-server. Note the absolute path — you will need it when configuring your MCP client.
Info

The repository also includes a Makefile. Running make build works but requires goimports to be installed and on your PATH. The go build command above has no extra dependencies beyond Go itself.

Setup

The MCP server supports two transport modes: Stdio (local binary, launched by the client) and HTTP (standalone server the client connects to over the network). Choose your AI client below and follow the instructions for your preferred transport.

  1. Build or download the signoz-mcp-server binary (see Installation).
  2. In Claude Desktop, go to Settings → Developer → Edit Config.
  3. Add the following 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 (e.g., /Users/you/signoz-mcp-server/bin/signoz-mcp-server)
  • <your-signoz-url>: Your SigNoz instance URL (e.g., https://your-instance.signoz.cloud)
  • <your-api-key>: The API key from Get your API key
  1. Restart Claude Desktop. The signoz server should appear in the developer console with its tools available.

Validate

After setting up your MCP client, confirm the server is working:

  1. Open your AI assistant (Claude Desktop, Cursor, Copilot, Codex, or run claude in your terminal).
  2. Ask: "List all alerts" or "Show me all available services".
  3. The assistant should return structured results from your SigNoz instance. If it does, the MCP server is connected and working correctly.

Configuration Reference

All configuration is done via environment variables:

VariableDescriptionDefault
SIGNOZ_URLURL of your SigNoz instance(required)
SIGNOZ_API_KEYAPI key for authenticating with SigNoz(required unless passed via client header)
TRANSPORT_MODETransport protocol: stdio or httpstdio
MCP_SERVER_PORTPort for the HTTP server (only used when TRANSPORT_MODE=http)8000
LOG_LEVELLogging verbosity: debug, info, warn, errorinfo

Available Tools

The MCP server exposes the following tools to your AI assistant, grouped by domain:

Metrics

ToolDescription
List Metric KeysRetrieve all available metric keys from SigNoz
Search Metric KeysFind specific metrics containing given text
Get Metrics Field ValuesGets available field values for metric queries
Get Metrics Available FieldsGets available field names for metric queries

Alerts

ToolDescription
List AlertsGet all active alerts with detailed status
Get Alert DetailsRetrieve comprehensive information about a specific alert rule
Get Alert HistoryTimeline of alert state changes for a specific rule
Get Logs for AlertFetch logs related to a specific alert automatically

Logs

ToolDescription
Get Error LogsRetrieve logs with ERROR or FATAL severity
Search Logs by ServiceSearch and filter logs for a specific service
Search LogsSearch logs with flexible filtering across all services
Aggregate LogsAggregate logs to provide statistics optionally grouped by fields
List Log ViewsGet all saved log views
Get Log ViewRetrieve a saved log view's complete configuration
Get Logs Field ValuesGets available field values for log queries
Get Logs Available FieldsGets available field names for log queries

Dashboards

ToolDescription
List DashboardsGet dashboard summaries (name, UUID, description, tags)
Get DashboardRetrieve complete dashboard configuration with panels and queries
Create DashboardCreate a new monitoring dashboard from a JSON definition
Update DashboardUpdate an existing dashboard using its UUID and full JSON

Services and Traces

ToolDescription
List ServicesDiscover all services within a specified time range
Service Top OperationsAnalyze performance metrics for a specific service
Search Traces by ServiceSearch traces with filters (errors, duration, operation)
Aggregate TracesAggregate traces to get statistics over spans
Get Trace DetailsGet comprehensive trace information with all spans and metadata
Get Trace Error AnalysisAnalyze error patterns across traces
Get Trace Span HierarchyView span relationships and hierarchy within a trace
Get Trace Field ValuesGets available field values for trace queries
Get Trace Available FieldsGets available field names for trace queries

Query

ToolDescription
Query BuilderGenerate and execute complex queries against SigNoz data

Troubleshooting

Tools not appearing in the AI client

  • Verify the binary path in your config is correct and the file is executable.
  • Check that SIGNOZ_URL and SIGNOZ_API_KEY are set correctly.
  • Restart the AI client after modifying the config.
  • Set LOG_LEVEL=debug to see detailed server logs and identify connection issues.

Authentication errors

  • Confirm your API key is valid and has not expired.
  • If using HTTP mode with the Authorization header, ensure the format is Bearer <your-api-key>.
  • If using Stdio mode, verify the SIGNOZ_API_KEY environment variable is set in the config JSON.

Server not starting (HTTP mode)

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

Last updated: March 13, 2026

Edit on GitHub