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.
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.
Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.
Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
process.env. You'll be asked to provide them before it can run.GRAFANA_API_KEY— Legacy API Keys (deprecated in 10.x)GRAFANA_CLOUD_ACCESS_POLICY_TOKEN— Grafana CloudGRAFANA_INSTANCES— GRAFANA_URL Grafana server URL (single-instance mode, required when is unset)GRAFANA_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.GRAFANA_MCP_CACHE— (optional) Set to off to disable the on-disk log cache.GRAFANA_MCP_CACHE_PATH— (optional) Log cache file path. Defaults to ~/.grafana-mcp/log-cache.json.GRAFANA_MCP_CACHE_TTL_DATASOURCES_MS— (optional) TTL for the log-datasource list cache. Default 86400000 (24h).GRAFANA_MCP_CACHE_TTL_LABELS_MS— (optional) TTL for the Loki label-key cache. Default 86400000 (24h).GRAFANA_MCP_CACHE_TTL_LABEL_VALUES_MS— (optional) TTL for the Loki label-value cache. Default 3600000 (1h).GRAFANA_MCP_CACHE_TTL_SERVICE_MS— (optional) TTL for the {service → (ds_uid, label)} resolution cache. Default 3600000 (1h).GRAFANA_MCP_LOG— (optional) Log level: debug, info (default), warn, error, silent. Logs go to stderr to avoid corrupting the MCP stdio channel.GRAFANA_ORG_ID— (optional) Sent as X-Grafana-Org-Id header. For multi-org setups.GRAFANA_PASSWORD— GRAFANA_USERNAME + Basic Auth fallbackGRAFANA_SERVICE_ACCOUNT_TOKEN— "": "glsa_xxx"GRAFANA_TLS_SKIP_VERIFY— (optional) true / 1 to skip TLS verification (self-signed Grafana).GRAFANA_URL— "": "https://grafana.example.com",GRAFANA_USERNAME— + GRAFANA_PASSWORD Basic Auth fallback[](https://m8ven.ai/mcp/ninanung-grafana-mcp-11kuy7)