Grafana MCP server

Grafana MCP server

grafana-mcp-izaitsevfb•byizaitsevfb

A Model Context Protocol server that connects to a Grafana instance and exposes tools to query its dashboards, organization, and data sources.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Reports information about the connected Grafana instance, including its version and connection status.
  • •Lists dashboards and retrieves details for a specific dashboard by UID.
  • •Lists available data sources in the connected Grafana instance.
  • •Provides organization information for the current Grafana organization.

BEST FOR

  • •Inspecting dashboards and their configuration on a Grafana instance through an MCP client.
  • •Discovering data sources and organization details in Grafana.

ABOUT GRAFANA-MCP-IZAITSEVFB

Grafana MCP server is cataloged as an MCP server attributed to izaitsevfb. A Model Context Protocol server that connects to a Grafana instance and exposes tools to query its dashboards, organization, and data sources. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Grafana MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server authenticate with Grafana?

It uses token authentication with the Grafana API, loading the Grafana URL and API token from a .env file.

Does the server include a dashboard template resource?

Yes, the package bundles a dashboard template resource with the installed package.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 45643268d9cb · 采集于 2026-11-13 13:05:30 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Grafana MCP

This project provides MCP server for Grafana, including MCP tools to interact with Grafana dashboards, data sources, alerts, and more.

The package includes a dashboard template resource that is properly bundled with the package for use when installed.

Usage

Installation

  1. Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate
  1. Install this package directly from GitHub using pip:
pip install -e git+https://github.com/izaitsevfb/grafana-mcp.git#egg=grafana_mcp

(Alternatively, you can install it locally with pip install -e .)

  1. Configure Grafana authentication

Create a .env file with your Grafana URL and API token:

cp .env.example .env

Then edit the .env file to add your actual Grafana URL and API token:

GRAFANA_URL=http://your-grafana-server:3000
GRAFANA_API_TOKEN=your-api-token-here

You can generate an API token in Grafana by navigating to: Configuration → API Keys → New API key.

  1. After installation, the MCP server can be run as:
python -m grafana_mcp
  1. Add this MCP server to Claude Code:
claude mcp add-json grafana '{ "type": "stdio", "command": "python", "args": [ "-m", "grafana_mcp" ], "env": {} }'

Note: By default, MCP config applies only to the current directory. If you want to use it globally, add --scope user to the command above:

claude mcp add-json --scope user grafana '{ "type": "stdio", "command": "python", "args": [ "-m", "grafana_mcp" ], "env": {} }'
  1. Run Claude Code as usual:
claude

Development

Development Installation

  1. Clone the repository
  2. Install in development mode:
    pip install -e .
    

The package uses Python's package resource management system to include the dashboard template. The dashboard.json file is stored in the src/grafana_mcp/ directory and is accessed using importlib.resources when the package is installed.

Testing

Run unit tests:

python -m unittest discover tests

For testing with token authentication, ensure you have created a .env file with your Grafana credentials as described above. The test suite includes mocked tests that don't require an actual Grafana instance.

Tools

The Grafana MCP provides the following tools:

Available Tools

Dashboard Management

  • get_grafana_info(): Get information about the connected Grafana instance including version and connection status
  • list_dashboards(): List all dashboards from the connected Grafana instance
  • get_dashboard(uid): Get details about a specific dashboard by UID

Organization Management

  • get_organization(): Get information about the current organization

Data Source Management

  • list_datasources(): List all available data sources

Requirements

  • grafana-client: Python client for Grafana API
  • python-dotenv: For loading environment variables from .env file
  • mcp: Model Context Protocol server implementation

Authentication

This package uses token authentication with the Grafana API. To configure authentication:

  1. In your Grafana instance, create an API key with appropriate permissions
  2. Create a .env file with the following variables:
    GRAFANA_URL=http://your-grafana-url:3000
    GRAFANA_API_TOKEN=your-api-token-here
    
  3. The MCP server will automatically load these credentials when started

More tools and features will be added in future versions.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Grafana MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/grafana-mcp-izaitsevfb)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools