PTS security notes / MCP servers / Grafana MCP server

Is Grafana MCP server safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

It uses a Grafana service account token, so the token's role is the boundary. Many tool groups, such as SQL, CloudWatch, notebooks and run panel query, are off by default and must be enabled with --enabled-tools. Use a minimal-role service account and enable only the groups you use.

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.

Queries and dashboards read operational data that may include internal hostnames and logs.

ToolWhat it can doNotes
SQL toolsReadsOff by default. Run queries through datasources, enable with `sql`.
Run panel query toolsReadsOff by default. Enable with `runpanelquery`.
Notebook toolsWritesOff by default. Enable with `notebooks`.
CloudWatch, X-Ray, Cloud Logging, Azure Monitor toolsReadsOff 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.

CredentialWhat it is forLeast privilege
GRAFANA_URL and GRAFANA_SERVICE_ACCOUNT_TOKENPoints 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

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.

  1. 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.
  2. 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.
  3. Use a minimal-role service account, and enable the smallest set of --enabled-tools.
  4. Keep write-capable groups off until you need them.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it mcp-grafana:
    {
      "permissions": {
        "deny": [
          "mcp__mcp-grafana__Notebook tools"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output 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.
  7. 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.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages