Data as of

Grafana MCP Server for Cursor: Setup & Config

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

Grafana MCP Server 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 in Cursor: stdio checks

  • 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.
Tools
add_activity_to_incident, alerting_manage_routing, alerting_routing_write

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.

Cursor's mcp-grafana example uses stdio.

Grafana MCP Server's Cursor configuration invokes uvx mcp-grafana (from uv, for Python tools).

Cursor's Grafana MCP Server example references GRAFANA_SERVICE_ACCOUNT_TOKEN, GRAFANA_URL. Check these names if startup or authentication fails; the example alone does not distinguish required from optional values.

Grafana MCP Server's stored list contains 40 tools, including add_activity_to_incident, alerting_manage_routing, alerting_routing_write. Compare those names with Cursor's connected tool list; the stored list is not a live check.