A Model Context Protocol server for Grafana providing AI assistants access to dashboards, datasources, alerting, incidents, and monitoring tools with RBAC support and context window optimization.
List all teams in Grafana.
List all users in an organization in Grafana.
Search for dashboards by title or other metadata.
Get a dashboard by its unique identifier.
Update or create a new dashboard.
Get panel title, queries, datasource UID and type from a dashboard.
Extract specific parts of a dashboard using JSONPath expressions.
Get a compact summary of a dashboard without full JSON.
List all configured datasources.
Get a datasource by its unique identifier.
Get a datasource by its name.
Execute a query against a Prometheus datasource.
List metric metadata from a Prometheus datasource.
List available metric names from a Prometheus datasource.
List label names matching a selector from a Prometheus datasource.
List values for a specific label from a Prometheus datasource.
List incidents in Grafana Incident.
Create an incident in Grafana Incident.
Add an activity item to an incident in Grafana Incident.
Get a single incident by ID in Grafana Incident.
Query and retrieve logs using LogQL against a Loki datasource.
List all available label names in logs from a Loki datasource.
List values for a specific log label from a Loki datasource.
Get statistics about log streams from a Loki datasource.
List alert rules in Grafana.
Get alert rule by UID in Grafana.
List notification contact points in Grafana.
List schedules from Grafana OnCall.
Get details for a specific OnCall shift.
Get users currently on-call for a specific schedule.
List teams from Grafana OnCall.
List users from Grafana OnCall.
Retrieve an existing Sift investigation by its UUID.
Retrieve a specific analysis from a Sift investigation.
Retrieve a list of Sift investigations with an optional limit.
Find elevated error patterns in Loki logs using Sift.
Find slow requests using Sift from Tempo datasources.
List label names matching a selector from a Pyroscope datasource.
List label values matching a selector for a label name from a Pyroscope datasource.
List available profile types from a Pyroscope datasource.
Fetch a profile in DOT format for analysis from a Pyroscope datasource.
Get assertion summary for a given entity in Grafana Asserts.
Generate accurate deeplink URLs for Grafana resources.
{
"mcpServers": {
"grafana": {
"command": "mcp-grafana",
"args": [],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
}
}
}
}