Query dashboards, inspect panels, search annotations, and interact with Grafana datasources from Claude Code to accelerate incident response and observability workflows.
The Grafana MCP connects Claude Code to your Grafana instance, giving it access to dashboards, panels, datasource queries, and annotations. Claude can correlate metrics with recent deployments, summarize dashboard state during an incident, and help you build or refine Prometheus or Loki queries.
mcpizy install grafana
Generate a Grafana Service Account token with Viewer role (or Editor if you want Claude to create annotations). Provide the Grafana instance URL and token during setup.
During an incident, ask Claude to summarize the current system state:
// Claude will:
// 1. Query the "API Latency" panel for the last 15 minutes
// 2. Query the "Error Rate" panel
// 3. Check for any firing alerts
// 4. Correlate with recent deployment annotations
// 5. Produce a concise incident summary