# Grafana MCP server

> Ask in plain English about your Grafana dashboards, logs, traces, alerts, incidents and on-call users.

- Sign-in: See setup
- Connect in RevampKey: https://revampkey.com/marketplace/grafana-mcp-server

## Agent skills (5)

- [Grafana MCP Server Essentials: Safe Setup and Usage with AI](https://revampkey.com/marketplace/grafana-mcp-server/skills/essentials.md): Sets the ground rules for working with Grafana through the MCP server: confirm the instance, org and permissions, pick the right tool, keep queries small, and ask before any change.
- [Grafana alert rule and silence audit with AI](https://revampkey.com/marketplace/grafana-mcp-server/skills/alert-rule-and-silence-audit.md): Reviews alert rules, silences and notification routing for staleness, noise and misrouting, then proposes changes. It reads first and asks before changing any rule or silence.
- [Review Grafana dashboard panels and queries with AI](https://revampkey.com/marketplace/grafana-mcp-server/skills/dashboard-panel-query-review.md): Audits a Grafana dashboard's panels and their queries, checks the datasources behind them, and reports broken, duplicated or expensive panels. It is read-only and changes nothing.
- [Grafana MCP triage: investigate active incidents with AI](https://revampkey.com/marketplace/grafana-mcp-server/skills/incident-response-triage.md): Walks through a live Grafana incident: confirms the firing alert group and on-call owner, correlates error and slow-request patterns, and drafts timeline entries. It asks before writing anything to the incident.
- [Grafana MCP Server Change Annotations with AI: Mark Deploys on Dashboards](https://revampkey.com/marketplace/grafana-mcp-server/skills/observability-change-annotation.md): Records deployments, rollouts and manual changes as Grafana annotations with consistent tags, so every graph shows a change timeline. It confirms the dashboard, time and timezone and asks before writing anything.

All skills: https://revampkey.com/marketplace/grafana-mcp-server/skills.md

Grafana MCP Server is a Model Context Protocol server for Grafana, built by Grafana Labs. It gives access to a Grafana instance and the tools around it, including dashboards, datasources, Loki logs, Tempo traces, alerts, incidents and on-call schedules. Teams that run Grafana for monitoring and observability use it, such as operations and on-call engineers who check dashboards and respond to alerts.

Once you connect it, you can ask RevampKey about your own Grafana setup. You can read the panel queries on a dashboard, list annotations and annotation tags, and check whether your datasources are healthy. For logs and traces, you can analyze Loki labels, find error patterns in logs, find slow requests, and compare Tempo traces. For incidents, you can create one and add activity to it.

To connect, you need your Grafana instance URL and a service account token. Grafana version 9.0 or later is needed for full functionality. The agent asks before it changes anything, so creating an incident, creating a snapshot or managing an alert rule waits for your approval.

## What you can do

### Finding why checkout got slow

A checkout page feels slow. You ask RevampKey which requests are slow. The agent calls find_slow_requests, compares the Tempo traces with diff_tempo_traces, and reads the checkout dashboard panel queries with get_dashboard_panel_queries. You get a summary of what differs and which panels to look at. Nothing in Grafana changes.

### Checking who is on call at night

An alert fires after midnight. You ask who is on call. The agent calls get_current_oncall_users and reads the alert group with get_alert_group, so you see the owner and the alert details. If you want to silence a noisy alert, the agent proposes a silence with alerting_manage_silences and waits for your approval before it runs.

### Opening an incident for a datasource outage

A dashboard shows no data. You ask whether your datasources are healthy. The agent runs check_datasources_health and reports which ones fail. You then ask it to open an incident. The agent drafts it with create_incident and adds the health results with add_activity_to_incident, but only after you approve the change.

## Things to ask

- What queries do the panels on my checkout latency dashboard run?
- Are all my Grafana datasources healthy right now?
- Find the main error patterns in the Loki logs for payments in the last hour.
- Who is on call right now, and which alert group is paging them?
- Open an incident for the checkout errors and add today's findings to it.

## What the agent can do

### Dashboards and folders

Read a dashboard by its UID, list the queries behind each panel, and build a link to a dashboard or panel. You can also create a folder to hold dashboards.

`get_dashboard_by_uid`, `get_dashboard_panel_queries`, `generate_deeplink`, `create_folder`

### Datasources and assertions

Check whether your Grafana datasources are healthy, read assertions, and create a new datasource when you ask for one.

`check_datasources_health`, `get_assertions`, `create_datasource`

### Logs and traces

Analyze Loki labels, find error patterns in logs, find slow requests, and compare Tempo traces to see what differs between them.

`analyze_loki_labels`, `find_error_pattern_logs`, `find_slow_requests`, `diff_tempo_traces`

### Alerts and on-call

Read alert groups and see who is on call. Work with alert rules, notification routing and silences. Changes wait for your approval.

`get_alert_group`, `get_current_oncall_users`, `alerting_manage_rules`, `alerting_manage_routing`, `alerting_manage_silences`

### Incidents and annotations

Create an incident and add activity to it. Read annotations and annotation tags on your dashboards, and create or delete annotations.

`create_incident`, `add_activity_to_incident`, `get_annotations`, `get_annotation_tags`, `create_annotation`, `delete_annotation`

### Snapshots

Create a dashboard snapshot to capture its current state, or delete a snapshot you no longer need.

`create_snapshot`, `delete_snapshot`

## FAQ

### What do I need to connect Grafana MCP Server to RevampKey?

You need your Grafana instance URL and a service account token for that instance. Connect the server from the Connectors tab in RevampKey. Grafana version 9.0 or later is required for full functionality, and some datasource features may not work on earlier versions.

### What can the agent do in Grafana MCP Server, and what can't it do?

The agent can read dashboards, panel queries, datasources, logs, traces, alert groups and on-call users. It can also make the changes its tools support, such as creating folders, incidents, annotations and snapshots. It only uses the 24 tools this connector exposes.

### Does the agent change my Grafana data without asking?

No. The agent asks before it changes anything. Creating an incident, creating a snapshot or managing an alert rule waits for your approval. Your queries run against your own Grafana instance. Check the agent's answers before you act on them.

### Can I use Grafana MCP Server with Grafana Cloud?

Yes. The server's documentation covers Grafana Cloud as a setup option. Use your Grafana Cloud instance URL in place of a local URL, along with a service account token. The server is made by Grafana Labs.

### Is the Grafana MCP server local or remote?

It runs on your own computer with uvx (package mcp-grafana==2.0.2). Your client starts it as a local process; nothing is hosted.

### What can an AI agent do with the Grafana MCP server?

It exposes 24 tools: 13 that read and 11 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for Grafana?

Yes. 5 SKILL.md playbooks teach an agent how to do real Grafana work step by step. RevampKey installs them when you connect Grafana; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (24)

- `add_activity_to_incident` (changes data)
- `alerting_manage_routing` (changes data)
- `alerting_manage_rules` (changes data)
- `alerting_manage_silences` (changes data)
- `analyze_loki_labels`
- `check_datasources_health`
- `create_annotation` (changes data)
- `create_datasource` (changes data)
- `create_folder` (changes data)
- `create_incident` (changes data)
- `create_snapshot` (changes data)
- `delete_annotation` (changes data)
- `delete_snapshot` (changes data)
- `diff_tempo_traces`
- `find_error_pattern_logs`
- `find_slow_requests`
- `generate_deeplink`
- `get_alert_group`
- `get_annotation_tags`
- `get_annotations`
- `get_assertions`
- `get_current_oncall_users`
- `get_dashboard_by_uid`
- `get_dashboard_panel_queries`

## Details

- Maker: Grafana Labs
- Setup: Connect from the app
- Documentation: https://github.com/grafana/mcp-grafana/blob/main/README.md

Page: https://revampkey.com/marketplace/grafana-mcp-server
