grafana-mcp Claude Code Plugin
Claude Code PluginClaude CodeMonitoringMonitoring & ObservabilityAI Agents & AI App DevelopmentThe explanation below is AI-generated. Please verify it against the sources.
This plugin connects the official Grafana MCP server to Claude Code (or Cursor) so an AI assistant can interact with a live Grafana instance for tasks like managing dashboards, datasources, alerting rules, incidents, and on-call schedules. It requires Docker to be running plus a Grafana service account token with at least Viewer access, or Editor access for write operations. Setup differs by client: Claude Code asks for the instance URL and stores the token in the system keychain, while Cursor requires setting the URL and token as environment variables before launch. Because the integration exposes more than 40 tools to the context window, the README recommends enabling it only when active work against a Grafana instance is needed, and points to a separate plugin for general Grafana Assistant guidance.
About the service
Grafana, made by Grafana Labs, is an observability platform for monitoring logs, metrics, traces, and profiles, building dashboards, configuring alerts, and handling incident response. It can be run as a self-hosted instance or used through Grafana Cloud, and this plugin communicates with whichever instance is configured.
What you can do with grafana-mcp
- Search, inspect, and patch dashboards, and look up datasources by name or UID
- Run PromQL queries against Prometheus and LogQL queries against Loki, including label and metric metadata retrieval
- List, create, update, and delete alerting rules and contact points
- Search for and create incidents, and log activity entries against them
- View OnCall schedules, shifts, on-call users, and alert groups
- Generate deep links to dashboards, panels, and Explore views
- Retrieve, create, update, and patch annotations, and list their tags