grafana-mcp-observability
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grafana-mcp-observabilitylist all active alerts in production"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grafana-mcp-observability
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.
Related MCP server: Grafana MCP Server
Available Tools
Tool | Description |
| List all Grafana dashboards by folder |
| Fetch a dashboard's panel definitions and queries |
| Run a PromQL or LogQL query against a datasource |
| List active and pending alert rules |
| Get labels, annotations, and state for a specific alert |
| List configured datasources (Prometheus, Loki, Tempo, etc.) |
| 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.txtConfiguration
export GRAFANA_URL=https://grafana.example.com
export GRAFANA_TOKEN=<service-account-token>Run
python server.pyMCP 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 neededNo 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 tracescreate_annotation— mark AI-driven investigation eventssilence_alert— create Alertmanager silences via MCPMulti-org Grafana support
GitHub Actions workflow for CI validation
Related Projects
Repo | Purpose |
Kubernetes cluster diagnostics via MCP | |
Azure resource management via MCP | |
LLM tracing and evaluation via MCP |
License
MIT License. See LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables AI-powered integration with Grafana instances through 52 MCP tools for dashboard management, Prometheus/Loki queries, alerting, and administrative functions. Supports complete Grafana functionality including metrics exploration, log analysis, and incident response through natural language.801
- AlicenseBqualityBmaintenanceEnables AI assistants to interact with Grafana dashboards, datasources, alerts, incidents, and monitoring data through 43 comprehensive tools. Supports querying Prometheus metrics, Loki logs, managing incidents, and dashboard operations with full authentication support.437623MIT
- FlicenseAqualityDmaintenanceEnables AI agents to query Prometheus metrics and Loki logs for intelligent alert investigation and troubleshooting. Provides service discovery, metric querying, log searching, and correlation tools to help identify root causes of issues.9
- Alicense-qualityDmaintenanceEnables MCP-compatible agents to interact with Grafana instances for searching, creating, and updating dashboards, exploring logs via Loki, querying datasources, managing alerts, incidents, and on-call shifts, and accessing observability data.8Apache 2.0
Related MCP Connectors
Provide real-time data querying and visualization by integrating Tako with your agents. Generate o…
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
Verified, sourced, real-time intelligence layer for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akkireddy-challa/grafana-mcp-observability'
If you have feedback or need assistance with the MCP directory API, please join our Discord server