Skip to content
Cursor

prometheus mcp for Cursor

io.github.mshegolev/prometheus-mcp

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

client:Cursor transport:stdio runtime:pypi

Install prometheus mcp in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

prometheus mcp in other clients