G
Grafana MCP Server
Integrates AI assistants with Grafana through MCP, enabling querying of dashboards, listing panels, and searching annotations to surface observability insights in your AI workflow.
stdioLocalApiKeynpm
What This Server Exposes
Tools
query_dashboardlist_dashboardssearch_annotations
Resources
- •dashboard data
- •panel metrics
- •annotation records
Setup Instructions
- 1Create a Grafana service account token in your Grafana instance under Administration > Service Accounts
- 2Note your Grafana instance URL
- 3Add the Grafana server config to your Claude Desktop configuration
- 4Set the GRAFANA_URL and GRAFANA_TOKEN environment variables
- 5Restart Claude Desktop
Configuration
Claude Desktop Configuration
claude_desktop_config.json
{
"mcpServers": {
"grafana": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-grafana"
],
"env": {
"GRAFANA_URL": "https://your-grafana-instance.com",
"GRAFANA_TOKEN": "your-grafana-service-account-token"
}
}
}
}Environment Variables
| Name | Required | Secret | Description |
|---|---|---|---|
| GRAFANA_URL | ✓ | — | Base URL of your Grafana instance, e.g. https://your-grafana-instance.com |
| GRAFANA_TOKEN | ✓ | 🔒 | Grafana service account token with viewer or editor permissions |
GRAFANA_URL
Base URL of your Grafana instance, e.g. https://your-grafana-instance.com
Required
GRAFANA_TOKEN
Grafana service account token with viewer or editor permissions
Required🔒 Secret
Server Manifest
No official server.json manifest found. Generate one with our MCP server.json Generator →
Compatibility
Claude DesktopClaude Code
⚠
Safety Notes
Grafana dashboards may contain sensitive infrastructure metrics. Use a read-only service account token where possible, and restrict token access to specific organizations or folders.
This listing is for informational purposes only. CodexSpot is not affiliated with Grafana MCP Server.