Self-host mcp-grafana
v2.1.1MCP server for Grafana observability and management
- Stars
- 3 621
- Ports
- 8000 (SSE and streamable-http transport listener), 8080 (healthz endpoint (optional separate listener)), 9090 (Prometheus metrics endpoint (optional separate listener)), 8443 (HTTPS streamable-http transport (example))
- Requires
- Grafana
grafana/mcp-grafanaWhat is mcp-grafana?
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.
Should you self-host mcp-grafana?
mcp-grafana scores 65/100 on selfhost.directory (how scoring works) and ranks #24 of 166 in Developer Tools. It has 3 621 GitHub stars.
It shipped 9 stable releases in the past year. The latest, v2.1.1, came out on 20 October 2026. New versions land roughly every 1 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is openhands (87/100, 92 094 stars). It scores higher overall, so compare the two before you pick. See mcp-grafana vs openhands side by side.
Features
- Alerting management
- CloudWatch queryingDisabled by default; enable with --enabled-tools=cloudwatch
- Dashboard management
- Datasource management
- Elasticsearch/OpenSearch queryingDisabled by default; enable with --enabled-tools=elasticsearch
- Google Cloud Logging queryingDisabled by default; enable with --enabled-tools=cloudlogging; requires Google Cloud Logging datasource plugin 1.8.0+ and Grafana 11.2+
- Graphite queryingDisabled by default; enable with --enabled-tools=graphite
- Incident Management
- InfluxDB queryingDisabled by default; enable with --enabled-tools=influxdb
- Loki querying
- Prometheus querying
- Quickwit queryingDisabled by default; enable with --enabled-tools=quickwit
- SQL datasource queryingDisabled by default; enable with --enabled-tools=sql
- Tempo tracing
mcp-grafana README
More in API
md.pagemd.page is a self-hosted, open-source engine that converts Markdown into shareable web pages, designed for AI agents to publish via API, CLI, or MCP server.
mem0Self-hosted, open-source memory layer for AI agents: stores and retrieves user memories via Python/Node SDKs or a Docker REST server with dashboard.
mem9Open-source, self-hosted persistent memory server for AI agents: hybrid recall, multi-space API, webhooks and LLM fact extraction on TiDB, PostgreSQL or db9.
MillionSendSelf-hosted email platform sending via your AWS SES with Resend-compatible API, dashboard, SMTP relay, webhooks, and broadcast campaigns.
moonstoneSelf-hosted headless PKM server turning Obsidian, Logseq, Zim vaults into a REST API with PWA editor, applets, and background services.
mygpoSelf-hosted podcast sync service that powers gpodder.net, synchronizes subscriptions and playback progress across devices via REST API for multiple podcast clients.
nhostOpen-source Firebase alternative and Backend-as-a-Service: Postgres, Hasura GraphQL APIs, auth, file storage and serverless functions, self-hosted with Docker Compose.
NotifoOpen-source, self-hosted notification service with a REST API and management UI that fans events out over email, SMS, mobile push, web push and webhooks.
OfflineWikipediaTextApiSelf-hosted API for searching and retrieving full Wikipedia articles from offline datasets using txtai embeddings. Runs on Linux, macOS, and Windows with ~70GB disk.
ohmycaptchaSelf-hosted open-source captcha solver with a YesCaptcha-style createTask API covering reCAPTCHA, hCaptcha, Turnstile and image tasks via Playwright and vision models.
openai-edge-ttsA self-hosted, open-source text-to-speech API server that mimics OpenAI's /v1/audio/speech endpoint and synthesizes audio for free via Microsoft Edge's TTS voices.
open-assistant-apiOpen-source, self-hosted AI assistant API compatible with OpenAI Assistants API. Supports RAG, web search, tools, multimodal, streaming — deployable via Docker Compose.
0 comments