Servers › Monitoring › Grafana

● MaintainedMonitoring

Grafana MCP Server

Official Grafana MCP server: gives your AI assistant access to your Grafana instance (dashboards, panel and datasource queries such as Prometheus, Loki and Elasticsearch, and incidents). Grafana 9.0 or later is required for full functionality. Version 2.4.0 (Nov 24, 2026) adds notebook tools for Grafana 13.3's notebooks preview, opt-in AWS X-Ray (xray) and Azure Monitor (azuremonitor) tool categories, hints that name the likely cause of empty query_prometheus and query_loki_logs results, and --config (or GRAFANA_MCP_CONFIG) to choose tools from a YAML file. Version 2.3.0 (Nov 10, 2026) can run Elasticsearch panels through run_panel_query, adds a compact format for smaller query_elasticsearch log results, an opt-in --prometheus-guardrail-require-selective-labels check that flags unscoped queries such as up, exposes recent IRM incidents as grafana://irm/incidents/{id} resources, and makes panel interval and variable handling match Grafana more closely. Note: the PyPI package that uvx mcp-grafana installs is still 2.2.0 (Nov 2, 2026) as of Nov 26, 2026. For 2.3.0 or 2.4.0, use the Docker image (docker run --rm -i -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN grafana/mcp-grafana:2.4.0 -t stdio) or a binary from the GitHub release.

Install

uvx mcp-grafana

Example config (Cursor / Claude Desktop)

{
  "mcpServers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-value>",
        "MCP_GRAFANA_SERVER_TOKEN": "<your-value>"
      }
    }
  }
}

The same mcpServers block works in Cursor, Claude Desktop and Devin Desktop. VS Code (Copilot) uses a "type" field, Claude Code is easiest with claude mcp add, and Codex uses TOML: see the setup guide for your app. On Windows, wrap npx with cmd /c (fix).

At a glance

Repositorygrafana/mcp-grafana
GitHub stars3,715
Last commit2026-11-30 (today)
Statusmaintained
Security advisoriesNo published advisories found as of 2026-11-30. Details
Clients mentioned in READMEClaude Desktop, Claude Code, Cursor, VS Code
AuthAPI key/token · GRAFANA_SERVICE_ACCOUNT_TOKEN MCP_GRAFANA_SERVER_TOKEN GRAFANA_API_KEY
Language / LicenseGo / Apache-2.0
Official MCP registryListed ✓

Security advisories

No published advisories found as of 2026-11-30.

Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for github.com/grafana/mcp-grafana (Go), mcp-grafana (PyPI). No advisory doesn't prove a server is safe. How to stay updated.

Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.