Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMay 12, 2026·2 min de lecture

Grafana MCP — Dashboards, Alerts & OnCall Tools

Grafana MCP server connects your MCP client to Grafana so agents can search dashboards, query panels, and automate ops tasks with a service account token.

MCP Hub
MCP Hub · Community
Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 17/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Mcp Config
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande de staging sûr
npx -y tokrepo@latest install 0be32c8b-2ad9-47f2-aa64-26f9a7f6f2c3 --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

Introduction

Grafana MCP server connects your MCP client to Grafana so agents can search dashboards, query panels, and automate ops tasks with a service account token.

  • Best for: SRE/ops teams who want agents to navigate Grafana dashboards and automate common read/write tasks safely
  • Works with: Grafana 9.0+, service account token, MCP clients via uvx or Docker/Helm installs
  • Setup time: 12 minutes

Practical Notes

  • Requires Grafana 9.0+ for full functionality (README requirement)
  • Some tool categories are disabled/limited by flags; plan least-privilege RBAC scopes (README RBAC section)

A Least-Privilege MCP Pattern for Observability

Treat your Grafana token like production credentials.

Suggested steps:

  1. Create a dedicated Grafana service account for MCP.
  2. Start with read-only operations (dashboard search, summaries).
  3. Only then enable write tools (dashboard patch/update) when you’re comfortable with the audit trail.

To keep agent context small:

  • Prefer summary tools over full dashboard JSON.
  • Use JSONPath-style property extraction to pull only what you need.

This makes Grafana automation scalable: the agent can answer “what changed?” and “what’s broken?” without flooding the context window.

FAQ

Q: Do I need a Grafana token? A: Yes. The README uses GRAFANA_SERVICE_ACCOUNT_TOKEN for authentication.

Q: Can I run it without Docker? A: Yes. The README shows a uvx-based quick start and also Docker/Helm options.

Q: Why does context size matter? A: Dashboard JSON can be huge; use summaries and property extraction to avoid token blowups.

🙏

Source et remerciements

Source: https://github.com/grafana/mcp-grafana > License: Apache-2.0 > GitHub stars: 2,989 · forks: 353

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires