Data as of

Grafana MCP Server for Cursor: Setup & Config

Cursor: Connect MCP assistants to Grafana dashboards, datasources, alerts, and incident workflows.

What you can do with Grafana in Cursor

Choose it to investigate and manage Grafana observability resources from an MCP assistant.

  • Manage alert rules and temporary notification silences.
  • Add investigation notes to incidents and inspect on-call coverage.

Before you start: Grafana in Cursor

  • uv
  • Grafana 9.0 or later for full functionality
  • An MCP client
  • A configured Grafana connection and service-account token

The README's quick start uses uvx. Set the instance URL for local Grafana or Grafana Cloud. Several optional query groups and administrative tools are disabled by default.

Grafana Cursor configuration

  1. Choose Cursor configuration scope

    For Grafana MCP Server, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.

  2. Add Grafana MCP Server to Cursor

    Use the mcp-grafana entry below in mcpServers. Keep Grafana MCP Server's documented stdio connection fields and your other Cursor entries.

  3. Check Grafana MCP Server in Cursor

    Grafana MCP Server: Enable in Cursor’s MCP settings; inspect tools.

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

JSON
{
  "mcpServers": {
    "mcp-grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "<URL of your Grafana instance>",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<Grafana service-account token>"
      }
    }
  }
}

Grafana tools available to Cursor

Grafana's stored tool list documents 40 tools; compare it with Cursor's connected tool list, because the stored list is not a live check.

add_activity_to_incident

Find add_activity_to_incident under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

alerting_manage_routing

Find alerting_manage_routing under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

alerting_routing_write

Find alerting_routing_write under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

alerting_rules_read

Find alerting_rules_read under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

alerting_rules_write

Find alerting_rules_write under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

alerting_silences_read

Find alerting_silences_read under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

alerting_silences_write

Find alerting_silences_write under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

analyze_loki_labels

Find analyze_loki_labels under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

check_datasources_health

Find check_datasources_health under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

create_annotation

Find create_annotation under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

create_datasource

Find create_datasource under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

create_folder

Find create_folder under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

create_incident

Find create_incident under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

create_snapshot

Find create_snapshot under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

delete_annotation

Find delete_annotation under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

delete_snapshot

Find delete_snapshot under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

diff_tempo_traces

Find diff_tempo_traces under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

generate_deeplink

Find generate_deeplink under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

get_alert_group

Find get_alert_group under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

get_annotation_tags

Find get_annotation_tags under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

get_annotations

Find get_annotations under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Find annotations by dashboard, time window, or tags.

get_assertions

Find get_assertions under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Retrieve an entity's assertion summary for a time range.

get_current_oncall_users

Find get_current_oncall_users under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Identify the people currently covering an OnCall schedule.

get_dashboard_by_uid

Find get_dashboard_by_uid under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Fetch a complete dashboard or a specified saved version.

get_dashboard_panel_queries

Find get_dashboard_panel_queries under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Extract dashboard panel queries with optional panel and variable selection.

get_dashboard_property

Find get_dashboard_property under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Select dashboard sections through JSONPath instead of fetching all content.

get_dashboard_summary

Find get_dashboard_summary under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Read compact dashboard metadata, panel counts, types, and variables.

get_datasource

Find get_datasource under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Inspect a datasource by name or UID, including connection and secure-field status.

get_doc

Find get_doc under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Fetch Grafana documentation as an outline or a selected section.

get_incident

Find get_incident under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Retrieve one incident's status, severity, labels, and metadata.

get_oncall_shift

Find get_oncall_shift under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Read the details of a specific scheduled OnCall shift.

get_panel_image

Find get_panel_image under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Render a panel, dashboard, or Explore view as a PNG using Grafana Image Renderer.

get_plugin

Find get_plugin under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Check a Grafana plugin's installation and version details.

get_snapshot

Find get_snapshot under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Retrieve a snapshot's metadata and dashboard payload by key.

get_tempo_trace

Find get_tempo_trace under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Fetch a Tempo trace using its identifier.

get_tempo_traceql_docs

Find get_tempo_traceql_docs under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Read TraceQL syntax guidance and examples before composing trace queries.

grafana_api_request

Find grafana_api_request under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Call Grafana API endpoints with authentication and optional response filtering.

install_plugin

Find install_plugin under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Look up a plugin's latest version or install an explicitly supplied version.

list_alert_groups

Find list_alert_groups under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Find OnCall alert groups by state, integration, team, labels, or time range.

list_dashboard_versions

Find list_dashboard_versions under Grafana in Cursor's MCP settings; inspect its arguments when the agent requests a call.

List saved dashboard versions and their authors, timestamps, and messages.

Grafana: full stored tool descriptions

Troubleshooting Grafana in Cursor

  • Cursor must find uvx mcp-grafana (from uv, for Python tools) for Grafana MCP Server. Enable the project/user entry in MCP settings and inspect its tools.
  • Review GRAFANA_SERVICE_ACCOUNT_TOKEN, GRAFANA_URL for Grafana MCP Server before sharing project .cursor/mcp.json; project scope travels with the repository.
  • Grafana MCP Server uses stdio here: Cursor must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: Full functionality requires Grafana 9.0 or newer.
  • Known limitation: Some query and administrative groups need explicit enabling.
  • Known limitation: Rendering and datasource features have additional service prerequisites.
  • General Cursor troubleshooting lives in the /clients/cursor guide.

Grafana MCP Server — details. Cursor guide

Frequently asked questions

Cursor's Grafana MCP Server entry belongs under mcpServers in .cursor/mcp.json (project) or ~/.cursor/mcp.json (user). Confirm the active scope in MCP settings.