# mcp-grafana

> Self-hosted MCP server connecting AI assistants to Grafana for dashboards, datasources, alerting, incidents, and 20+ observability integrations.

- **Category:** Developer Tools
- **Licence:** Apache-2.0
- **Latest version:** v2.1.1
- **Open source:** oss
- **Languages:** Go
- **Platforms:** Docker, Linux, Helm, pip, Build from Source
- **Tags:** Mcp, Grafana, Ai Assistant, Observability, Alerting, Llm integration, Prometheus, Dashboards, Loki, Model Context Protocol, Tempo, Incidents, Oncall, Datasources

## Description

mcp-grafana is a Model Context Protocol (MCP) server that gives AI assistants structured access to a Grafana instance and its ecosystem. It exposes over 100 tools organized into categories including dashboards (search, create, update, patch, render), datasources (list, create, health checks), Prometheus/Loki/Tempo/InfluxDB/SQL/CloudWatch/Elasticsearch/Graphite/Quickwit querying, alerting rules and routing, Grafana OnCall schedules and alert groups, Incident management, annotations, snapshots, provisioning validation, and Agent Observability for LLM conversation analysis. Tools are opt-in via --enabled-tools flags. The server runs in stdio (default), SSE, or streamable-http transports. It requires Grafana 9.0+ and authenticates via service account tokens. Deployment options include Docker (grafana/mcp-grafana), standalone binary, uvx, Helm chart, or building from Go source. Read-only and query-free modes restrict write or query operations for safer deployments.

## Links

- [Homepage](https://github.com/grafana/mcp-grafana)
- [Docker](grafana/mcp-grafana)
- [GitHub Repository](https://github.com/grafana/mcp-grafana)
- [Releases](https://github.com/grafana/mcp-grafana/releases)
- [Helm Chart](https://github.com/grafana/helm-charts/tree/main/charts/grafana-mcp)
- [Docker Hub](https://hub.docker.com/r/grafana/mcp-grafana)

---
Source: https://selfhost.directory/project/mcp-grafana