MCPHIVE

Grafana MCP: Documentation

Updated:

Connection

Local: uvx mcp-grafana (stdio by default, with a Streamable HTTP mode). Env vars GRAFANA_URL and GRAFANA_API_KEY — a Grafana service account token with the needed permissions on dashboards, datasources and alerts. Requirements: Grafana 9+, network access to your instance.

Tools

Dozens of tools across areas:

  • query_prometheus, query_loki_logs — query the metrics and logs datasources.
  • search_dashboards, get_dashboard_by_uid, update_dashboard — find and edit dashboards.
  • list_datasources — list connected data sources.
  • list_alert_rules, get_alert_rule_by_uid — alerting rules.
  • list_oncall_schedules — on-call rotations and escalations via Grafana OnCall.
  • Sift tools — automatic error-pattern and anomaly detection across logs/metrics.

Agent flow

"Why is API latency climbing over the last hour?", "are there active alerts, and who's on call?", "find the production cluster's dashboard and show its panels".

Pricing

The MCP server is free and open source; access to Grafana itself and its datasources follows your plan (self-hosted OSS is free, Grafana Cloud is billed per plan).

Grafana MCP — Documentation