Official Grafana MCP Server 2.4.0 leaves --disable-write off, so a GRAFANA_SERVICE_ACCOUNT_TOKEN unlocks write tools such as update_dashboard, create_folder, install_plugin, and grafana_api_request; the official Docker entrypoint binds --transport sse --address 0.0.0.0:8000 with --server-auth-token empty; CVE-2026-15583's token exfil is fixed, but official uvx examples remain unpinned while PyPI still serves 2.2.0
Published
The official Grafana MCP server is a first-party Model Context Protocol server from Grafana Labs that lets a connected AI client call a Grafana instance — including dashboards, datasources, alerting, incidents, OnCall, snapshots, plugins, and, through grafana_api_request, arbitrary Grafana API endpoints. The public repository is grafana/mcp-grafana. The binary name is mcp-grafana. The license is Apache License, Version 2.0. The root LICENSE is the stock Apache 2.0 text; its appendix names the copyright holder as “Copyright 2025 Grafana Labs.” Official product documentation at research time lived at grafana.com/docs/grafana/latest/ai-tools/mcp/ and its child pages. That site can move independently of the release; we also read the in-tree docs/sources/ files in this pin, and we note where they differ. Grafana also offers a distinct Grafana Cloud hosted MCP, authenticated with OAuth and scoped to a signed-in Cloud user; this review is the open-source self-hosted or local server, not that hosted product.
This is a static review. We cloned git tag v2.4.0, read first-party source and the README in that tree, recorded registry metadata for the official Docker tags, Homebrew formula, Go module, and PyPI package, and checked hashes and signature status. We did not run the MCP server, the Docker image, Helm, uvx, go install, go test, make targets, or any installer that starts the process. We did not log into Grafana or Grafana Cloud, and we used no Grafana credential. Nothing below is a claim that the server is safe to expose, or that a static look is a clean bill of health.
What we pinned
- Git tag
v2.4.0, a lightweight tag pointing at commit7f717bceff42080b3eeb026506672e8ba4fbdce7(docs: add CHANGELOG.md for v2.4.0 release (#1706)). The commit date is 24 November 2026, 17:50:30 Asia/Hong_Kong (09:50:30 UTC). The GitHub Release of the same name was published 24 November 2026, 18:01:47 Asia/Hong_Kong (10:01:47 UTC) bygithub-actions[bot]. The tag itself is not annotated and carries no tag signature (git cat-file -t v2.4.0iscommit). The pointed-to commit is authored by Ben Sully and committed byGitHub <noreply@github.com>. After GitHub’s web-flow public keys were present,git verify-commitreported a good signature fromGitHub <noreply@github.com>with fingerprint9684 79A1 AFF9 27E3 7D1A 566B B569 0EEE BB95 2194. That confirms GitHub’s merge signature, not a maintainer-signed annotated tag. At research time, 2.4.0 was the latest official GitHub Release. - The GitHub Release attaches first-party archives, SBOMs,
mcp-grafana_2.4.0_checksums.txt, and a keyless Sigstore bundle. We downloaded the checksums file and the bundle, not the binaries. The checksums file hashed to62e6724364714feb5eba304a57460e164b1c0a428f383251cc3099b2bd263598, matching the Releases API digest, and the per-archive hashes matched the assetdigestfields. The Sigstore certificate names workflowrelease.yml@refs/tags/v2.4.0, issuerhttps://token.actions.githubusercontent.com, and source SHA7f717bceff42080b3eeb026506672e8ba4fbdce7. We inspected that bundle; we did not runcosign verify-blob. The official source archive hashed to265b3541b97ec173c35bff992cab040aa4d1225279cb96dbb608dbc8182f6844on 1 December 2026, Asia/Hong_Kong, matching Homebrew core formulamcp-grafana2.4.0. - Docker Hub metadata for
grafana/mcp-grafana:2.4.0, read on 1 December 2026, Asia/Hong_Kong, without pulling or running the image, reported tag digestsha256:63d4501d3166c2b9242d8a2b5b7df8892c59c6c477be3a2a61bcf8a252671f31, last updated 24 November 2026, 17:55:04 Asia/Hong_Kong (09:55:04 UTC). linux/amd64 wassha256:b6c5b2807c2c93c0107eb3b928d91c6309b822be74c4133dbfaa163cb4af5f2b. Thelatesttag reported the same digest at that check. That is a point-in-time observation, not a pin. The Go modulegithub.com/grafana/mcp-grafana/v2@v2.4.0reported the same origin hash. The first-party PyPI projectmcp-grafanawas still at 2.2.0 (wheels first uploaded 2 November 2026, 21:08:38 Asia/Hong_Kong / 13:08:38 UTC); 2.3.0 and 2.4.0 were absent. Official docs and the README still recommend unpinneduvx mcp-grafana.
What it is, and the trust boundary
mcp-grafana is a Go process that speaks MCP to a client and speaks Grafana’s HTTP APIs to a Grafana instance. The default transport is stdio (-t / --transport, default stdio). SSE and streamable-http are the networked alternatives; for those, --address defaults to localhost:8000. Grafana tokens live in the process environment by default (GRAFANA_URL, GRAFANA_SERVICE_ACCOUNT_TOKEN or GRAFANA_SERVICE_ACCOUNT_TOKEN_FILE, the deprecated GRAFANA_API_KEY, or GRAFANA_USERNAME / GRAFANA_PASSWORD). On HTTP transports, a caller may also send X-Grafana-Service-Account-Token, the deprecated X-Grafana-API-Key, or HTTP basic auth; if those are absent, the server falls back to the environment token for the configured Grafana URL. --require-user-credentials (default false; env GRAFANA_REQUIRE_USER_CREDENTIALS) refuses that shared fallback, and refuses to start when a shared credential is configured, but only on streamable-http.
This server is not presented as a security sandbox. Authorization for Grafana actions is Grafana RBAC on the token or user the server is using. Tools declare required Grafana actions in MCP _meta (grafana.com/requiredPermissions) so on-behalf-of tokens can carry them and so a Grafana 403 can be explained; we did not find a separate MCP-side preflight that replaces Grafana’s own checks. The MCP-level gates are the category list, --disable-write / --disable-query, --enable-write-tools / --enable-query, --config / GRAFANA_MCP_CONFIG, and the HTTP caller-auth flags. A client that can call tools can do whatever the Grafana credential can do with the tools that remain registered.
The official Docker image is a different default than the binary. Both Dockerfiles set ENTRYPOINT to /app/mcp-grafana --transport sse --address 0.0.0.0:8000, running as a non-root user. A container started from that image without overriding the entrypoint is a shared HTTP listener on all interfaces, not a stdio process bound to localhost.
Write tools are on by default, including grafana_api_request
--disable-write defaults to false. There is no separate “read-only” flag; read-only mode is --disable-write. In tools/resolve.go, Policy.ReadOnly (set from that flag) removes write-gated variants unless they are named in Policy.Allow, which is filled from --enable-write-tools and, for the raw-SQL case, --enable-query. We verified the v2.4.0 release-note claim: --enable-write-tools can keep any write tool that --disable-write would remove, such as update_dashboard or create_folder. It has no effect on a tool whose whole category is disabled, and --disable-query still removes query tools. --config / GRAFANA_MCP_CONFIG can express the same policy in YAML; flags set explicitly override the file, except --enable-write-tools and --enable-query, which add to the file’s allow list.
The default category list is defaultEnabledTools in cmd/mcp-grafana/main.go:
search,datasource,incident,prometheus,loki,alerting,dashboard,folder,oncall,asserts,pyroscope,navigation,tempo,annotations,rendering,snapshot,plugin,api,config,provisioning,docs,user
Because --disable-write is off, write tools in those categories are registered. That includes, among others, update_dashboard, create_folder, create_datasource, update_datasource, create_incident, update_incident, alerting_rules_write, alerting_silences_write, update_alert_group, create_annotation, delete_annotation, create_snapshot, delete_snapshot, install_plugin, and grafana_api_request. generate_deeplink is also write-gated when it shortens URLs, because Grafana creates short URLs with a POST. Categories that stay off until you add them to --enabled-tools include notebooks, admin, sql, dsquery, xray, azuremonitor, cloudwatch, cloudlogging, elasticsearch, quickwit, influxdb, graphite, runpanelquery, examples, agento11y, and assistant. Those opt-in groups are real, but they do not make the default a read-only server.
The api category is in the default list and is easy to miss. grafana_api_request makes authenticated HTTP requests to any Grafana API endpoint, with optional jq-style filtering, and is a write tool in the catalog (with read-only variants when --disable-write is on). Combined with a capable service-account token, the default tool set is not limited to the first-class write tools named above.
The documentation in this pin, and the live docs we opened, understate that default. Both docs/sources/configure/command-line-flags.md in the tag and the live command-line flags page say the default --enabled-tools list is exactly search,datasource,incident,prometheus,loki,alerting,dashboard,folder,oncall,asserts,pyroscope,navigation,tempo,annotations,rendering,snapshot,docs, omitting plugin, api, config, provisioning, and user. We treated defaultEnabledTools in source as the default for this pin, and the docs mismatch as a lag, not as a second default.
CVE-2026-15583 is fixed in this pin; the header is opt-in, and an empty allowlist is still broad
CVE-2026-15583 (published 15 July 2026; CVSS 8.6, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N) is a confused-deputy SSRF: an unauthenticated caller could set X-Grafana-URL and cause the server to send its environment Grafana service-account token to a host the caller chose, including internal services and cloud metadata endpoints. Grafana’s advisory lists fixed versions as >=0.17.1.
The project’s own history is more specific, and we read it. The v0.17.1 release (published 7 July 2026, 17:31:26 Asia/Hong_Kong / 09:31:26 UTC) describes a DNS-rebinding fix, not credential binding. In extractKeyGrafanaInfoFromReq at tag v0.17.1 (mcpgrafana.go around lines 782–812), a request that supplied a URL in the header still received the environment API key whenever the request itself had no token. The change that binds environment credentials to the configured Grafana URL is commit c1a013523eb1395d517d8708097666e7b0d689f4 (#995), shipped in v0.17.2 (published 13 July 2026, 22:06:31 Asia/Hong_Kong / 14:06:31 UTC). In that tag, environment tokens and basic auth are used only when requestTargetsEnvURL reports that the request URL is empty or normalizes to the configured Grafana URL.
That fix stopped the token from following a caller-chosen URL. It did not restrict the destinations themselves. CVE-2026-19516 (published 11 August 2026, 14:17:13 Asia/Hong_Kong / 06:17:13 UTC; CVSS 9.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L) covers that remaining SSRF: a caller who could invoke grafana_api_request and supply X-Grafana-URL could still aim the server at internal, loopback, or link-local services and read the responses. Grafana’s advisory lists fixed versions as >=1.1.0. v1.1.0 (published 10 August 2026, 17:45:22 Asia/Hong_Kong / 09:45:22 UTC) removed the header (PR #1052).
In v1.6.0 the header came back as an explicit opt-in (PR #1242), which is the design still present in v2.4.0. --allow-grafana-url-override defaults to false (env GRAFANA_ALLOW_URL_OVERRIDE). --allowed-grafana-urls (env GRAFANA_ALLOWED_URLS) is an optional exact base-URL allowlist. GrafanaURLOverrideMiddleware rejects X-Grafana-URL with HTTP 403 when the switch is off. When the switch is on, a request may set the header only if it also carries its own X-Grafana-Service-Account-Token or X-Grafana-API-Key; extractKeyGrafanaInfoFromReq then uses only those request-scoped credentials. grafanaTargetTransport pins outbound requests, including redirects, to the selected base URL.
This is not a reopening of CVE-2026-15583’s environment-token exfil. ValidateGrafanaURL accepts any absolute http or https URL with a host; it rejects other schemes and embedded userinfo, and it does not block loopback, link-local, or cloud-metadata addresses. If override is on and the allowlist is empty, the flag help text says callers may select any valid HTTP(S) URL reachable by the server, and that operators must restrict access to trusted callers. Destination SSRF with the caller’s token is still possible in that configuration; the environment token is not attached. We did not run the server to confirm runtime enforcement or to re-test the historical CVEs.
Shared HTTP credentials, caller auth, and the Docker bind
For the binary, stdio plus an environment token is the documented local default, and the HTTP bind default is loopback. --server-auth-token (env MCP_GRAFANA_SERVER_TOKEN) defaults to empty; --server-auth-header then falls back to Authorization. Caller authentication is applied only when a token is configured, and only to the MCP route, not to /healthz or /metrics. --require-user-credentials defaults to false, so a shared GRAFANA_SERVICE_ACCOUNT_TOKEN on a streamable-http listener is the default credential model. If someone binds a non-loopback address without a caller token, checkCallerAuthPolicy logs a SECURITY error that anyone who can reach the address can invoke tools with the configured Grafana credentials, and that this will become a startup error in a future release — and then the process still starts. On a loopback bind the same missing token is only a warning.
The official image does not use the binary’s loopback default. Its entrypoint binds 0.0.0.0:8000 in SSE mode. The README is explicit: in SSE and streamable-http modes the container binds a non-loopback address, and without a caller token the server starts but logs that security error. The README’s networked docker run examples set MCP_GRAFANA_SERVER_TOKEN. A docker run grafana/mcp-grafana that does not override the entrypoint and does not set that variable is still the image default: all interfaces, SSE, no caller token, and — if you also pass GRAFANA_SERVICE_ACCOUNT_TOKEN — a shared environment credential on that listener. Host and Origin checks still apply, but they are a DNS-rebinding control, not a substitute for caller authentication, and --healthz-address / --metrics-address side listeners are not wrapped by them.
--log-tool-calls (env GRAFANA_LOG_TOOL_CALLS) defaults to false. When it is on, ToolCallLogMiddleware logs the tool name, Grafana user, result, duration, and optional datasourceUid — not tool arguments, which the flag help text and middleware comment both say are never logged. Arguments can still appear in OpenTelemetry spans if --include-args-in-spans is enabled (default false). Anonymous usage statistics are on by default (usagestats.DefaultMode is enabled; endpoint https://stats.grafana.org/mcp-grafana-usage-report). The package comments say URLs, credentials, tool arguments, and resource names are not sent. Operators can opt out with --usage-stats=disabled, GRAFANA_USAGE_STATS=disabled, or DO_NOT_TRACK=1. We did not capture a live report.
Official uvx examples are unpinned, and PyPI is behind this release
The README’s recommended install is uvx mcp-grafana, and the client JSON examples use "command": "uvx", "args": ["mcp-grafana"] with GRAFANA_URL and GRAFANA_SERVICE_ACCOUNT_TOKEN. The live install-with-uvx docs page shows the same unpinned command. go install .../mcp-grafana@latest and the README’s docker pull grafana/mcp-grafana are likewise unpinned.
Because the first-party PyPI project was still 2.2.0 at research time, an operator who follows those uvx examples does not get this pin unless they install from another channel. We did not review 2.2.0 as a substitute pin. The in-tree Claude Code plugin installer (.claude-plugin/install-binary.mjs) fetches releases/latest and verifies the archive against that release’s checksums file, which is not a pin to v2.4.0.
The README still tells operators to install Helm chart grafana/grafana-mcp from https://grafana.github.io/helm-charts. At research time that path was a migration stub pointing at grafana-community/helm-charts after 30 January 2026. Artifact Hub listed a grafana-mcp chart there at chart version 0.38.0, app version 2.4.0 (verified publisher, not marked official). A similarly named third-party chart also exists. We did not review Helm templates or default values.
Data the tools can return
The default tool set can read dashboard JSON and panel queries, list datasources, run PromQL and LogQL (and Tempo, Pyroscope, and similar queries in their default categories), list incidents and OnCall data, render panel images, list snapshots, search Grafana docs, and return user_info about the current credential. Those results can contain the same secrets and identifiers the Grafana APIs already return. grafana_api_request can return whatever the chosen Grafana path returns. Default write tools change Grafana state, not only the model’s context window.
Optional categories go further. query_sql and query_influxdb pass the query through unfiltered and can mutate data if the datasource credentials allow it; query_datasource is in the same class. admin lists users, roles, and permissions; notebooks can create, update, and delete notebooks. None of those are in defaultEnabledTools, but --enabled-tools replaces the list entirely, so a copied docs example can add or drop categories unexpectedly.
Malware check, and its limits
In the first-party Go we opened at 7f717bc, the network destinations we saw were the configured Grafana URL (and, when override is enabled, a request-selected URL), Grafana-related APIs used by tools, the docs tools’ grafana.com fetches, optional OpenTelemetry export, an optional SOCKS5 proxy from GRAFANA_SOCKS5_PROXY, and the default usage-stats endpoint. We did not see obfuscated payloads, unexpected miners, or a hidden exfil path independent of those documented channels. Installer scripts we opened either launch a local binary (mcpb/launch.sh) or download official GitHub Release assets and check SHA-256 sums. The Dockerfiles copy a built mcp-grafana binary and run it as uid 1000.
That is a source reading, not a malware clearance. We did not execute the binary, the image, uvx wheels, Homebrew bottles, or go install, and we did not audit the dependency graph beyond listing first-party go.mod requires. Absence of an obvious malicious program in the files we opened is not evidence that a dependency, a compiled archive, or a later latest tag is clean. The release checksums are signed with keyless GitHub OIDC; we did not independently reproduce the builds or run cosign verify-blob. Docker Hub digests are not a reproducible-build attestation for commit 7f717bc.
Who this is for
This server is for operators who already trust an MCP host with a Grafana credential and who want an assistant to read, and often to change, that Grafana instance. It fits a local stdio setup with a least-privilege service account, or a carefully authenticated streamable-http deployment that uses --require-user-credentials and does not share an environment token.
It is a poor default for a read-only assistant, a multi-tenant HTTP listener, or a Docker port published to a network. Do not give it an Editor-level token “for convenience,” which the README itself describes as less restrictive than least privilege, unless you accept that the default write tools — including grafana_api_request — will use that breadth. Do not enable --allow-grafana-url-override without an allowlist, and do not follow unpinned uvx mcp-grafana or grafana/mcp-grafana examples if you intend to run this pin. The MCP server is not a sandbox around a privileged Grafana token.
Safer pin and review steps, and their limits
These steps are written from source and from the package metadata we recorded. We did not end-to-end execute them.
- Pin a first-party 2.4.0 artifact: the GitHub Release archives verified against
mcp-grafana_2.4.0_checksums.txt; Homebrewmcp-grafana2.4.0; or the Docker image by digest (grafana/mcp-grafana@sha256:63d4501d3166c2b9242d8a2b5b7df8892c59c6c477be3a2a61bcf8a252671f31as observed on 1 December 2026, Asia/Hong_Kong), notlatest. Do not assumeuvx mcp-grafanainstalls this pin until PyPI publishes 2.4.0. - Prefer stdio for a single local client. If you use the Docker image that way, override the entrypoint with
-t stdioand keep stdin open, as the README says. Do not publish0.0.0.0:8000unless you have set--server-auth-token/MCP_GRAFANA_SERVER_TOKEN./healthzand/metricsstay unauthenticated on that listener unless you move them. - Run
--disable-writeunless you intend the model to change Grafana. If you need one write tool back, name it with--enable-write-tools. Disable theapicategory if you do not want a general Grafana API tool, andpluginif you do not wantinstall_plugin. Do not copy the shorter docs “default” list without checkingdefaultEnabledToolsin the binary you run. - Use a least-privilege Grafana service account for the tools you have enabled, not Editor by default.
- Leave
--allow-grafana-url-overrideoff unless you need per-request targets. If you turn it on, set--allowed-grafana-urlsand require caller authentication. The source already withholds the environment token from those requests. - For a shared streamable-http server, set
--require-user-credentials, do not configure a shared environment token, and set--server-auth-tokenunless a trusted authenticating proxy is the only path to the port. - Leave
--include-args-in-spansoff unless you know arguments are not sensitive. Treat tool results as Grafana API responses: they can contain secrets. Opt out of usage statistics if that default is not acceptable.
These steps do not make the server a security boundary. A client that can call the remaining tools can still do whatever the credential can do.
What we did not do
We did not run mcp-grafana, the Docker image, Homebrew, Helm, uvx, go install, or the Claude plugin installer, so we did not confirm runtime tool lists as advertised to a live MCP client, or default bind behavior beyond what the entrypoint and flags say. We did not log into Grafana or Grafana Cloud, and we used no credential, so we did not exercise writes, queries, URL-override requests, or caller-auth failures. We did not re-test CVE-2026-15583 or CVE-2026-19516 at runtime. We cannot prove that grafana/mcp-grafana:2.4.0 was built from commit 7f717bc. We did not review the Grafana Cloud hosted MCP server or Helm chart templates, and we did not unpack PyPI 2.2.0 or run cosign verify-blob.
More skill reviews
- Claude Security 0.13.1 can run pull request code — pin the GitHub Action the official sample leaves on mainAnthropic’s official Claude Security plugin, pinned here at v0.13.1, can review GitHub pull requests as a GitHub Action. Official docs warn that pull request text can steer the scan and that the scan can run the pull request’s code. The Action’s own limits tell you to pin a full commit SHA because it runs with sudo, but the official sample workflow still floats main, and the docs page still advertises the 0.13.0 merge commit. A green required check is not a hard security gate.
- Jupyter MCP Server 2.2.6 has CVE-2026-137189's Host-header bypass patched, but official uvx and Docker examples still use @latest, the image still binds 0.0.0.0, and execute_code can run kernel code with no server-side confirmationA static review, on 1 December 2026, of datalayer/jupyter-mcp-server at 526e80eda814fd8d98ae45ddbfccc765fa7490c6 (git tag v2.2.6) and PyPI jupyter-mcp-server 2.2.6, which remains the latest release: CVE-2026-137189's Host-header bypass of the earlier localhost management-route check is patched in this pin (the fix shipped in 2.1.3 on 1 September 2026; the CVE record was published 30 November 2026). Official uvx and Docker quick-start examples still use @latest / :latest. The pip CLI now binds Streamable HTTP to 127.0.0.1, but the official Docker image still sets HOST=0.0.0.0. execute_code and execute_cell can run kernel code; we found no server-side confirmation gate. We did not run the server. This is not a clean bill of health.
- Official Terraform MCP Server 1.4.1 defaults --toolsets to all, so a TFE_TOKEN unlocks write tools such as create_workspace_variable, grant_team_access, and create_run without ENABLE_TF_OPERATIONS; official HTTP examples bind TRANSPORT_HOST=0.0.0.0, which the TLS gate treats as localhost; and MCP_REQUIRE_TOKEN defaults offStatic review of HashiCorp terraform-mcp-server v1.4.1 (commit 3781509). The default --toolsets value is all, so a TFE_TOKEN enables write tools that ENABLE_TF_OPERATIONS does not gate. Official HTTP Docker examples bind 0.0.0.0, which the TLS check treats as localhost, and MCP_REQUIRE_TOKEN defaults off.