Skip to content
Grok

prometheus mcp for Grok

io.github.mshegolev/prometheus-mcp

Prometheus MCP — query metrics, inspect alerts, and explore scrape targets (read-only).

client:Grok transport:stdio runtime:pypi

Install prometheus mcp in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "prometheus-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "prometheus-mcp"
      ],
      "env": {
        "PROMETHEUS_URL": "<PROMETHEUS_URL>",
        "PROMETHEUS_TOKEN": "<PROMETHEUS_TOKEN>",
        "PROMETHEUS_USERNAME": "<PROMETHEUS_USERNAME>",
        "PROMETHEUS_PASSWORD": "<PROMETHEUS_PASSWORD>",
        "PROMETHEUS_SSL_VERIFY": "<PROMETHEUS_SSL_VERIFY>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

prometheus mcp in other clients