Grafana MCP Server
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.
- Homepage
- https://github.com/grafana/mcp-grafana/blob/main/README.md
- Tools
-
search_dashboardssearch_folderslist_datasourcesget_datasource_by_uidget_datasource_by_nameget_dashboard_by_uidget_dashboard_summaryget_dashboard_propertyupdate_dashboardget_dashboard_panel_queriesquery_prometheusquery_prometheus_histogramlist_prometheus_metric_metadatalist_prometheus_metric_nameslist_prometheus_label_nameslist_prometheus_label_valuesquery_loki_logslist_loki_label_nameslist_loki_label_valuesquery_loki_statsquery_loki_patternslist_alert_rulesget_alert_rule_by_uidcreate_alert_ruleupdate_alert_ruledelete_alert_rulelist_contact_pointslist_incidentscreate_incidentadd_activity_to_incidentget_incidentlist_sift_investigationsget_sift_investigationget_sift_analysisfind_error_pattern_logsfind_slow_requestslist_oncall_schedulesget_oncall_shiftget_current_oncall_userslist_oncall_teamslist_oncall_userslist_alert_groupsget_alert_grouplist_teamslist_users_by_orglist_all_rolesget_role_detailsget_role_assignmentslist_user_roleslist_team_rolesget_resource_permissionsget_resource_descriptionlist_pyroscope_label_nameslist_pyroscope_label_valueslist_pyroscope_profile_typesfetch_pyroscope_profilegenerate_deeplinkget_annotationscreate_annotationcreate_graphite_annotationupdate_annotationpatch_annotationget_annotation_tagsget_panel_imageget_assertionscreate_foldersearch_logsquery_clickhouselist_clickhouse_tablesdescribe_clickhouse_tableget_query_examples