AITeamGuide

AITeamGuide Hub · MCP server

Grafana MCP

Grafana's MCP server for searching dashboards, querying metrics and logs and looking at incidents.

MCP server★ 3.6k starsApache-2.0Ops & IT

View on GitHub

Key facts

Type
MCP server
Jobs it fits
Investigate outages and alerts
Fields
Ops & IT
Works with
Any MCP client, Claude Code, Cursor
GitHub
grafana/mcp-grafana
Licence
Apache-2.0
Stars
3,587 as of October 21, 2026
Last updated
October 21, 2026 (last push to GitHub)
Author
@grafana
Submitted by
@aiteamguide
Added to the Hub
October 21, 2026

Install / Use it

Apache-2.0Local MCP server

Download ZIP View source

Cursor

Add to Cursor

Replace the placeholder values (API keys, tokens) with your own after adding it.

Or paste into ~/.cursor/mcp.json

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

Claude Code

Run in your terminal

claude mcp add --transport stdio grafana --env GRAFANA_URL=http://localhost:3000 --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<your service account token>' -- uvx mcp-grafana

Replace the placeholder values (API keys, tokens) with your own after adding it.

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude

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

Replace the placeholder values (API keys, tokens) with your own after adding it.

VS Code

Add to VS Code

Replace the placeholder values (API keys, tokens) with your own after adding it.

Or from the command line

code --add-mcp '{"name":"grafana","type":"stdio","command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"<your service account token>"}}'

Codex

Run in your terminal

codex mcp add grafana --env GRAFANA_URL=http://localhost:3000 --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<your service account token>' -- uvx mcp-grafana

Replace the placeholder values (API keys, tokens) with your own after adding it.

Safety: Runs code from a third-party repo. Review the source and the permissions before installing.

Commands and configs are taken from the project's README and re-wrapped in each app's documented format. If they differ, the README wins.

More from the Hub

Summary written by AITeamGuide in our own words. GitHub numbers come from the public GitHub API and refresh daily. Maintainer and want a correction or removal? Tell us. Got something similar? Submit it to the Hub.