MCP Server
Grafana MCP Server
by Grafana Labs
Search dashboards, query Prometheus/Loki, and manage alerts.
About Grafana
The Grafana MCP server enables searching and retrieving dashboards, listing and fetching alert rule information, listing and querying data sources (Prometheus, Loki), querying metadata, and managing Grafana incidents (create, update, resolve). Modular design allows selectively enabling tools.
Tags
monitoringdashboardsprometheuslokiincidents
How to install Grafana
- Package
- mcp-grafana (pypi)
- Transport
- Local (stdio), Remote (SSE), Remote (Streamable HTTP)
Install or run
uvx mcp-grafanaClient configuration
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": [
"mcp-grafana"
],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
}
}
}
}Copied from the official README — . Replace placeholder keys with your own credentials.
Client setup documented by the maintainer
| Client | Setup steps in README |
|---|---|
| Claude Desktop | Yes |
| Claude Code | Not documented |
| Cursor | Not documented |
| VS Code | Yes |
| Windsurf | Not documented |
“Not documented” means the README has no client-specific steps — most MCP clients can still run a local stdio server from the configuration above.