Back to Home
grafana icon

mcp-grafana

Verified Safe

by grafana

Overview

Provides a Model Context Protocol (MCP) server for Grafana, enabling AI agents to interact with Grafana features such as dashboards, datasources, alerting, incidents, and more through a structured tool-based interface.

Installation

Run Command
docker run --rm -i -e GRAFANA_URL="http://localhost:3000" -e GRAFANA_SERVICE_ACCOUNT_TOKEN="<your_service_account_token>" grafana/mcp-grafana -t stdio

Environment Variables

  • GRAFANA_URL
  • GRAFANA_SERVICE_ACCOUNT_TOKEN

Security Notes

The server demonstrates good security practices for an integration component. It reads authentication credentials (API keys, basic auth, access tokens) from environment variables, preventing hardcoding. Network communication with Grafana and its datasources is handled with TLS configuration options. Response bodies are read with limits to prevent memory exhaustion, and non-200 HTTP statuses are handled with error messages. No obvious 'eval' or obfuscation patterns were found. The 'disable-write' flag and RBAC guidance are crucial for secure deployments.

Similar Servers

Stats

Interest Score100
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars2131
Forks234
Last Update2026-01-19

Tags

GrafanaObservabilityMCPAI AgentTools