SuperAPIAI Directory

signoz-mcp-server

github.com · AI developer platforms

signoz-mcp-server is an MCP server used to connect a Signoz instance to Cursor, Claude Desktop, or other MCP-compatible clients. It provides tools such as connection testing, dashboard listing and details, panel data, APM metrics, service listing, ClickHouse SQL queries, Builder queries, and traces/logs retrieval, and supports running locally via uv or deployment with Docker Compose, and can be configured via environment variables or YAML.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

signoz-mcp-server is an MCP (Model Context Protocol) server used to connect a Signoz instance with Cursor, Claude Desktop, or other MCP-compatible clients. Through this server, AI assistants can access observability data in Signoz.

Main Capabilities

This MCP server provides the following tools:

  • test_connection: Verify connectivity and configuration with the Signoz instance.
  • fetch_dashboards: List all available dashboards in Signoz.
  • fetch_dashboard_details: Get detailed information for a dashboard by dashboard ID (metadata, not real-time panel data).
  • fetch_dashboard_data: Get all panel data by dashboard name and time range.
  • fetch_apm_metrics: Get standard APM metrics for a specified service and time (request rate, error rate, latency, apdex, etc.).
  • fetch_services: Get all instrumented services, with optional time range filtering.
  • execute_clickhouse_query: Execute custom ClickHouse SQL queries through the Signoz API, with time range support.
  • execute_builder_query: Execute Signoz Builder queries for custom metrics and aggregations, with time range support.
  • fetch_traces_or_logs: Use ClickHouse SQL to retrieve traces or logs from SigNoz. You must specify data_type ('traces' or 'logs'), time range, service name, and limit, and it returns tabular results.

Usage

Prerequisites

Ensure there is a running Signoz instance (self-hosted or cloud). If the health endpoint of the Signoz instance requires an API key, it must be generated or obtained from the Signoz UI.

Installation and Running

  • Using uv (recommended for local development): Ensure config.yaml is in the same directory as mcp_server.py, or set the required environment variables.
  • Using Docker Compose (recommended for production/containerized environments): Edit src/signoz_mcp_server/config.yaml to fill in the Signoz details (host, API key, etc.), then run docker-compose up -d. The server runs by default in HTTP (SSE) mode on port 8000. The configuration can be overridden via environment variables.

Configuration

Configuration loading priority:

  1. Environment variables (recommended for Docker/CI):
    • SIGNOZ_HOST: Signoz instance URL (e.g., https://your-signoz-instance.com)
    • SIGNOZ_API_KEY: Signoz API key (optional)
    • SIGNOZ_SSL_VERIFY: true or false (default true)
    • MCP_SERVER_PORT: server port (default 8000)
    • MCP_SERVER_DEBUG: true or false (default true)
  2. YAML file fallback (config.yaml): signoz: host: "https://your-signoz-instance.com" api_key: "your-signoz-api-key-here" # optional ssl_verify: "true" server: port: 8000 debug: true

Integration with AI Assistants

Any tool that supports the MCP protocol can be integrated.

  • Using Docker Compose or Docker (with environment variables, mcp-grafana style): supports the -t stdio parameter for compatibility with Docker MCP clients (forces stdio handshake mode). Adjust volume paths or environment variables according to the deployment.
  • Connecting to an already running MCP server (HTTP/SSE): If the MCP server is already running (such as on a remote host, cloud VM, or Kubernetes), you can directly connect the AI assistant or tool to its HTTP endpoint. Replace your-server-host with the actual host. For local setups, use localhost (i.e., http://localhost:8000/mcp)。本地或非安全部署使用 http, use https for production or secure deployments. Ensure the server is accessible from the client machine (check firewalls, security groups, etc.). No need to specify command or args, just point to the HTTP endpoint. Suitable for any tool or assistant that supports MCP over HTTP. The server must run in HTTP (SSE) mode (the default mode of this implementation), with default port 8000.

Applicable Scenarios

Suitable for scenarios where Signoz observability data (dashboards, APM metrics, services, traces, logs) needs to be provided via the MCP protocol to AI assistants (such as Cursor, Claude Desktop) for querying and analysis.

Limitations

The materials do not provide limitation information regarding performance, data volume limits, concurrency capability, authentication method details, supported specific Signoz versions, etc.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools