Creativity · MCP — server
MCP Grafana Server
The MCP Grafana Server is a community-maintained Model Context Protocol server that wraps Grafana's HTTP API. Authenticated with a service-account token, it lets an LLM list dashboards, read panel queries, fetch alert history, and execute PromQL or SQL queries against configured data sources.
MCP facts
- Kind
- server
- Ecosystem
- anthropic-mcp
- Language
- TypeScript / Node.js
- Transports
- stdio
Capabilities
- Tools: list_dashboards, get_dashboard, query_datasource, list_alerts, get_alert_history
- Resources: grafana://dashboard/{uid} and grafana://datasource/{id} URIs
- Auth: service-account token with read scope for the target org
Install
npx -y @modelcontextprotocol/server-grafana Configuration
{
"mcpServers": {
"grafana": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-grafana"],
"env": {
"GRAFANA_URL": "https://grafana.example.com",
"GRAFANA_API_KEY": "glsa_..."
}
}
}
} Frequently asked questions
Is this server official?
Grafana Labs has experimental first-party MCP tooling, but the widely-used servers today are community-maintained. Check the repo before relying on it in production.
What permissions should the token have?
Viewer role is enough for dashboards, alerts, and read-only queries. Avoid Admin tokens unless the model must create dashboards.
Can it run arbitrary PromQL?
Yes — the query_datasource tool accepts a data source UID and a raw query. Scope the token to specific orgs to limit blast radius.
Sources
- Grafana HTTP API — accessed 2026-04-20
- MCP community servers — accessed 2026-04-20