Prometheus MCP Server

MCP server for LLMs to interact with Prometheus

Local serverstdio

What is the Prometheus MCP Server?

MCP server for LLMs to interact with Prometheus

What you get

The prompt used was: > querying my metrics is slow, can you help me figure out why?

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Prometheus MCP Server

{
  "mcpServers": {
    "prometheus-mcp-server-tjhop": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/tjhop/prometheus-mcp-server"],
      "env": {
        "PROMETHEUS_MCP_SERVER_PROMETHEUS_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
PROMETHEUS_MCP_SERVER_PROMETHEUS_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Prometheus to Tools.”
  • “Use Prometheus to Resources.”
  • “Use Prometheus to Binary.”

Frequently asked questions

The server works with any service offering a Prometheus compatible API. Specific backends like Thanos can be selected via `--prometheus.backend`, which may add or remove tools (e.g., Thanos removes `config` and adds `list_stores`).