grafana-mcp Plugin
Plugin Claude Code Monitoring Monitoring & ObservabilityThe explanation below is AI-generated. Please verify it against the sources.
grafana-mcp is a Cursor plugin that exposes the official Grafana MCP server, adding 40+ tools for AI-assisted interaction with a live Grafana instance. According to the README, it covers dashboards, datasources, Prometheus/Loki queries, alerting, incidents, OnCall, navigation, and annotations. It requires Docker to be running and a Grafana service account (Viewer role minimum, Editor for write operations) with a token. Setup differs by client: Claude Code prompts for the instance URL and stores the token in the system keychain, while Cursor requires exporting GRAFANA_URL and GRAFANA_SERVICE_ACCOUNT_TOKEN as environment variables before launch. The README notes this plugin adds a large number of tools to the context window and should only be enabled when live Grafana interaction is needed; for Grafana Assistant development skills, it recommends the separate grafana-assistant plugin instead.
Overview
Grafana is an observability platform from Grafana Labs (per the homepage) covering dashboards, metrics, logs, traces, alerting, and incident response; the grafana-mcp plugin connects AI tools to a live Grafana instance (self-hosted or Grafana Cloud) via the official Grafana MCP server, per the README.
What you can do with grafana-mcp
- Search, get, and patch dashboards (summary or property level)
- List datasources and look them up by UID or name
- Run PromQL queries against Prometheus and fetch metric metadata and label names/values
- Run LogQL log/metric queries against Loki and retrieve label metadata and patterns
- List, create, update, and delete alert rules and contact points
- Search and create incidents, and add activity to them
- View OnCall schedules, shifts, on-call users, and alert groups
- Generate deeplinks to dashboards, panels, and Explore
- Get, create, update, patch, and list tags for annotations
Sources
Original description (English)
MCP server for AI-assisted Grafana dashboard, datasource, alerting, and incident management.
History of grafana-mcp
- Plugin Added grafana-mcp