integrations.sh
← all integrations

Grafana MCP Server

MCP server claude grafanaobservabilitymonitoringdashboardsprometheuslokiclickhousealertingincidentslogsmetricspyroscopeoncallprofiling

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_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
  • update_alert_rule
  • delete_alert_rule
  • list_contact_points
  • list_incidents
  • create_incident
  • add_activity_to_incident
  • get_incident
  • list_sift_investigations
  • get_sift_investigation
  • get_sift_analysis
  • find_error_pattern_logs
  • find_slow_requests
  • list_oncall_schedules
  • get_oncall_shift
  • get_current_oncall_users
  • list_oncall_teams
  • list_oncall_users
  • list_alert_groups
  • get_alert_group
  • list_teams
  • list_users_by_org
  • list_all_roles
  • get_role_details
  • get_role_assignments
  • list_user_roles
  • list_team_roles
  • get_resource_permissions
  • get_resource_description
  • list_pyroscope_label_names
  • list_pyroscope_label_values
  • list_pyroscope_profile_types
  • fetch_pyroscope_profile
  • generate_deeplink
  • get_annotations
  • create_annotation
  • create_graphite_annotation
  • update_annotation
  • patch_annotation
  • get_annotation_tags
  • get_panel_image
  • get_assertions
  • create_folder
  • search_logs
  • query_clickhouse
  • list_clickhouse_tables
  • describe_clickhouse_table
  • get_query_examples