Skip to content
Agent Search Engine.

Record · grafana-mcpMCP serverOpen sourceVerified Sep 23, 2026

Grafana MCP Server

Grafana's official MCP server for dashboards, datasources, Prometheus and Loki queries and more.

Sources and review

Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.

Best for

On-call engineers who want an assistant to pull metrics and logs while investigating incidents.

Avoid if

You run a Grafana version older than 9.0; some datasource features rely on newer APIs.

About Grafana MCP Server

Grafana Labs' MCP server gives AI assistants access to a Grafana instance and its ecosystem: search dashboards, run panel queries, and query datasources including Prometheus, Loki, InfluxDB and SQL sources. It works with self-hosted Grafana and Grafana Cloud, authenticating with a service account token, and can run through uv, Docker, a binary or Helm.

Grafana MCP Server is an open-source project written primarily in Go, with 3.5k stars on GitHub. It was last updated in September 2026.

Add Grafana MCP Server to your MCP client

Generated from the launch command in the project's README. Your client starts the server on demand. Replace <your-token> with your own value first.

Claude CodeRun in your terminal
claude mcp add grafana-mcp -e GRAFANA_URL=http://localhost:3000 -e 'GRAFANA_SERVICE_ACCOUNT_TOKEN=<your-token>' -- uvx mcp-grafana
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "mcpServers": {
    "grafana-mcp": {
      "command": "uvx",
      "args": ["mcp-grafana"],
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-token>"
      }
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "grafana-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": ["mcp-grafana"],
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-token>"
      }
    }
  }
}
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "grafana-mcp": {
      "command": "uvx",
      "args": ["mcp-grafana"],
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-token>"
      }
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.grafana-mcp]
command = "uvx"
args = ["mcp-grafana"]
env = { GRAFANA_URL = "http://localhost:3000", GRAFANA_SERVICE_ACCOUNT_TOKEN = "<your-token>" }

Check the project's README for required accounts, keys and permissions before connecting. Setup guide for each client →

For agent buildersMake your product part of the discovery.Explore advertising

Grafana MCP Server vs. the alternatives

All 163 alternatives →
RecordStarsPricing
Grafana MCP ServerMCP serverthis listing3.5kOpen source
MCP Reference ServersMCP server91kOpen source
context7MCP server62kOpen source
chrome-devtools-mcpMCP server53kOpen source
Playwright MCPMCP server37kOpen source
github-mcp-serverMCP server33kOpen source

See all 163 Grafana MCP Server alternatives, compared →