grafana/grafana

MCP Server

Grafana MCP Server - dashboards and data visualization

Grafana monitoring MCP server. Query dashboards, Prometheus, Loki logs, incidents, alerting, OnCall, and profiling.

MCP Server

  • Package: @leval/mcp-grafana
  • Transport: stdio
  • Command: npx -y @leval/mcp-grafana

Authentication

Service Account Token, API Key, or Basic Auth

VariableRequiredDescription
GRAFANA_URLYesGrafana instance URL
GRAFANA_SERVICE_ACCOUNT_TOKENYesService account token

Available Tools

ToolDescription
search_dashboardsSearch dashboards
get_dashboardGet dashboard
prometheus_queryPrometheus PromQL
loki_queryLoki log query
list_incidentsList incidents
list_alert_rulesAlert rules
get_oncall_schedulesOnCall schedules

Configuration Example

toml
[[mcp.servers]]
name = "grafana"
type = "stdio"
command = "npx"
args = ["-y", "@leval/mcp-grafana"]
timeout_seconds = 60
env = { GRAFANA_URL = "your-value", GRAFANA_SERVICE_ACCOUNT_TOKEN = "your-value" }
tools = []

Notes: 43 tools. Supports mTLS. Covers Prometheus, Loki, incidents, alerting, OnCall, Pyroscope profiling.