MCP Grafana
MCP Grafana is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. An MCP server giving access to Grafana dashboards, data… It has 3,530 GitHub stars, is released under the Apache-2.0 license and runs locally with docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN -e GRAFANA_PASSWORD docker.io/grafana/mcp-grafana:2.0.1.
- Official
- Needs API key
- Cloud & DevOps
- Apache-2.0
- Actively maintained
Install MCP Grafana
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"mcp-grafana": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GRAFANA_URL",
"-e",
"GRAFANA_SERVICE_ACCOUNT_TOKEN",
"-e",
"GRAFANA_PASSWORD",
"docker.io/grafana/mcp-grafana:2.0.1"
],
"env": {
"GRAFANA_URL": "your-value",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "your-value",
"GRAFANA_PASSWORD": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env GRAFANA_URL=your-value --env GRAFANA_SERVICE_ACCOUNT_TOKEN=your-value --env GRAFANA_PASSWORD=your-value --transport stdio mcp-grafana -- docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN -e GRAFANA_PASSWORD docker.io/grafana/mcp-grafana:2.0.1Cursor
{
"mcpServers": {
"mcp-grafana": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GRAFANA_URL",
"-e",
"GRAFANA_SERVICE_ACCOUNT_TOKEN",
"-e",
"GRAFANA_PASSWORD",
"docker.io/grafana/mcp-grafana:2.0.1"
],
"env": {
"GRAFANA_URL": "your-value",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "your-value",
"GRAFANA_PASSWORD": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "grafana_service_account_token",
"description": "GRAFANA_SERVICE_ACCOUNT_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "grafana_password",
"description": "GRAFANA_PASSWORD",
"password": true
}
],
"servers": {
"mcp-grafana": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GRAFANA_URL",
"-e",
"GRAFANA_SERVICE_ACCOUNT_TOKEN",
"-e",
"GRAFANA_PASSWORD",
"docker.io/grafana/mcp-grafana:2.0.1"
],
"env": {
"GRAFANA_URL": "your-value",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "${input:grafana_service_account_token}",
"GRAFANA_PASSWORD": "${input:grafana_password}"
}
}
}
}Claude Code (remote)
claude mcp add --transport http mcp-grafana "https://mcp.grafana.com/mcp"The same server is also hosted as a remote MCP endpoint, so nothing runs on your machine.
Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
GRAFANA_URL | Yes | URL to your Grafana instance |
GRAFANA_SERVICE_ACCOUNT_TOKENsecret | No | Service account token used to authenticate with your Grafana instance |
GRAFANA_USERNAME | No | Username to authenticate with your Grafana instance |
GRAFANA_PASSWORDsecret | No | Password to authenticate with your Grafana instance |
GRAFANA_ORG_ID | No | Organization ID for multi-org support. Can also be set via X-Grafana-Org-Id header in SSE/streamable HTTP transports. |
GRAFANA_EXTRA_HEADERS | No | JSON object of additional HTTP headers to send with all Grafana API requests |
GRAFANA_FORWARD_HEADERS | No | Comma-separated list of HTTP header names to forward from the incoming request to Grafana (SSE/streamable-http only). Example: Cookie,X-Session-Id |
Tools (40)
Parsed from the Tools section of the README; check the repository for the current list.
list_teamsAdmin
list_users_by_orgAdmin
list_all_rolesAdmin
get_role_detailsAdmin
get_role_assignmentsAdmin
list_user_rolesAdmin
list_team_rolesAdmin
get_resource_permissionsAdmin
get_resource_descriptionAdmin
user_infoUser
search_dashboardsSearch
get_dashboard_by_uidDashboard
list_dashboard_versionsDashboard
update_dashboardDashboard
get_dashboard_panel_queriesDashboard
run_panel_queryRunPanelQuery*
get_dashboard_propertyDashboard
get_dashboard_summaryDashboard
list_datasourcesDatasources
get_datasourceDatasources
get_query_examplesExamples*
query_prometheusPrometheus
list_prometheus_metric_metadataPrometheus
list_prometheus_metric_namesPrometheus
list_prometheus_label_namesPrometheus
list_prometheus_label_valuesPrometheus
query_prometheus_histogramPrometheus
list_incidentsIncident
create_incidentIncident
add_activity_to_incidentIncident
update_incidentIncident
get_incidentIncident
list_incident_custom_fieldsIncident
query_loki_logsLoki
list_loki_label_namesLoki
list_loki_label_valuesLoki
query_loki_statsLoki
query_loki_patternsLoki
analyze_loki_labelsLoki
suggest_loki_alloy_label_configConfig
About MCP Grafana
A [Model Context Protocol][mcp] (MCP) server for Grafana. This provides access to your Grafana instance and the surrounding ecosystem.
Similar MCP servers
More cloud & devops MCP servers
Worldmonitor
koala73/worldmonitor
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface.
Cloud & DevOpsTypeScriptNetdata
netdata/netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Cloud & DevOpsGoopenstatus
openstatusHQ/openstatus
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
OfficialCloud & DevOpsTypeScriptMCP Server Cloudflare
cloudflare/mcp-server-cloudflare
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems.
OfficialCloud & DevOpsTypeScriptDagu
dagucloud/dagu
Self-hostable workflow orchestrator for teams whose main work isn't orchestration.
Cloud & DevOpsGoAzure MCP Server
microsoft/mcp
All Azure MCP tools to create a seamless connection between AI agents and Azure services.
OfficialCloud & DevOpsC#
What is MCP Grafana?
MCP Grafana is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. An MCP server giving access to Grafana dashboards, data… It has 3,530 GitHub stars, is released under the Apache-2.0 license and runs locally with docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN -e GRAFANA_PASSWORD docker.io/grafana/mcp-grafana:2.0.1. The source code is at github.com/grafana/mcp-grafana.
How do I install the MCP Grafana MCP server?
Add the command docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN -e GRAFANA_PASSWORD docker.io/grafana/mcp-grafana:2.0.1 to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is MCP Grafana free?
The server is open source under the Apache-2.0 license, so running it is free. It needs credentials (GRAFANA_SERVICE_ACCOUNT_TOKEN and GRAFANA_PASSWORD) for the service it connects to, which may require a paid account.
Is MCP Grafana actively maintained?
The most recent commit was on Oct 6, 2026. The latest release is v2.0.1, published Oct 6, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.