Grafana MCP server provides access to Grafana instances and their surrounding ecosystem through the Model Context Protocol. Developed by Grafana Labs' Machine Learning team, it enables searching dashboards, fetching datasource information, querying Prometheus metrics, and managing incidents in Grafana Incident. The server supports both stdio and Server-Sent Events (SSE) transport modes, can be run locally or deployed as a Docker container, and authenticates using Grafana service account tokens. This implementation is particularly valuable for workflows requiring monitoring data analysis, metric exploration, or incident management directly within AI assistant conversations.
暂无评论. 成为第一个评论的人!
登录以参与讨论
List all teams. Required RBAC Permissions: teams:read. Required Scopes: teams:* or teams:id:1.
List all users in an organization. Required RBAC Permissions: users:read. Required Scopes: global.users:* or global.users:id:123.
Search for dashboards. Required RBAC Permissions: dashboards:read. Required Scopes: dashboards:* or dashboards:uid:abc123.
Get a dashboard by uid. Required RBAC Permissions: dashboards:read. Required Scopes: dashboards:uid:abc123.
Update or create a new dashboard. Required RBAC Permissions: dashboards:create, dashboards:write. Required Scopes: dashboards:*, folders:* or folders:uid:xyz789.
Get panel title, queries, datasource UID and type from a dashboard. Required RBAC Permissions: dashboards:read. Required Scopes: dashboards:uid:abc123.
Extract specific parts of a dashboard using JSONPath expressions. Required RBAC Permissions: dashboards:read. Required Scopes: dashboards:uid:abc123.
Get a compact summary of a dashboard without full JSON. Required RBAC Permissions: dashboards:read. Required Scopes: dashboards:uid:abc123.
List datasources. Required RBAC Permissions: datasources:read. Required Scopes: datasources:*.
Get a datasource by uid. Required RBAC Permissions: datasources:read. Required Scopes: datasources:uid:prometheus-uid.
Get a datasource by name. Required RBAC Permissions: datasources:read. Required Scopes: datasources:* or datasources:uid:loki-uid.
Execute a query against a Prometheus datasource. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:prometheus-uid.
List metric metadata. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:prometheus-uid.
List available metric names. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:prometheus-uid.
List label names matching a selector. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:prometheus-uid.
List values for a specific label. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:prometheus-uid.
List incidents in Grafana Incident. Required RBAC Permissions: Viewer role. Required Scopes: N/A.
Create an incident in Grafana Incident. Required RBAC Permissions: Editor role. Required Scopes: N/A.
Add an activity item to an incident in Grafana Incident. Required RBAC Permissions: Editor role. Required Scopes: N/A.
Get a single incident by ID. Required RBAC Permissions: Viewer role. Required Scopes: N/A.
Query and retrieve logs using LogQL (either log or metric queries). Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:loki-uid.
List all available label names in logs. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:loki-uid.
List values for a specific log label. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:loki-uid.
Get statistics about log streams. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:loki-uid.
List alert rules. Required RBAC Permissions: alert.rules:read. Required Scopes: folders:* or folders:uid:alerts-folder.
Get alert rule by UID. Required RBAC Permissions: alert.rules:read. Required Scopes: folders:uid:alerts-folder.
List notification contact points. Required RBAC Permissions: alert.notifications:read. Required Scopes: Global scope.
List schedules from Grafana OnCall. Required RBAC Permissions: grafana-oncall-app.schedules:read. Required Scopes: Plugin-specific scopes.
Get details for a specific OnCall shift. Required RBAC Permissions: grafana-oncall-app.schedules:read. Required Scopes: Plugin-specific scopes.
Get users currently on-call for a specific schedule. Required RBAC Permissions: grafana-oncall-app.schedules:read. Required Scopes: Plugin-specific scopes.
List teams from Grafana OnCall. Required RBAC Permissions: grafana-oncall-app.user-settings:read. Required Scopes: Plugin-specific scopes.
List users from Grafana OnCall. Required RBAC Permissions: grafana-oncall-app.user-settings:read. Required Scopes: Plugin-specific scopes.
List alert groups from Grafana OnCall with filtering options. Required RBAC Permissions: grafana-oncall-app.alert-groups:read. Required Scopes: Plugin-specific scopes.
Get a specific alert group from Grafana OnCall by its ID. Required RBAC Permissions: grafana-oncall-app.alert-groups:read. Required Scopes: Plugin-specific scopes.
Retrieve an existing Sift investigation by its UUID. Required RBAC Permissions: Viewer role. Required Scopes: N/A.
Retrieve a specific analysis from a Sift investigation. Required RBAC Permissions: Viewer role. Required Scopes: N/A.
Retrieve a list of Sift investigations with an optional limit. Required RBAC Permissions: Viewer role. Required Scopes: N/A.
Finds elevated error patterns in Loki logs. Required RBAC Permissions: Editor role. Required Scopes: N/A.
Finds slow requests from the relevant tempo datasources. Required RBAC Permissions: Editor role. Required Scopes: N/A.
List label names matching a selector. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:pyroscope-uid.
List label values matching a selector for a label name. Required RBAC Permissions: datasources:query. Required Scopes: datasources:uid:pyroscope-uid.