About
Overview
The Grafana MCP Server enables AI agents to interact with Grafana for observability and monitoring. It provides tools for querying data sources, managing dashboards, creating alerts, and exploring metrics. Supports Prometheus, Loki, and other Grafana data sources.
Capabilities
Tools & Capabilities
⚡search_dashboards
Search for Grafana dashboards
⚡get_dashboard
Get a dashboard's panels and configuration
⚡query_prometheus
Execute a PromQL query
⚡query_loki
Execute a LogQL query
⚡list_datasources
List configured data sources
⚡list_alerts
List alert rules and their states
Setup
Installation
bash
Install
go install github.com/grafana/mcp-grafana@latestExamples
Example Usage
javascript
Usage
{
"mcpServers": {
"grafana": {
"command": "mcp-grafana",
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_API_KEY": "your-api-key"
}
}
}
}Quick Info
Authorgrafana
LanguageGo
StatusStable
Stars★ 210
Last UpdatedFeb 12, 2026