Grafana MCP Server
Grafana's officially maintained MCP server. The AI can search your dashboards, run PromQL and LogQL queries directly, and read current alert and incident state.
It earns its keep during incidents — ask "which service's error rate climbed in the last 30 minutes?" and the AI writes the PromQL itself. That's a big deal if you don't write PromQL often enough to remember the syntax.
What it does for you
Connects your AI to Grafana — query dashboards, read metrics and alerts, investigating monitoring data through chat.
Capabilities
- Query dashboards and metrics
- Read alert status
Once installed, try asking your AI
Say this directly in Claude / Cursor or any client with this server connected
- ›“Any alerts fired in the last hour?”
Install / Connect
# No npm package — install from source.
# See the repo's README for the exact command:
# https://github.com/grafana/mcp-grafanaFollow the official README; env and args vary per server.
Why use it
Good for: SREs and backend engineers using Grafana for observability, especially while on call.
Before connecting: use a Grafana service account token with the Viewer role — that's enough for queries. Don't grant Admin; the AI has no reason to edit dashboards.
Similar / alternative servers
ida-pro-mcp
AI-powered reverse engineering assistant that bridges IDA Pro with language mode
ha-mcp
The Unofficial and Awesome Home Assistant MCP Server
app.worldmonitor/mcp
World Monitor
fastmcp
🚀 The fast, Pythonic way to build MCP servers and clients.
Frequently Asked Questions
Does it support Grafana Cloud and self-hosted?
Both. Configure your instance URL and a service account token.
Which data sources can it query?
It queries through Grafana, so essentially any data source configured there — Prometheus and Loki being the two most common.