Grafana MCP Server
by dockndevaiio.github.dockndevai/mcp-grafanav0.3.0
Search & edit Grafana dashboards, query datasources (PromQL/LogQL/SQL), inspect alerts.
context tax
queued
security
queued
cold start
queued
freshness
Active11d ago
Install Grafana MCP server
Install in Claude Code
claude mcp add grafana-dockndevai -e GRAFANA_TOKEN='<grafana-token>' -- npx -y @dockndevai/mcp-grafanaInstall in Cursor
{
"mcpServers": {
"grafana-dockndevai": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana"
],
"env": {
"GRAFANA_TOKEN": "<grafana-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"grafana-dockndevai": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana"
],
"env": {
"GRAFANA_TOKEN": "<grafana-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"grafana-dockndevai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana"
],
"env": {
"GRAFANA_TOKEN": "<grafana-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"grafana-dockndevai": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana"
],
"env": {
"GRAFANA_TOKEN": "<grafana-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GRAFANA_URL | — | — | Base URL of the Grafana instance (e.g. http://localhost:3000). |
| GRAFANA_TOKEN | yes | yes | Grafana service-account token (Bearer). Use a Viewer-role account for read-only use. |
| GRAFANA_MODE | — | — | Access mode: read-only | read-write | admin. Starts read-only; writes need read-write. |
Freshness
Active — last maintenance signal 11d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-29 · 11d ago · GitHub
Latest release
2026-09-29 · 11d ago · GitHub · v0.3.0
Package published
no data · npm/PyPI
Registry entry updated
2026-09-29 · 11d ago · official registry · v0.3.0
FAQ
›How do I install the Grafana MCP server in Claude Code?
Run: claude mcp add grafana-dockndevai -e GRAFANA_TOKEN='<grafana-token>' -- npx -y @dockndevai/mcp-grafana. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Grafana require an API key?
Yes. It expects GRAFANA_TOKEN, of which 1 is a secret.
›Can I use Grafana as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Grafana in the official MCP registry?
Yes, as io.github.dockndevai/mcp-grafana.
Alternatives to Grafana
Other database MCP servers.