Stormproof Submit a server

Grafana

Official

Search dashboards, query Prometheus and Loki, and work with incidents and alerts in Grafana.

Checks
8 of 9 passed
License
Apache License 2.0
Last commit
today
GitHub stars
3.7k
Reviewed at
5629871 · Dec 4, 2026

Install

Container · mcp/grafana

Needs GRAFANA_URL, GRAFANA_SERVICE_ACCOUNT_TOKEN.

Claude Code
claude mcp add grafana -e GRAFANA_URL=... -e GRAFANA_SERVICE_ACCOUNT_TOKEN=... -- docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN mcp/grafana -t stdio
Cursor, Claude Desktop and other clients
{
  "mcpServers": {
    "grafana": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GRAFANA_URL",
        "-e",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN",
        "mcp/grafana",
        "-t",
        "stdio"
      ],
      "env": {
        "GRAFANA_URL": "...",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "..."
      }
    }
  }
}

Tools

65 tools listed by mcp-grafana (devel) in our sandbox on Dec 4, 2026.

  • add_activity_to_incident

    Add a note (userNote activity) to an existing incident's timeline using its ID.

  • alerting_manage_routingRead-only

    Manage Grafana alerting routing configuration, including notification policies, contact points and time intervals.

  • alerting_manage_rulesDestructive

    Manage Grafana alert rules with full CRUD capabilities and filtering.

  • analyze_loki_labelsRead-only

    Audits a Loki label strategy and optionally diagnoses query performance.

  • check_datasources_healthRead-only

    Check datasource health.

  • create_annotation

    Create a new annotation on a dashboard or panel.

  • create_datasource

    Create a datasource.

  • create_folder

    Create a Grafana folder.

  • create_incident

    Create a new Grafana incident.

  • create_snapshot

    Create a Grafana snapshot from a full dashboard payload.

  • delete_snapshotDestructive

    Delete a Grafana snapshot by snapshot key.

  • find_error_pattern_logsRead-only

    Searches Loki logs for elevated error patterns compared to the last day's average, waits for the analysis to complete, and returns the results including any patterns found.

  • find_slow_requestsRead-only

    Searches relevant Tempo datasources for slow requests, waits for the analysis to complete, and returns the results.

  • generate_deeplink

    Generate deeplink URLs for Grafana resources.

  • get_alert_groupRead-only

    Get a specific alert group from Grafana OnCall by its ID.

  • get_annotation_tagsRead-only

    Returns annotation tags with optional filtering by tag name.

  • get_annotationsRead-only

    Fetch Grafana annotations using filters such as dashboard UID, time range and tags.

  • get_assertionsRead-only

    Get assertion summary for a given entity with its type, name, env, site, namespace, and a time range

  • get_current_oncall_usersRead-only

    Get the list of users currently on-call for a specific Grafana OnCall schedule ID.

  • get_dashboard_by_uidRead-only

    Retrieves the complete dashboard, including panels, variables, and settings, for a specific dashboard identified by its UID.

  • get_dashboard_panel_queriesRead-only

    Retrieve panel queries from a Grafana dashboard.

  • get_dashboard_propertyRead-only

    Get specific parts of a dashboard using JSONPath expressions to minimize context window usage.

  • get_dashboard_summaryRead-only

    Get a compact summary of a dashboard including title\, panel count\, panel types\, variables\, and other metadata without the full JSON.

  • get_datasourceRead-only

    Retrieves detailed information about a specific datasource by UID or name.

  • get_incidentRead-only

    Get a single incident by ID.

  • get_oncall_shiftRead-only

    Get detailed information for a specific Grafana OnCall shift using its ID.

  • get_panel_imageRead-only

    Render a Grafana dashboard panel or full dashboard as a PNG image.

  • get_pluginRead-only

    Check whether a Grafana plugin is installed and retrieve its details (name, version, type, enabled status).

  • get_sift_analysisRead-only

    Retrieves a specific analysis from an investigation by its UUID.

  • get_sift_investigationRead-only

    Retrieves an existing Sift investigation by its UUID.

  • get_snapshotRead-only

    Get a Grafana snapshot by key, including snapshot metadata and dashboard payload.

  • grafana_api_request

    Make an authenticated HTTP request to the Grafana API.

  • install_pluginDestructive

    Install a Grafana plugin by its plugin ID.

  • list_alert_groupsRead-only

    List alert groups from Grafana OnCall with filtering options.

  • list_datasourcesRead-only

    List all configured datasources in Grafana.

  • list_incidentsRead-only

    List Grafana incidents.

  • list_loki_label_namesRead-only

    Lists all available label/field names (keys) found in logs within a specified Loki or VictoriaLogs datasource and time range.

  • list_loki_label_valuesRead-only

    Retrieves all unique values associated with a specific `labelName` within a Loki or VictoriaLogs datasource and time range.

  • list_oncall_schedulesRead-only

    List Grafana OnCall schedules, optionally filtering by team ID.

  • list_oncall_teamsRead-only

    List teams configured in Grafana OnCall.

  • list_oncall_usersRead-only

    List users from Grafana OnCall.

  • list_prometheus_label_namesRead-only

    List label names in a PromQL-compatible datasource (Prometheus, Thanos, Mimir, Cloud Monitoring, etc.).

  • list_prometheus_label_valuesRead-only

    Use after list_prometheus_metric_names to find label values for filtering queries.

  • list_prometheus_metric_metadataRead-only

    List Prometheus metric metadata.

  • list_prometheus_metric_namesRead-only

    DISCOVERY: Call this first to find available metrics before querying.

  • list_provisioning_repositoriesRead-only

    List provisioning repositories (e.g.

  • list_pyroscope_label_namesRead-only

    Lists all available label names (keys) found in profiles within a specified Pyroscope datasource, time range, and optional label matchers.

  • list_pyroscope_label_valuesRead-only

    Lists all available label values for a particular label name found in profiles within a specified Pyroscope datasource, time range, and optional label matchers.

  • list_pyroscope_profile_typesRead-only

    Lists all available profile types available in a specified Pyroscope datasource and time range.

  • list_sift_investigationsRead-only

    Retrieves a list of Sift investigations with an optional limit.

  • list_snapshotsRead-only

    List Grafana dashboard snapshots with optional query and result limit filters.

  • query_loki_logsRead-only

    Executes a log query against a Loki or VictoriaLogs datasource and returns matching log entries (or metric samples on Loki).

  • query_loki_patternsRead-only

    Retrieves detected log patterns from a Loki datasource for a given stream selector and time range.

  • query_loki_statsRead-only

    Retrieves index-level statistics about log streams matching a given selector within a Loki or VictoriaLogs datasource and time range.

  • query_prometheusRead-only

    WORKFLOW: list_prometheus_metric_names -> list_prometheus_label_values -> query_prometheus.

  • query_prometheus_histogramRead-only

    Query Prometheus histogram percentiles.

  • query_pyroscopeRead-only

    Unified Pyroscope query tool for fetching profiles or metrics from Pyroscope.

  • search_dashboardsRead-only

    Search for Grafana dashboards by a query string.

  • search_foldersRead-only

    Search for Grafana folders by a query string.

  • search_plugin_informationRead-only

    Search the Grafana plugin catalog by keyword to discover available plugins before installing or getting plugin details on a specific instance.

  • suggest_loki_alloy_label_configRead-only

    Generates an Alloy loki.process snippet enforcing an approved label set via stage.label_keep, with optional log-level normalisation and soft-enforcement placeholders.

  • update_annotationDestructive

    Updates the provided properties of an annotation by ID.

  • update_dashboardDestructive

    Create or update a dashboard.

  • update_datasource

    Update non-secret datasource fields by UID.

  • validate_provisioning_fileRead-only

    Validate a file in a provisioning repository at a given branch or commit by dry-run applying it.

Related MCP servers

More observability