How to set up the Grafana MCP Server for Claude Desktop in Claude
- Obtain your Grafana instance URL and a Grafana service-account token with read permission.
- Install the Marketplace extension or configure the publisher’s uv-based server.
- Open a known staging dashboard and verify the returned dashboard UID.
- If the listing opens outside the app, use Claude Desktop’s extension browser to find and install the same extension.
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": [
"mcp-grafana"
],
"env": {
"GRAFANA_URL": "https://your-grafana.example.com",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
}
}
}
}What you can do
This local server can find dashboards, retrieve panel definitions, and call exposed data-source tools. A read-only identity is a useful starting point for investigating the monitoring setup and avoiding edits.
A first task to try
Ask for the dashboard UID and exact panel title for a staging API latency panel. Match them in Grafana before using the suggested panel link to investigate an incident.
Compatibility and setup checks
Use the URL of your Grafana deployment and a service-account token scoped to the task. Grafana documents version 9.0 or later for full server functionality. The hosted Grafana Cloud connector uses a separate connection flow.
If a known dashboard is missing, verify the Grafana URL, organization, and token access. For a manual uv setup, confirm Claude Desktop can find uvx on its launch path.