Grafana MCP Server
An MCP server giving access to Grafana dashboards, datasources, alerting, and more
Add to Claude (opens in new tab)A comprehensive Model Context Protocol (MCP) server for Grafana that provides:
- **Dashboards**: Search, get, update, patch, and create dashboards with context window optimization
- **Datasources**: List and query Prometheus, Loki, and ClickHouse datasources
- **Prometheus**: Execute PromQL queries, histogram percentile analysis, and retrieve metric metadata
- **Loki**: Query logs and metrics using LogQL, detect log patterns
- **ClickHouse**: Execute SQL queries, discover tables and schemas
- **Alerting**: List, create, update, and delete alert rules and contact points
- **Incidents**: Manage incidents in Grafana Incident
- **Sift**: Investigate errors and performance issues
- **OnCall**: Manage on-call schedules, shifts, and alert groups
- **Pyroscope**: Continuous profiling with profile types, labels, and flame graphs
- **Navigation**: Generate accurate deeplinks to Grafana resources
- **Annotations**: Query, create, update, and patch annotations
- **Admin**: Manage teams, users, roles, and permissions
- **Rendering**: Generate PNG snapshots of dashboard panels
Requires Grafana version 9.0 or later for full functionality.
Tools
- search_dashboards
- search_folders
- list_datasources
- get_datasource_by_uid
- get_datasource_by_name
- get_dashboard_by_uid
- get_dashboard_summary
- get_dashboard_property
- update_dashboard
- get_dashboard_panel_queries
- query_prometheus
- query_prometheus_histogram
- list_prometheus_metric_metadata
- list_prometheus_metric_names
- list_prometheus_label_names
- list_prometheus_label_values
- query_loki_logs
- list_loki_label_names
- list_loki_label_values
- query_loki_stats
- query_loki_patterns
- list_alert_rules
- get_alert_rule_by_uid
- create_alert_rule
Only use connectors from developers you trust. Anthropic does not control which tools developers make available and cannot verify that they will work as intended or that they won’t change.