Skip to main content
Glama
mcp-grafana

mcp-grafana

by romaine-life

mcp-grafana

In-cluster MCP server for read-only Grafana, Prometheus, Alertmanager, and Loki diagnostics.

Tools

  • get_grafana_health() - Grafana health/status.

  • list_datasources() - compact datasource inventory.

  • query_prometheus() - instant PromQL through Grafana's Prometheus datasource proxy.

  • query_prometheus_range() - range PromQL through Grafana's Prometheus datasource proxy.

  • list_prometheus_alerts() - Prometheus alert state from the datasource proxy.

  • list_alertmanager_alerts() - Alertmanager alerts from the datasource proxy.

  • query_loki() - Loki range query through the Grafana datasource proxy.

query_prometheus, list_prometheus_alerts, and list_alertmanager_alerts default to the prometheus and alertmanager datasource UIDs provisioned by kube-prometheus-stack. query_loki defaults to the loki UID pinned in romaine-life/osms.

Related MCP server: kubeview-mcp

Auth

Inbound transport is gated by kube-rbac-proxy using Kubernetes TokenReview/SubjectAccessReview, matching the other romaine.life MCP servers.

Outbound calls to Grafana use the calling session pod's auth.romaine.life service-principal JWT, forwarded by the pod's mcp-auth-proxy sidecar in the X-Auth-Romaine-Token header. Grafana validates that JWT via its [auth.jwt] configuration, so this server does not mint or store a separate Grafana service account token.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Unified MCP server for observability and monitoring, providing tools to query metrics, logs, and traces through Prometheus, Grafana, Loki, and Jaeger.
      2
      Mozilla Public 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables operators and MCP clients to perform read-only, multi-cluster Kubernetes diagnostics by correlating deployment inventory, approved Prometheus metrics, firing alerts, and reusable troubleshooting skills without executing cluster commands or modifying workloads. It exposes tools, resources, and prompts for deployment health checks, metric queries, alert inspection, and skill discovery.
      MIT