Skip to content
OwnlyPlans

MCP server

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.

Remix

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.

Markdown

Install

Terminal
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

  • Grafana MCP Server config MCP config Add this to your MCP client's config, or use the install line.

    Check it before you connect it. This server runs with your permissions: uvx mcp-grafana It needs GRAFANA_URL, GRAFANA_SERVICE_ACCOUNT_TOKEN. Use your own and never share them.

    Claude Code
    claude mcp add-json grafana '{"command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"YOUR-SERVICE-ACCOUNT-TOKEN"}}'

Your AI tool
Starter prompt

		

Download the plan