Monitoring · Developer Tools

MCP Grafana logo

MCP Grafana

grafana/mcp-grafana

A Model Context Protocol (MCP) server for Grafana.

Install

uvx mcp-grafana

Client configuration

{
  "mcpServers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "<GRAFANA_URL>",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<GRAFANA_SERVICE_ACCOUNT_TOKEN>"
      }
    }
  }
}

Environment variables

GRAFANA_URLGRAFANA_SERVICE_ACCOUNT_TOKENGRAFANA_USERNAMEGRAFANA_PASSWORDGRAFANA_ORG_IDGRAFANA_EXTRA_HEADERSGRAFANA_SOCKS5_PROXYOTEL_EXPORTER_OTLP_ENDPOINT
GitHub stars
612
Author
@grafana
Category
Monitoring, Developer Tools
License
Apache-2.0
Updated
Oct 6, 2026

Features

  • Search for dashboards: Find dashboards by title, folder UID, tag, or starred status

  • Get dashboard by UID: Retrieve full dashboard details using its unique identifier. Pass optional version to load a saved snapshot instead of the current dashboard. Warning: Large dashboards can…

  • List dashboard versions: List saved versions of a dashboard as compact metadata (version number, author, timestamp, save message)

  • Get dashboard summary: Get a compact overview of a dashboard including title, panel count, panel types, variables, and metadata without the full JSON to minimize context window usage

  • Get dashboard property: Extract specific parts of a dashboard using JSONPath expressions (e.g., $.title, $.panels[*].title) to fetch only needed data and reduce context window consumption

  • Update or create a dashboard: Modify existing dashboards or create new ones. Warning: Requires full dashboard JSON which can consume large amounts of context window space.

  • Patch dashboard: Apply specific changes to a dashboard without requiring the full JSON, significantly reducing context window usage for targeted modifications

  • Get panel queries and datasource info: Get the title, query string, and datasource information (including UID and type, if available) from every panel in a dashboard

  • Run panel query: Execute a dashboard panel's query with custom time ranges and variable overrides.

  • Use get_dashboard_summary for dashboard overview and planning modifications

Tools (40)

  • list_teams

    List all teams

  • list_users_by_org

    List all users in an organization

  • list_all_roles

    List all Grafana roles

  • get_role_details

    Get details for a Grafana role

  • get_role_assignments

    List assignments for a role

  • list_user_roles

    List roles for users

  • list_team_roles

    List roles for teams

  • get_resource_permissions

    List permissions for a resource

  • get_resource_description

    Describe a Grafana resource type

  • user_info

    Current identity, capabilities, and accessible organizations

  • search_dashboards

    Search for dashboards by query, folder UID, tag, or starred

  • get_dashboard_by_uid

    Dashboard

  • list_dashboard_versions

    Dashboard

  • update_dashboard

    Dashboard

  • get_dashboard_panel_queries

    Dashboard

  • run_panel_query

    RunPanelQuery*

  • get_dashboard_property

    Dashboard

  • get_dashboard_summary

    Dashboard

  • list_datasources

    Datasources

  • get_datasource

    Datasources

  • get_query_examples

    Examples*

  • query_prometheus

    Prometheus

  • list_prometheus_metric_metadata

    Prometheus

  • list_prometheus_metric_names

    Prometheus

  • list_prometheus_label_names

    Prometheus

  • list_prometheus_label_values

    Prometheus

  • query_prometheus_histogram

    Prometheus

  • list_incidents

    List incidents in Grafana Incident, optionally with their custom field values

  • create_incident

    Create an incident in Grafana Incident, optionally setting custom fields

  • add_activity_to_incident

    Add an activity item to an incident in Grafana Incident

  • update_incident

    Update an incident in Grafana Incident (status, severity, title, or custom fields)

  • get_incident

    Get a single incident by ID, including its custom fields

  • list_incident_custom_fields

    List the custom fields configured for incidents, with their types and select options

  • query_loki_logs

    Query and retrieve logs using LogQL (either log or metric queries)

  • list_loki_label_names

    List all available label names in logs

  • list_loki_label_values

    List values for a specific log label

  • query_loki_stats

    Get statistics about log streams

  • query_loki_patterns

    Query detected log patterns to identify common structures

  • analyze_loki_labels

    Audit a Loki label strategy (live or static) and optionally diagnose query performance

  • suggest_loki_alloy_label_config

    Generate an Alloy loki.process snippet enforcing approved labels

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

Desktop · Freemium · MIT

VS Code integrates MCP with GitHub Copilot through agent mode, allowing direct interaction with MCP-provided tools in your agentic coding workflow. Configure servers in Claude Desktop, workspace, or user settings, with guided MCP installation and secure handling of secrets in input variables to avoid leaking hardcoded keys.

WindowsMacOSLinuxWeb

Related MCP servers

More servers
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Monitoring
Vite Plugin Vue MCP logo

Vite Plugin Vue MCP

webfansplz/vite-plugin-vue-mcp

407

Vite plugin that enables a MCP server for your Vue app to provide information about the component tree, state, routes, and pinia tree and state.

Monitoring
api200 logo

api200

API-200/api200

169

API 200 is all-in-one gateway for managing third-party APIs efficiently. Integrate third-party APIs or setup MCP server in minutes with auto-generated code, docs, auth, caching and error handling – so you can focus on what really matters.

Monitoring
WireMCP (Wireshark) logo

WireMCP (Wireshark)

0xkoda/wiremcp

98

WireMCP is a Model Context Protocol (MCP) server designed to empower Large Language Models (LLMs) with real-time network traffic analysis capabilities.

Monitoring
gospy logo

gospy

monsterxx03/gospy

90

A tool for inspecting and analyzing running Go processes, including goroutine states, memory statistics, and binary information.

Monitoring
AWS Cost Explorer MCP Server logo

AWS Cost Explorer MCP Server

aarora79/aws-cost-explorer-mcp-server

86

This tool provides a convenient way to analyze and visualize AWS cloud spending data using Anthropic's Claude model as an interactive interface. It functions as an MCP server that exposes AWS Cost Explorer API functionality to Claude Desktop, allowing you to ask questions about your AWS spend in natural language.

Monitoring