MCP directory
GM

Grafana MCP

by github.com/itzhouq · v0.1.3 · updated Oct 7, 2026

Read-only project-level Grafana MCP: Loki logs, metrics, traces, alerts, test/prod switching

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • GRAFANA_TEST_URL

    Grafana base URL of the test environment, e.g. https://grafana.example.com

  • GRAFANA_TEST_USER

    Grafana username for the test environment (prefer a dedicated Viewer-role account)

  • GRAFANA_TEST_PASSWORDsecret

    Grafana password for the test environment

  • GRAFANA_PROD_URL

    Grafana base URL of the production environment

  • GRAFANA_PROD_USER

    Grafana username for the production environment

  • GRAFANA_PROD_PASSWORDsecret

    Grafana password for the production environment

  • GRAFANA_ENV

    Default environment for this project (test by default)

  • GRAFANA_APP

    App label value used to scope Loki queries for this project

More from github.com/itzhouq

More MCP servers