Back to Home
lukleh icon

mcp-read-only-grafana

Verified Safe

by lukleh

Overview

Provides a secure, read-only (with optional admin write operations) MCP server interface to Grafana instances for AI assistants.

Installation

Run Command
uv run python -m src.server

Environment Variables

  • GRAFANA_SESSION_<CONNECTION_NAME>
  • GRAFANA_API_KEY_<CONNECTION_NAME>
  • GRAFANA_TIMEOUT_<CONNECTION_NAME>

Security Notes

The server is read-only by default, requiring an explicit '--allow-admin' flag for write operations. Credentials (API keys or session tokens) are loaded from environment variables (.env file) and are never hardcoded. Session tokens are automatically refreshed and persisted back to the .env file with an atomic write operation, enhancing security and usability. SSL verification is enabled by default. The security score is high, but admin mode requires careful management of Grafana admin permissions.

Similar Servers

Stats

Interest Score12
Security Score9
Cost ClassMedium
Avg Tokens2500
Stars2
Forks1
Last Update2025-12-18

Tags

GrafanaMonitoringAlertingDashboardAPI Gateway