Grafana Observability
БесплатноНе проверенEnables AI agents to query Grafana dashboards, alerts, and datasources for observability insights and incident investigation.
Описание
Enables AI agents to query Grafana dashboards, alerts, and datasources for observability insights and incident investigation.
README
MCP server for Grafana — query dashboards, alerts, and datasources via AI agents.
What is this?
grafana-mcp-observability is an MCP (Model Context Protocol) server that exposes Grafana's observability stack to AI agents. It enables AI-driven incident investigation, alert triage, and dashboard querying — without requiring manual Grafana access.
Built for platform engineers who run Grafana with Prometheus, Loki, or Tempo as their observability backend.
Available Tools
| Tool | Description |
|---|---|
list_dashboards |
List all Grafana dashboards by folder |
get_dashboard |
Fetch a dashboard's panel definitions and queries |
query_datasource |
Run a PromQL or LogQL query against a datasource |
list_alerts |
List active and pending alert rules |
get_alert_details |
Get labels, annotations, and state for a specific alert |
list_datasources |
List configured datasources (Prometheus, Loki, Tempo, etc.) |
get_annotations |
Fetch deployment or event annotations from dashboards |
Quick Start
Prerequisites
- Python 3.11+
- Grafana instance with API access
- Grafana Service Account token with
Viewerrole
Installation
git clone https://github.com/akkireddy-challa/grafana-mcp-observability
cd grafana-mcp-observability
pip install -r requirements.txt
Configuration
export GRAFANA_URL=https://grafana.example.com
export GRAFANA_TOKEN=<service-account-token>
Run
python server.py
MCP Client Config (Claude Desktop)
{
"mcpServers": {
"grafana": {
"command": "python",
"args": ["/path/to/grafana-mcp-observability/server.py"],
"env": {
"GRAFANA_URL": "https://grafana.example.com",
"GRAFANA_TOKEN": "<your-token>"
}
}
}
}
Security Model
- Uses Grafana Service Account tokens — not user credentials
- Token requires
Viewerrole only — no write access needed - No dashboard modifications or alert rule changes are possible
- All queries are read-only
- Token stored in environment variables, never in code
Use Cases at Telia
This pattern is used to allow AI agents to:
- Investigate active alerts by querying Prometheus metrics in context
- Correlate Loki log spikes with Grafana annotation events (deployments)
- Summarize dashboard panel state for on-call briefings
- Detect anomalous query patterns across multi-tenant Grafana orgs
Roadmap
-
get_traces— query Tempo distributed traces -
create_annotation— mark AI-driven investigation events -
silence_alert— create Alertmanager silences via MCP - Multi-org Grafana support
- GitHub Actions workflow for CI validation
Related Projects
| Repo | Purpose |
|---|---|
| k8s-mcp-server | Kubernetes cluster diagnostics via MCP |
| azure-mcp-platform | Azure resource management via MCP |
| phoenix-mcp-eval | LLM tracing and evaluation via MCP |
License
MIT License. See LICENSE for details.
Установка Grafana Observability
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/akkireddy-challa/grafana-mcp-observabilityFAQ
Grafana Observability MCP бесплатный?
Да, Grafana Observability MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Grafana Observability?
Нет, Grafana Observability работает без API-ключей и переменных окружения.
Grafana Observability — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Grafana Observability в Claude Desktop, Claude Code или Cursor?
Открой Grafana Observability на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Grafana Observability with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
