Grafana MCP Server

Stabledevelopment
210 starsGografana
GitHub
About

Overview

The Grafana MCP Server enables AI agents to interact with Grafana for observability and monitoring. It provides tools for querying data sources, managing dashboards, creating alerts, and exploring metrics. Supports Prometheus, Loki, and other Grafana data sources.
Capabilities

Tools & Capabilities

search_dashboards

Search for Grafana dashboards

get_dashboard

Get a dashboard's panels and configuration

query_prometheus

Execute a PromQL query

query_loki

Execute a LogQL query

list_datasources

List configured data sources

list_alerts

List alert rules and their states

Setup

Installation

bash
Install
go install github.com/grafana/mcp-grafana@latest
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "grafana": {
      "command": "mcp-grafana",
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_API_KEY": "your-api-key"
      }
    }
  }
}

Quick Info

Authorgrafana
LanguageGo
StatusStable
Stars 210
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.