What it is
mcp-grafana is Grafana Labs' server that lets agents search dashboards, query datasources such as Prometheus and Loki, view alerts and manage incidents on a Grafana instance.
- Maintainer
- Official (vendor)grafana on GitHub (organisation account, project of the same name)
- Source
- grafana/mcp-grafana3,736 GitHub stars · Apache-2.0 licence
- Transport
- stdio, Streamable HTTP and a hosted endpointHosted endpoint: https://mcp.grafana.com/mcp
- Packages
- github.com/grafana/mcp-grafana go
- Latest release
- v2.5.0 2026-12-02
- Public advisories
- 0GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: yes
- Deletes: no
- Runs code: no
- Network: no
- Sends: no
Queries and dashboards read operational data that may include internal hostnames and logs.
| Tool | What it can do | Notes |
|---|---|---|
SQL tools | Reads | Off by default. Run queries through datasources, enable with `sql`. |
Run panel query tools | Reads | Off by default. Enable with `runpanelquery`. |
Notebook tools | Writes | Off by default. Enable with `notebooks`. |
CloudWatch, X-Ray, Cloud Logging, Azure Monitor tools | Reads | Off by default. Query cloud monitoring through Grafana datasources. |
The README lists tool groups and which are disabled by default. Counts depend on `--enabled-tools`.
Credentials and least privilege
The service account's role decides which tools can succeed.
| Credential | What it is for | Least privilege |
|---|---|---|
GRAFANA_URL and GRAFANA_SERVICE_ACCOUNT_TOKEN | Points at your Grafana and authenticates as a service account. | Create a dedicated service account with the lowest role that works (start with Viewer) and the access you need. Raise it only for specific tasks. |
Public security advisories
No published security advisory was listed for this project on GitHub or OSV as of December 5, 2026. That only means none had been published. It does not mean the code has been audited.
What stands out
- The README marks SQL, CloudWatch, X-Ray, Cloud Logging, Azure Monitor, Graphite, Elasticsearch and several other groups as disabled by default.
- Reads can expose logs and metrics from other systems via Grafana datasources.
- No GitHub or OSV advisory was listed as of December 5, 2026.
Safe-install checklist
Install command from the project's docs: docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN grafana/mcp-grafana -t stdio.
- Pin the version. Use an exact version, not
latest:docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN grafana/mcp-grafana:<version> -t stdio. Pin the image tag or digest. - Scope the credential. Create a dedicated service account with the lowest role that works (start with Viewer) and the access you need. Raise it only for specific tasks.
- Use a minimal-role service account, and enable the smallest set of
--enabled-tools. - Keep write-capable groups off until you need them.
- Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itmcp-grafana:{ "permissions": { "deny": [ "mcp__mcp-grafana__Notebook tools" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can Grafana MCP server do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings. Queries and dashboards read operational data that may include internal hostnames and logs.
Does Grafana MCP server need a token or API key?
Yes, depending on setup: GRAFANA_URL and GRAFANA_SERVICE_ACCOUNT_TOKEN. The service account's role decides which tools can succeed.
Has Grafana MCP server had public security advisories?
No published advisory was listed for it on GitHub or OSV as of December 5, 2026. That is not proof it has no issues, only that none had been published.
How do I keep Grafana MCP server from changing under me?
Pin the version, for example docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN grafana/mcp-grafana:<version> -t stdio. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
