Grafana

Grafana

Search dashboards, investigate incidents and query datasources in your Grafana instance

1,901
Stars
192
Forks
20
Releases

Overview

Grafana MCP server exposes a Model Context Protocol (MCP) interface to a Grafana instance and its surrounding ecosystem. It provides capabilities to search, read, and modify Grafana resources across dashboards, datasources, incidents, alerts, OnCall, annotations, and more. Key dashboard operations include searching dashboards by metadata, getting dashboards by UID, retrieving compact summaries, extracting specific parts with JSONPath, updating or creating dashboards, patching changes, and fetching per-panel queries and datasource information to optimize context usage. Datasource management supports listing and detailing configured datasources, with Prometheus and Loki as supported types, plus Prometheus querying (instant and range) and metadata, and Loki querying (LogQL) with label metadata. Incidents and Sift investigations are supported, including searching, creating, updating incidents, investigations, and analyses, as well as log pattern detection and slow-request analysis. Alerts and OnCall capabilities cover listing alert rules and notification points, OnCall schedules, shifts, current on-call users, teams, users, alert groups, and detailed groups. Annotations, navigation, and deeplink generation are available, including annotation operations (get/create/update/patch/Graphite) and tag retrieval. The server supports multiple transports (stdio, SSE, streamable-http), TLS options, health checks, and deployment options via binaries, Docker, and Helm.

Details

Owner
grafana
Language
Go
License
Apache License 2.0
Updated
2025-12-07

Features

Dashboards

Search dashboards by title/metadata; get by UID; get dashboard summaries; extract parts with JSONPath; update/create dashboards; patch changes; and retrieve per-panel queries and datasource info to minimize context window usage.

Datasources

List and fetch datasource information; supports Prometheus and Loki as datasource types.

Prometheus querying

Execute instant and range PromQL queries against Prometheus datasources; retrieve metric metadata, metric names, label names, and label values.

Loki querying

Query Loki logs and metrics using LogQL; retrieve label names, label values, and stream statistics from Loki datasources.

Incidents

Search, create, and update incidents in Grafana Incident.

Sift investigations

List investigations; get investigation details and analyses; detect elevated error patterns in Loki logs and slow requests via Sift.

Alerts and OnCall

List and fetch alert rules; view notification contact points; manage Grafana OnCall schedules, shifts, current on-call users, teams, users, alert groups, and group details.

Annotations and Navigation

Get, create, update, and patch annotations (including Graphite annotations) and list annotation tags; generate deeplink URLs for dashboards, panels, and Explore with time ranges and variables.

Tags

GrafanaMCPGrafana MCPdashboardsdatasourcesPrometheusLokiincidentsSiftalertingGrafana OnCallannotationsnavigationdeeplinksRBACTLShealthzSSEstreamable-httpstdioDockerHelmKubernetes