MCP server · Infrastructure
Grafana MCP Server
Official Grafana Labs server for dashboards, Prometheus and Loki queries, alerts and incidents. Shown here: read-only mode (--disable-write).
Quick verdict
A strong first install for anyone who runs Grafana. Start with --disable-write and a Viewer service account, add --disable-query if the assistant should only explore what exists, and turn writes on only for a stack where a wrong dashboard or alert change is cheap to undo.
- MaintainerGrafana Labs (official)
- Security scopeRead-write
- Transportsstdio, sse, streamable-http
- Install channeldocker · docker.io/grafana/mcp-grafana
- EvidenceNot tested yet (sources checked)
- LicenseApache-2.0 · Open source
Grafana Labs' official MCP server for Grafana. It lets an assistant search and read dashboards, query Prometheus, Loki, Tempo and Pyroscope datasources, read alert rules, incidents and on-call schedules, read annotations and snapshots, render panels, and build links into Grafana. With writes enabled, which is the default, it can also create and overwrite dashboards, create and change datasources, create, update and delete alert rules, silences and annotations, create and update incidents, resolve on-call alert groups, install plugins, and call any Grafana HTTP API endpoint, including DELETE. The configuration shown here runs the Docker image in stdio mode with --disable-write, which in the server's code removes every write tool and limits the generic API tool to GET requests; datasource queries in PromQL, LogQL and similar languages stay available. It signs in with a Grafana service account token, so it sees only what that account's role allows.
Install Grafana MCP Server
Docker installed and running. -t stdio is required: without it the image starts an SSE server on port 8000 with no caller authentication. --disable-write removes every write tool and limits grafana_api_request to GET; add --disable-query to stop datasource queries too. The README's list of what read-only mode removes is shorter than what the code removes (it leaves out the datasource, plugin-install and API write tools), so rely on the code. Use a Viewer, or narrower, service account token. Inside Docker, localhost is the container, so point GRAFANA_URL at the host's address for a local Grafana. Anonymous usage statistics are on by default; add --usage-stats=disabled to turn them off. Other local paths: uvx mcp-grafana from PyPI, release binaries, go install and a Helm chart. Grafana also hosts a Grafana Cloud MCP server at https://mcp.grafana.com/mcp (OAuth, Grafana Cloud only, counts toward Grafana Assistant usage), which is not the configuration shown here.
docker run --rm
{
"mcpServers": {
"grafana": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"GRAFANA_URL",
"-e",
"GRAFANA_SERVICE_ACCOUNT_TOKEN",
"docker.io/grafana/mcp-grafana",
"-t",
"stdio",
"--disable-write"
],
"env": {
"GRAFANA_URL": "<GRAFANA_URL>",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<GRAFANA_SERVICE_ACCOUNT_TOKEN>"
}
}
}
}Credentials
| Name | Required | What it is for |
|---|---|---|
GRAFANA_URL | Required | Base URL of the Grafana instance, for example https://<stack>.grafana.net for Grafana Cloud. Not a secret. Inside Docker, http://localhost:3000 points at the container itself. |
GRAFANA_SERVICE_ACCOUNT_TOKEN | Required | Token for a Grafana service account. Give the account the Viewer basic role, or None plus only the RBAC actions the README lists for the tools you use, and set a short expiry. The role limits what can be read; --disable-write limits what can be changed. |
Verified configurations
Not run by us yet. This profile is Not tested yet (sources checked): the install channel, config entry, credentials and license were checked against the source and upstream metadata, but no configuration has been installed, discovered and executed in a recorded environment. When one is, it appears here with the eight scope dimensions below.
Best for
Engineers and operators running Grafana, self-hosted or on Grafana Cloud, who want an assistant to read dashboards and run PromQL or LogQL queries while investigating an incident, and teams that later want it to file annotations, incidents or alert-rule changes under review.
Why use it
It is Grafana Labs' own server, released often and covering the whole Grafana stack (dashboards, Prometheus, Loki, Tempo, Pyroscope, alerting, OnCall and Incident). It has a read-only mode enforced in code, per-category and per-tool switches, opt-in query guardrails, and a documented RBAC permission for every tool, so the surface can be narrowed both in the server and in Grafana.
Tradeoffs
Writes are on by default: a server started without --disable-write can overwrite dashboards, change datasources, delete alert rules and annotations, install plugins, and send any request to the Grafana API with the token's full permissions. Read-only mode still runs datasource queries, so logs and metrics that carry secrets or personal data reach the model, and broad Loki or Prometheus queries can be slow or costly unless the opt-in guardrails are set. Dashboard JSON, log lines and incident text are untrusted input that can carry prompt injection. Anonymous usage statistics go to Grafana Labs by default. Nothing automated tracks the Docker image, so check it before relying on it. Grafana itself is AGPL-3.0; only this server is Apache-2.0.
Upstream state
repository active · in the official MCP Registry (active). Lifecycle is derived from a committed upstream snapshot at build time, never authored by hand.
Official MCP Registry name: io.github.grafana/mcp-grafana
Editorial details
Grade B: Not tested yet (sources checked). Re-review is due by 2027-05-10. Config entries, credential names and package status can change upstream; verify against the source repository before granting an agent access.
Sources
- grafana/mcp-grafana README: install paths, Docker stdio config, tools, RBAC, read-only mode, usage statistics
- grafana/mcp-grafana LICENSE (Apache-2.0)
- CLI source: default tool categories and --disable-write wiring
- API tool source: write and GET-only variants of grafana_api_request
- Dockerfile: SSE entrypoint, non-root user
- Grafana docs: service accounts (roles, RBAC, token expiry)
- Grafana docs: Grafana Cloud MCP server (hosted endpoint, OAuth, Cloud only)
- Official MCP Registry: io.github.grafana/mcp-grafana
- Docker Hub: grafana/mcp-grafana
Related MCP servers
- Hugging Face MCPSearch Hugging Face models, datasets, Spaces, papers and docs through MCP, with optional Hub and compute tools.
- Kubernetes MCP Server (containers)Community server by Red Hat engineers for Kubernetes and OpenShift: up to 22 default tools that read, apply, delete and exec. Shown here: read_only.
- Netlify MCPBuild, deploy and manage Netlify sites and account resources through Netlify's official hosted MCP server.