mcp-grafana
MCP server for Grafana
Grafana 官方维护的 MCP server。AI 能搜你的仪表盘、直接跑 PromQL 和 LogQL 查询、读当前告警状态和 incident。
排障时最有用——出事的时候直接问「过去半小时哪个服务的错误率涨了」,AI 自己写 PromQL 去查,不用你回忆语法。对不常写 PromQL 的人这个价值很大。
它能帮你做什么
让 AI 连你的 Grafana——查仪表盘、看指标、读告警,用对话排查监控数据。
能力
- 查询仪表盘与指标
- 读取告警状态
装好后,试试这样问 AI
在 Claude / Cursor 等接了这个 server 的客户端里直接说
- ›“过去一小时有没有触发的告警?”
为什么用它
适合:用 Grafana 做可观测性的 SRE 和后端,尤其是 on-call 的时候。
接入前注意:用 Grafana 的 service account token,给 Viewer 角色就够查询了。别给 Admin——AI 没必要有改仪表盘的权限。
安装 / 接入
# No npm package — install from source.
# See the repo's README for the exact command:
# https://github.com/grafana/mcp-grafana以官方 README 为准;env 与参数各 server 不同。
🛠️ 维护活跃度 权重 30% · 85分
📊 采用度 权重 25% · 63分
✅ 可用性 权重 20% · 20分
❤️ 健康度 & 社区 权重 25% · 73分
数据来源:GitHub API · 更新于 2026-08-19
近 90 天趋势
⭐ stars +0%
常见问题
支持 Grafana Cloud 和自托管吗?
都支持。配置里填你的实例地址和 service account token。
能查哪些数据源?
通过 Grafana 代理查询,所以 Grafana 里配了的数据源基本都能查,Prometheus 和 Loki 是最常用的两个。
相似 / 替代 server
同类里怎么选
云/运维类基本是「你用哪家云、哪个工具就选哪个官方 server」,按平台对号入座。
- 监控 / 可观测性→Grafana(指标看板)· Dynatrace(根因排障)
- 基础设施即代码 / 部署→Terraform(IaC)· Cloud Run / Netlify / Heroku(部署)
- 云成本管理(FinOps)→Vantage —— 跨云成本分析
io.github.grafana/mcp-grafana
An MCP server giving access to Grafana dashboards, data and more.
@heroku/mcp-server
Heroku Platform MCP Server using the Heroku CLI
io.github.mikhae1/kubeview
Read-only Model Context Protocol MCP server enabling code-driven AI analysis of
io.github.nogoo9/no-crd
Dynamic pod spawner & proxy for ephemeral AI agent workspaces on Kubernetes with
每周一封,5 分钟看完 MCP 生态发生了什么
新增 server、爆火趋势、弃坑预警——引擎自动追踪,人工筛选后发到你邮箱。
每周一封 · 随时退订 · 不卖数据