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.
It is intended for self-hosted Grafana deployments or setups that authenticate via a service-account token, requiring Docker and a running Grafana instance. For Grafana Cloud users, the README points to a separate grafana-cloud-mcp plugin or a Grafana Cloud connector instead. Once enabled, it adds over 40 MCP tools covering dashboard search and editing, datasource lookup, Prometheus and Loki queries, alert rule management, incident and on-call workflows, deep-link generation, and annotation handling. The README notes this expands the context window significantly, so it recommends enabling it only when active interaction with a live Grafana instance is needed.
About the service
Grafana, as referenced in the sources, is an observability platform used for visualizing telemetry (dashboards, metrics, logs, traces), managing alerts, and handling incidents; it can run self-hosted or as a cloud-hosted service, and this plugin connects the assistant to either via its MCP server.
What you can do with grafana-mcp
- Search, view, and patch Grafana dashboards
- List datasources and look them up by UID or name
- Run PromQL queries and retrieve Prometheus metric metadata
- Run LogQL queries and retrieve Loki log patterns and label metadata
- Create, update, list, or delete alert rules and contact points
- Search, create, and add activity to incidents
- View on-call schedules, shifts, and alert groups
- Generate deeplinks to dashboards, panels, and Explore views
- Create, update, patch, and list annotations and their tags