Back to MCP Integrations

Grafana MCP

Featured

Official Grafana MCP server for dashboards, datasources, Prometheus queries, Loki logs, alerting, and incident management.

0 installsAuthor: Grafana

Installation

curl -fsSL https://claudekit.xyz/i/grafana | bash

Description

The Grafana MCP Server provides comprehensive access to your Grafana instance and the surrounding observability ecosystem, including dashboards, datasources, alerting, and incident management.

Installation

Download Binary

Download from releases and add to your PATH.

Build from Source

GOBIN="$HOME/go/bin" go install github.com/grafana/mcp-grafana/cmd/mcp-grafana@latest

Docker

docker pull mcp/grafana
docker run --rm -i -e GRAFANA_URL=http://localhost:3000 -e GRAFANA_SERVICE_ACCOUNT_TOKEN=<token> mcp/grafana -t stdio

Configuration

Claude Desktop

{
  "mcpServers": {
    "grafana": {
      "command": "mcp-grafana",
      "args": [],
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
      }
    }
  }
}

Features

Dashboards

  • Search, get, create, and update dashboards
  • Get panel queries and datasource info
  • Extract specific parts using JSONPath

Datasources

  • List and fetch datasource information
  • Support for Prometheus and Loki

Prometheus

  • Execute PromQL queries (instant and range)
  • Query metadata, metric names, label names/values

Loki

  • Run log and metric queries using LogQL
  • Query label names, values, and stream statistics

Alerting

  • List and fetch alert rules
  • List contact points
  • Support for Grafana-managed and datasource-managed alerts

Incidents

  • Search, create, and update incidents
  • Add activities to incidents

OnCall

  • List schedules and shifts
  • Get current on-call users
  • List alert groups

Available Tools

ToolCategoryDescription
search_dashboardsSearchSearch for dashboards
get_dashboard_by_uidDashboardGet dashboard by UID
query_prometheusPrometheusExecute PromQL queries
query_loki_logsLokiQuery logs using LogQL
list_alert_rulesAlertingList alert rules
list_incidentsIncidentList incidents
list_oncall_schedulesOnCallList on-call schedules

Usage Examples

Show me all dashboards related to API performance
Query Prometheus for CPU usage over the last hour
List all firing alerts in the production namespace

Resources