dotsagent.io
Language:English
Observability · Grafana Labs

Set up Grafana

Search dashboards, query Prometheus and Loki data sources, and manage alerts and incidents in Grafana.

Publisher
Grafana Labs Official
Run locally
uvx mcp-grafana
Transports
stdio, sse, streamable-http
Authentication
A Grafana service account token, plus the instance address in GRAFANA_URL.
Environment
GRAFANA_URLGRAFANA_SERVICE_ACCOUNT_TOKEN
What it can touch
Read and write; --disable-write makes it read-only.
Licence
Apache-2.0
Source
github.com/grafana/mcp-grafana
Status
Active

Install

This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.

Claude Code

shell
claude mcp add --scope project --env GRAFANA_URL='<GRAFANA_URL>' --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<GRAFANA_SERVICE_ACCOUNT_TOKEN>' grafana -- uvx mcp-grafana

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "${env:GRAFANA_URL}",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "${env:GRAFANA_SERVICE_ACCOUNT_TOKEN}"
      }
    }
  }
}

Codex

~/.codex/config.toml
[mcp_servers.grafana]
command = "uvx"
args = ["mcp-grafana"]
env_vars = ["GRAFANA_URL", "GRAFANA_SERVICE_ACCOUNT_TOKEN"]

Config for other clients →

Other servers in observability

Sources

  1. github.com/grafana/mcp-grafana

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026