OfficialObservabilitylocal stdio

Grafana MCP Server

Gives agents access to Grafana dashboards, datasources, Prometheus/Loki queries, alerts, incidents and OnCall.

Install

Claude Desktop

{"mcpServers":{"grafana":{"command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"<your service account token>"}}}}

Cursor

{"mcpServers":{"grafana":{"command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"<your service account token>"}}}}

Commands and configuration as given in the server’s documentation (Documentation). Replace placeholders such as API keys with your own values.

Grafana MCP Server is Grafana Labs’ server for local Grafana 9+ or Grafana Cloud.

The Grafana MCP server gives agents access to Grafana dashboards, datasources, Prometheus and Loki queries, alerts, incidents and OnCall. Grafana Labs maintains it under the Apache-2.0 license for local Grafana 9+ or Grafana Cloud. It runs locally over stdio via uvx, Docker or a binary, can also serve SSE or Streamable HTTP, and authenticates with a Grafana service account token. Configurations for Claude Desktop and Cursor follow.

Tools search and edit dashboards, run panel and datasource queries (Prometheus, Loki, SQL, CloudWatch and others), manage alert rules, incidents, OnCall schedules, annotations and snapshots, and render panels. It has read-only and query-free modes.

Questions

Which Grafana versions does the Grafana MCP server support?
It works with local Grafana 9+ or Grafana Cloud.
How does the Grafana MCP server authenticate?
With a Grafana service account token, passed with GRAFANA_URL in the server’s environment.
Can the Grafana MCP server run read-only?
Yes. It has read-only and query-free modes.
Which datasources can the Grafana MCP server query?
It runs panel and datasource queries for Prometheus, Loki, SQL, CloudWatch and others.

Sources

Checked October 2, 2026.

Observability

View all
Aftergradient

What are you looking for?

Search commands, errors, tools