Grafana MCP Server
Official MCP server exposing Grafana dashboards, datasource queries, alerts, and incidents to AI agents.
Grafana MCP Server
Grafana's official Model Context Protocol server connects AI agents to a Grafana instance and the observability data behind it. Instead of clicking through dashboards, an agent can search panels, query metrics and logs, and investigate alerts programmatically.
Key features
- Search and read dashboards, panels, and their underlying queries
- Query Prometheus and Loki datasources for metrics and logs to investigate incidents
- Inspect and manage alert rules and firing alerts
- Work with Grafana Incident, OnCall, and Sift investigations where configured
- Navigate datasources and Grafana entities via a service-account API token
- Distributed as a Go binary and container, with selectable tool groups to limit scope
By exposing Grafana as tools, it lets an assistant do real observability work — correlate a metric spike with logs, read the relevant dashboard, and summarize an alert — all through one MCP endpoint.
Curated mirror of the open-source mcp-grafana (Apache-2.0). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/grafana-mcp-server/check). Click a policy:
Consume Grafana MCP Server programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/grafana-mcp-server
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/grafana-mcp-server/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add grafana-mcp-server
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/grafana-mcp-server/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "grafana-mcp-server" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.