Data & analytics / Grafana

Grafana

io.github.grafana/mcp-grafana · vv2.3.0

An MCP server giving access to Grafana dashboards, data and more.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #206 of 435 Data & analytics servers on Socketlist by score, with 3,658 GitHub stars and a last code push 18d ago.

Install

docker run -i --rm docker.io/grafana/mcp-grafana:2.3.0

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Offers a hosted remote endpoint: https://mcp.grafana.com/mcp (streamable-http). No local install needed.

Connect Grafana to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env GRAFANA_URL=<grafana_url> --env GRAFANA_SERVICE_ACCOUNT_TOKEN=<grafana_service_account_token> --env GRAFANA_PASSWORD=<grafana_password> --transport stdio grafana -- docker run -i --rm docker.io/grafana/mcp-grafana:2.3.0

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "grafana": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/grafana/mcp-grafana:2.3.0"
      ],
      "env": {
        "GRAFANA_URL": "${GRAFANA_URL}",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "${GRAFANA_SERVICE_ACCOUNT_TOKEN}",
        "GRAFANA_PASSWORD": "${GRAFANA_PASSWORD}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "grafana": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/grafana/mcp-grafana:2.3.0"
      ],
      "env": {
        "GRAFANA_URL": "${env:GRAFANA_URL}",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "${env:GRAFANA_SERVICE_ACCOUNT_TOKEN}",
        "GRAFANA_PASSWORD": "${env:GRAFANA_PASSWORD}"
      }
    }
  }
}

Claude Code, hosted endpoint (no local install)

The publisher also lists a hosted endpoint. If it uses OAuth, run /mcp inside Claude Code to sign in. Claude Code setup guide.

claude mcp add --transport http grafana https://mcp.grafana.com/mcp

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
GRAFANA_URLYesNoURL to your Grafana instance
GRAFANA_SERVICE_ACCOUNT_TOKENNoYesService account token used to authenticate with your Grafana instance
GRAFANA_USERNAMENoNoUsername to authenticate with your Grafana instance
GRAFANA_PASSWORDNoYesPassword to authenticate with your Grafana instance
GRAFANA_ORG_IDNoNoOrganization ID for multi-org support. Can also be set via X-Grafana-Org-Id header in SSE/streamable HTTP transports.
GRAFANA_EXTRA_HEADERSNoNoJSON object of additional HTTP headers to send with all Grafana API requests
GRAFANA_FORWARD_HEADERSNoNoComma-separated list of HTTP header names to forward from the incoming request to Grafana (SSE/streamable-http only). Example: Cookie,X-Session-Id

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together. The serverUrl entry covers the hosted endpoint.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "docker",
        "run",
        "-i",
        "--rm",
        "docker.io/grafana/mcp-grafana:2.3.0"
      ]
    },
    {
      "serverUrl": "https://mcp.grafana.com/mcp"
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars3,658
npm weekly downloads-
Last push18d ago
LicenceApache-2.0
Open issues65
SECURITY.mdNo
LanguageGo
Latest version published2026-11-10

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers

SigNoz MCP Server

Score 80

SigNoz MCP server: access metrics, traces, logs, alerts, and dashboards via AI assistants

★ 132Apache-2.0pushed 18d ago
Data & analyticsCloud & infra

Ghostfolio MCP

Score 77

MCP server for Ghostfolio portfolio management and financial data access

★ 22AGPL-3.0pushed 19d ago
Data & analyticsDeveloper tools

ERDDAP MCP Server

Score 76

Access ocean data from 80+ ERDDAP servers worldwide

★ 10MITpushed 1mo ago
Data & analytics

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free