Grafana MCP for Claude Code: Query Dashboards, Metrics, and Alerts Directly
When something breaks in production, the usual Claude Code loop is: open Grafana, find the right dashboard, squint at a spike, copy a PromQL query or a chunk of Loki logs, paste it into the terminal, and repeat when Claude asks for a wider time range. You end up as a slow, lossy copy-paste bridge between your metrics and your agent. Grafana MCP is Grafana Labs’ official MCP server. It lets Claude…
Grafana Labs has introduced Grafana MCP, a server that enables Claude Code to directly interact with dashboards, metrics, and alerts. This eliminates the need for manual copy-pasting and provides a seamless connection between metrics and the agent. Grafana MCP is compatible with self-hosted Grafana 9.0+ and Grafana Cloud, and it operates under Apache 2.0 license. It can be paired with Sentry MCP guide for better error tracking.
To set up Grafana MCP, first, create a Grafana service account token with the Viewer role in Grafana administration panel. Then, run the command `claude mcp add` followed by various environment variables and flags. Finally, confirm the connection by listing Grafana MCP servers with `claude mcp list`. The entire process takes approximately 5 minutes.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
