Grafana
by grafana
Grafana's official MCP — dashboards, alerts, datasources, plus Loki + Prometheus + Pyroscope queries.
Grafana instance base URL (http://localhost:3000 or https://myinstance.grafana.net)
http://localhost:3000Service account token (starts with glsa_); create under Administration → Service accounts
Path to file containing the service account token (alternative to inline token)
Username for basic auth (alternative to service account token)
Password for basic auth
Legacy API key - deprecated, use service account token instead
Numeric organization ID to scope requests to
Comma-separated list of allowed URLs for per-request overrides
Whether to allow per-request URL overrides
Whether to allow cross-origin redirects
JSON object mapping header names to values for all Grafana API requests
Comma-separated list of headers to forward from incoming requests (streamable-http transport only)
SOCKS5 proxy URL for Grafana traffic (e.g., socks5://user:[email protected]:1080)
Maximum bytes for Loki queries
Maximum time range for Loki queries
Guardrail enforcement mode for Loki queries
Set to 1 to opt out of usage statistics (W3C DNT standard)
1Usage statistics collection preference
Optional KEY=VALUE pairs (one per line) set as extra environment variables on the connector's process. Lines starting with # are ignored; uncomment and edit what you need.
Default template
# Optional extra environment variables, one KEY=VALUE per line. # Lines starting with # are ignored: uncomment and edit what you need. # Documented options: https://github.com/grafana/mcp-grafana # Route the connector through an HTTP proxy, if your network needs one. # HTTPS_PROXY=http://proxy.example:8080 # Turn up logging for troubleshooting (read by many servers; the name varies). # LOG_LEVEL=debug
This template lands in your config when you add the connector. Edit or override anytime from My Connectors — click the connector's config action to open the same editor with your saved values.
Runtime commands — technical reference. Nothing to configure here; the desktop runs these for you.
go install github.com/grafana/mcp-grafana/cmd/[email protected]uvx mcp-grafana==2.2.0