Grafana MCP Server
Official Grafana server that lets your AI search dashboards, query metrics and logs, and look into alerts and incidents in your Grafana instance.
Use it with Claude or any AI tool. Copy the prompt and paste it in. The link inside gives the AI the whole page as Markdown.
Install
claude mcp add-json grafana '{"command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"YOUR-SERVICE-ACCOUNT-TOKEN"}}'
Adds the server to Claude Code. For other apps, copy the config below.
About
This server connects your assistant to Grafana. It can find dashboards, run Prometheus and Loki queries, read alert rules and help you work out what went wrong during an incident.
Create a service account token with the smallest role that works, and point the server at your own Grafana URL.
Licensed Apache-2.0 by its authors. See the source repository for the full licence text.
Files and links
-
Check it before you connect it. This server runs with your permissions:
uvx mcp-grafanaIt needs GRAFANA_URL, GRAFANA_SERVICE_ACCOUNT_TOKEN. Use your own and never share them.claude mcp add-json grafana '{"command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"YOUR-SERVICE-ACCOUNT-TOKEN"}}' -