MCP
Рекомендовано
Локальный
Платный
Grafana MCP
Official Grafana MCP server for dashboards, datasources, Prometheus queries, Loki logs, alerting, and incident management.
автор: Grafana
Установка
Копируй и вставляй в терминал
1 установок
curl -fsSL https://vibebaza.com/i/grafana | bash
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
| Tool | Category | Description |
|---|---|---|
search_dashboards |
Search | Search for dashboards |
get_dashboard_by_uid |
Dashboard | Get dashboard by UID |
query_prometheus |
Prometheus | Execute PromQL queries |
query_loki_logs |
Loki | Query logs using LogQL |
list_alert_rules |
Alerting | List alert rules |
list_incidents |
Incident | List incidents |
list_oncall_schedules |
OnCall | List 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