72
/ 100
17 days ago
glama

grafana-mcp

This MCP server enables natural-language querying of Grafana logs by automatically detecting log sources and service labels. It provides read-only access to log data with intelligent caching for efficient repeat queries.

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.

Install from

M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.

// key findings
⚠️
Known vulnerabilities in dependencies: 2 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
Open source with a license and README
Anyone can audit the code, the license is declared, and the publisher documents what it does.
🔐
You'll be asked for 4 credentials: GRAFANA_API_KEY, GRAFANA_CLOUD_ACCESS_POLICY_TOKEN, GRAFANA_PASSWORD, GRAFANA_SERVICE_ACCOUNT_TOKEN
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// known CVEs in dependencies2 high

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

high@modelcontextprotocol/sdk@1.1.0GHSA-8r9q-7v3j-jr4g

Anthropic's MCP TypeScript SDK has a ReDoS vulnerability

high@modelcontextprotocol/sdk@1.1.0GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
🔐 secretGRAFANA_API_KEYLegacy API Keys (deprecated in 10.x)
🔐 secretGRAFANA_CLOUD_ACCESS_POLICY_TOKENGrafana Cloud
configGRAFANA_INSTANCESGRAFANA_URL Grafana server URL (single-instance mode, required when is unset)
configGRAFANA_MCP_AUDIT_LOG(optional) Audit log file path. Defaults to ~/.grafana-mcp/audit.log. Set to off to disable. Each line is a JSON record with tool name, args, duration, status.
configGRAFANA_MCP_CACHE(optional) Set to off to disable the on-disk log cache.
configGRAFANA_MCP_CACHE_PATH(optional) Log cache file path. Defaults to ~/.grafana-mcp/log-cache.json.
configGRAFANA_MCP_CACHE_TTL_DATASOURCES_MS(optional) TTL for the log-datasource list cache. Default 86400000 (24h).
configGRAFANA_MCP_CACHE_TTL_LABELS_MS(optional) TTL for the Loki label-key cache. Default 86400000 (24h).
configGRAFANA_MCP_CACHE_TTL_LABEL_VALUES_MS(optional) TTL for the Loki label-value cache. Default 3600000 (1h).
configGRAFANA_MCP_CACHE_TTL_SERVICE_MS(optional) TTL for the {service → (ds_uid, label)} resolution cache. Default 3600000 (1h).
configGRAFANA_MCP_LOG(optional) Log level: debug, info (default), warn, error, silent. Logs go to stderr to avoid corrupting the MCP stdio channel.
configGRAFANA_ORG_ID(optional) Sent as X-Grafana-Org-Id header. For multi-org setups.
🔐 secretGRAFANA_PASSWORDGRAFANA_USERNAME + Basic Auth fallback
🔐 secretGRAFANA_SERVICE_ACCOUNT_TOKEN"": "glsa_xxx"
configGRAFANA_TLS_SKIP_VERIFY(optional) true / 1 to skip TLS verification (self-signed Grafana).
configGRAFANA_URL"": "https://grafana.example.com",
configGRAFANA_USERNAME+ GRAFANA_PASSWORD Basic Auth fallback
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 4 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/ninanung-grafana-mcp-11kuy7)](https://m8ven.ai/mcp/ninanung-grafana-mcp-11kuy7)
commit: de0d11736c764142f27a88864ded2780ab181017
code hash: 516f5d10fb82082d833e8ecfd48a35e1cb29623efaa37044f20a483b69a59618
verified: 6/17/2026, 11:57:37 AM
view raw JSON →