Grafana MCP Server

by christian-schlichtherle

247 downloads
Not rated
GitHub

About

An MCP server for the comprehensive discovery, editing, and testing of dashboards and folders in one or more Grafana clusters.

Details

Author
christian-schlichtherle
Downloads
247
Categories
Developer Tools

- Dashboard protection with automatic labeling on creation
- Selective update/deletion only for protected dashboards
- Unrestricted reading of any dashboard
- Configurable access control to specific folders
- Multi-cluster management across Grafana instances
- Comprehensive search API with filtering options

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Grafana MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with uv sync or pip install -e ., then set environment variables (GRAFANA_CLUSTERS, GRAFANA_TOKENS, GRAFANA_LABELS, GRAFANA_FOLDER) as needed. Run python main.py to start the server, which exposes MCP tools for discovery, editing, and testing.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "grafana mcp server": {
            "grafana": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/ABSOLUTE/PATH/TO/grafana-mcp",
                    "run",
                    "main.py"
                ],
                "env": {
                    "GRAFANA_CLUSTERS": "local=http://localhost:3000 dev=https://dev.example.com/grafana",
                    "GRAFANA_TOKENS": "dev=glsa_abc123xyz"
                }
            }
        }
    }
}

McpServers

{
    "grafana": {
        "command": "uv",
        "args": [
            "--directory",
            "/ABSOLUTE/PATH/TO/grafana-mcp",
            "run",
            "main.py"
        ],
        "env": {
            "GRAFANA_CLUSTERS": "local=http://localhost:3000 dev=https://dev.example.com/grafana",
            "GRAFANA_TOKENS": "dev=glsa_abc123xyz"
        }
    }
}

Grafana MCP

This repository provides an MCP (Model Context Protocol) server for the comprehensive discovery, editing, and testing
of dashboards and folders in one or more Grafana clusters.
Its security model is based on labels and folders.

Quick Start

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.