Grafana & PromQL Metrics MCP

Query Prometheus metrics, Grafana dashboards, and active alert rules

Translates incident questions into verified PromQL and LogQL queries across production Grafana datasources.

Install & Client JSON Configurations

All client configuration manifests are exposed directly below without hidden tabs for zero-click copying.

CLI Install Command
uvx mcp-grafana
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "https://grafana.example.com",
        "GRAFANA_API_KEY": "glsa_readonly_token"
      }
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "https://grafana.example.com",
        "GRAFANA_API_KEY": "glsa_readonly_token"
      }
    }
  }
}
VS Code · .vscode/mcp.json
{
  "servers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "https://grafana.example.com",
        "GRAFANA_API_KEY": "glsa_readonly_token"
      }
    }
  }
}

Rapid Metric Correlation

Writing nested PromQL rate and histogram_quantile expressions under incident pressure wastes valuable minutes. Grafana & PromQL Metrics MCP inspects active alert rules, dashboard panels, and metric labels straight from a read-only service account.

Operational Value

  • Correlates latency p95 spikes with pod restarts or upstream error codes cleanly.
  • Keeps dashboard modifications disabled via Viewer-scoped service account tokens.

Alternative Servers in This Category

Security & Monitoring
Rising Stack

Sentry Telemetry & Trace MCP

Fetch grouped stack traces, breadcrumbs, and Seer root causes directly

httpstdiooauth-2.1freemium
Tool Surface8 tools
Reliability Score94 / 100
1640 tok · 2,450 starsInspect config
Security & Monitoring
Long-Tail Niche

Semgrep SAST Code Audit MCP

Run deterministic static security rules on diffs before git commit

stdiononeopen-source
Tool Surface5 tools
Reliability Score92 / 100
960 tok · 1,620 starsInspect config
Security & Monitoring
Long-Tail Niche

OSV Dependency CVE Scanner MCP

Audit npm, PyPI, Go, and Cargo lockfiles against live OSV advisories

stdiononeopen-source
Tool Surface4 tools
Reliability Score91 / 100
790 tok · 760 starsInspect config