This repository provides a Grafana Model Context Protocol (MCP) server, enabling access to Grafana instances and their ecosystem for dashboard search, datasource information, Prometheus/Loki querying, incident management, and alerting features.
This repository hosts a Model Context Protocol (MCP) server for Grafana, enabling access to Grafana instances and their ecosystem. It offers features like dashboard search by UID, and listing/fetching datasource information. Data source querying is supported for Prometheus (including log and metric queries) and Loki (log and metric queries). Prometheus metadata queries are available for metrics, names, and label values. Loki metadata queries include label names, values, and stats. Incident management features include searching, creating, updating, and closing incidents. Alerting features include listing and fetching alert rules and contact points.
The server's tools are configurable, allowing users to select specific functionalities. Usage involves creating a Grafana service account with appropriate permissions, downloading the latest release, and configuring the client with the server details, including the Grafana URL and API key. Development contributions are welcome, with instructions provided for running, testing, and linting the code. The project is licensed under the Apache License 2.0.
grafana/mcp-grafana
December 24, 2024
March 29, 2025
Go