MCP ScannerCustom audit
All servers

grafana/mcp-grafana

MCP server for Grafana

Packagegithub.com/grafana/mcp-grafana/v2
PublisherGrafana Labs Official
MCP Registryio.github.grafana/mcp-grafana
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 3,669Forks 497Last push 2026-11-13
Go 74.5%TypeScript 22.7%JavaScript 1.4%Python 1.4%by source files the scanner reads
Code safetynot analysedExposurenot analysedPromptsnot analysedSupply chain4.1Secretsnot analysedTransparencynot analysed
Analysis confidence79%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetynot analysed—

Paths from tool input into commands, SQL, files and URLs

Capability Exposurenot analysed—

How much power the tools give an agent over the machine

Prompt Integritynot analysed—

Hidden instructions and poisoning in text for the model

Supply Chain4.1/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnot analysed—

How the server reads credentials and where they can go

Behavior Transparencynot analysed—

Whether the tools do only what their descriptions say

How far the analysis went

Code Safety, Capability Exposure, Prompt Integrity, Secrets & Credentials and Behavior Transparency are not analysed and have no number.

  • Code Safety and Capability Exposure: no tool's code could be followed from its input
  • Prompt Integrity and Secrets & Credentials: no tool description could be read from the code
  • Behavior Transparency: no tool description could be read to compare with the code
  • 8 tools, prompts and resources registered only in the repository's tests are not counted on this page

Top risks in plain words

  • HIGH12 production dependencies have known vulnerabilities (worst: high).

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Update its vulnerable packages

    Use github.com/klauspost/compress 1.20.2 or later, go.opentelemetry.io/otel 1.47.0 or later, go.opentelemetry.io/otel/sdk 1.47.0 or later, go.opentelemetry.io/otel/sdk/log 1.47.0 or later and 4 more.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 7 resources, 2 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

The code of the tools could not be followed, so what they can reach is not known.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

No tool was seen returning text from outside the server to the model.

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (9: 7 resources, 2 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

Grafana Appresource Interactive metrics charts and trace waterfall
Interactive metrics charts and trace waterfall
Grafana App viz Rendererresource Script that the Grafana App loads to draw query_datasource results. It is not for the chat.
Script that the Grafana App loads to draw query_datasource results. It is not for the chat.
Panel Viewerresource Interactive HTML viewer for Grafana panel images
Interactive HTML viewer for Grafana panel images
k.readresource
No description.
paramsresource /projects
/projects
paramsresource /logbuckets
/logbuckets
paramsresource /logviews
/logviews
grafana_app_viz_renderertool Declares the chart script of the Grafana App as a UI resource, so that a host lets the App read it. It is for the App, not for the chat, and it returns no data.
Declares the chart script of the Grafana App as a UI resource, so that a host lets the App read it. It is for the App, not for the chat, and it returns no data.
t.Handlertool
No description.

Text the model reads (10)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

t.Handler tool
grafana_app_viz_renderer tool
Declares the chart script of the Grafana App as a UI resource, so that a host lets the App read it. It is for the App, not for the chat, and it returns no data.
k.read resource
params resource
/projects
params resource
/logbuckets
params resource
/logviews
params resource
/logviews
Panel Viewer resource
Interactive HTML viewer for Grafana panel images
Grafana App resource
Interactive metrics charts and trace waterfall
Grafana App viz Renderer resource
Script that the Grafana App loads to draw query_datasource results. It is not for the chat.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetynot analysed
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Not checked: no tool's code could be followed from its input
Capability Exposurenot analysed
  • 5 checks: runs programs the caller chooses, executes caller-supplied code, reads or writes any file path, requests any address, runs caller-supplied SQL
    Not checked: no tool's code could be followed from its input
  • Tools that start processes
    Not known: no tool's code could be followed
  • Tools that touch files
    Not known: no tool's code could be followed
  • Tools that call the network
    Not known: no tool's code could be followed
Where the code is: 9 handlers in 5 files at commit 10ea9d38a5d6
Prompt Integritynot analysed
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Not checked: no tool description could be read from the code
Supply Chain4.1
  • Dependency manifests
    5 manifests: go.mod, lokiguard/go.mod, tests/pyproject.toml, ui/mcp-apps/package.json, ui/panel-viewer/package.json
  • Lockfiles checked against OSV
    5 files resolved and checked against the OSV database; 1 not resolved: tests/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies HIGH
    12 production packages with known advisories
  • Known vulnerabilities in other dependencies
    3 packages with advisories used only for development, tests or examples; an install of the server leaves them out
  • MCP SDK version
    github.com/modelcontextprotocol/go-sdk v1.8.0, @modelcontextprotocol/client 2.4.0, @modelcontextprotocol/core 2.4.0, @modelcontextprotocol/ext-apps ^2.0.3
Secrets & Credentialsnot analysed
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Not checked: no tool description could be read from the code
  • Tools that read credentials
    Not known: no tool's code could be followed
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparencynot analysed
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Not checked: no tool description could be read to compare with the code
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (12 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
zodnpm 4.6.5 HIGH 1 advisory 4.6.6
  • HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
golang.org/x/netGo v0.59.0 MEDIUM 7 advisories 0.60.00.62.0
  • MEDIUMGO-2026-6610 BIT-golang-2026-78660 CVE-2026-78660HTTP/2 transport accepts malformed framing-related headers in net/http
  • MEDIUMGO-2026-6612 BIT-golang-2026-78663 CVE-2026-78663Double flow control refund on HTTP/2 server streams in net/http
  • MEDIUMGO-2026-6860 CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
  • MEDIUMGO-2026-6611 BIT-golang-2026-78669 CVE-2026-78669Excessive CPU consumption from repeated initial window changes in net/http
  • MEDIUMGO-2026-6603 BIT-golang-2026-78659 CVE-2026-78659HTTP/2 server memory exhaustion due to Trailer headers in net/http
  • MEDIUMGO-2026-6617 BIT-golang-2026-97032 CVE-2026-97032HTTP/2 server crash due to HPACK encoder race in net/http
  • MEDIUMGO-2026-6866 CVE-2026-97045Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
go.opentelemetry.io/otel/sdkGo v1.46.0 MEDIUM 2 advisories 1.47.0
  • MEDIUMGHSA-q7gw-24fr-5p69 CVE-2026-128085 GO-2026-6974opentelemetry-go: AttributeValueLengthLimit is fully bypassed by attribute values composed of valid U+FFFD runes
  • MEDIUMGO-2026-6974 CVE-2026-128085 GHSA-q7gw-24fr-5p69AttributeValueLengthLimit bypass via U+FFFD runes in go.opentelemetry.io/otel/sdk
go.opentelemetry.io/otel/sdk/logGo v0.22.0 MEDIUM 2 advisories 1.47.0
  • MEDIUMGHSA-q7gw-24fr-5p69 CVE-2026-128085 GO-2026-6974opentelemetry-go: AttributeValueLengthLimit is fully bypassed by attribute values composed of valid U+FFFD runes
  • MEDIUMGO-2026-6974 CVE-2026-128085 GHSA-q7gw-24fr-5p69AttributeValueLengthLimit bypass via U+FFFD runes in go.opentelemetry.io/otel/sdk
go.opentelemetry.io/otel/traceGo v1.46.0 MEDIUM 2 advisories 1.47.0
  • MEDIUMGHSA-q7gw-24fr-5p69 CVE-2026-128085 GO-2026-6974opentelemetry-go: AttributeValueLengthLimit is fully bypassed by attribute values composed of valid U+FFFD runes
  • MEDIUMGO-2026-6974 CVE-2026-128085 GHSA-q7gw-24fr-5p69AttributeValueLengthLimit bypass via U+FFFD runes in go.opentelemetry.io/otel/sdk
golang.org/x/netGo v0.60.0 MEDIUM 2 advisories 0.62.0
  • MEDIUMGO-2026-6860 CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
  • MEDIUMGO-2026-6866 CVE-2026-97045Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
golang.org/x/netGo v0.61.0 MEDIUM 2 advisories 0.62.0
  • MEDIUMGO-2026-6860 CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
  • MEDIUMGO-2026-6866 CVE-2026-97045Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
github.com/klauspost/compressGo v1.20.0 MEDIUM 1 advisory 1.20.2
  • MEDIUMGO-2026-6865 CVE-2026-116591 GHSA-fpmh-frq8-7rj8Panic on two-block frames in github.com/klauspost/compress
github.com/klauspost/compressGo v1.20.1 MEDIUM 1 advisory 1.20.2
  • MEDIUMGO-2026-6865 CVE-2026-116591 GHSA-fpmh-frq8-7rj8Panic on two-block frames in github.com/klauspost/compress
go.opentelemetry.io/otelGo v1.46.0 MEDIUM 1 advisory 1.47.0
  • MEDIUMGO-2026-6975 CVE-2026-128086 GHSA-rrfc-gjm9-cgrjMemory allocation amplification in W3C baggage parsing in go.opentelemetry.io/otel
golang.org/x/cryptoGo v0.58.0 MEDIUM 1 advisory 2026-10-09
  • MEDIUMGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
golang.org/x/cryptoGo v0.57.0 MEDIUM 1 advisory 2026-10-09
  • MEDIUMGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
3 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
PackageInstalledWorstAdvisoriesFixed in
react-routernpm 6.30.6 MEDIUM 2 advisories 7.18.0
  • MEDIUMGHSA-wrjc-x8rr-h8h6 CVE-2026-53669React Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)
  • MEDIUMGHSA-337j-9hxr-rhxg CVE-2026-53666React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration
i18nextnpm 19.9.2 MEDIUM 1 advisory 26.3.4
  • MEDIUMGHSA-6jcc-5g8w-32mx CVE-2026-63402i18next deepExtend recurses into inherited built-ins, allowing corruption of shared built-in objects (DoS)
minimatchnpm 10.2.6 MEDIUM 1 advisory 11.0.1
  • MEDIUMGHSA-g3hv-75wg-m249 CVE-2026-118764minimatch has potential denial of service via globparts amplification

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package. A hosted version is also offered: https://mcp.grafana.com/mcp not assessed a code scan covers the repository, not what runs on the vendor's servers
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKgithub.com/modelcontextprotocol/go-sdk v1.8.0, @modelcontextprotocol/client 2.4.0, @modelcontextprotocol/core 2.4.0, @modelcontextprotocol/ext-apps 2.0.4, @modelcontextprotocol/ext-apps ^2.0.3

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-13
Signed releasesnot checked yet

Where it is published

MCP Registryio.github.grafana/mcp-grafana
Hosted endpointhttps://mcp.grafana.com/mcp
Listed in10 catalogs (awesome_habitoai, awesome_mobinx, awesome_tensorblock, awesome_wong2, docker_catalog, github_search, glama, mcp_registry, mcp_toplist, mcpservers_org)
LicenseApache-2.0
Created2024-12-24

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.