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,599 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.1.1.
github.com/grafana/mcp-grafana (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
- Official
- Needs API key
- Cloud & DevOps
- Apache-2.0
- Active
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.1.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.1.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.1.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.1.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
search_foldersSearch
get_dashboard_by_uidDashboard
list_dashboard_versionsDashboard
update_dashboardDashboard
get_dashboard_panel_queriesDashboard
run_panel_queryRunPanelQuery*
get_dashboard_propertyDashboard
get_dashboard_summaryDashboard
create_folderDashboard
list_datasourcesDatasources
get_datasourceDatasources
check_datasources_healthDatasources
create_datasourceDatasources
update_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
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
Azure MCP Server
microsoft/mcp
All Azure MCP tools to create a seamless connection between AI agents and Azure services.
Active · last commit Oct 23, 2026
OfficialCloud & DevOpsC#Omnara
omnara-ai/omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Active · last commit Oct 24, 2026
OfficialCloud & DevOpsGoMCP Server Cloudflare
cloudflare/mcp-server-cloudflare
Product specific Cloudflare MCP servers.
Active · last commit Oct 22, 2026
OfficialCloud & DevOpsTypeScriptThesvg
glincker/thesvg
The open SVG brand library: 7,600+ brand logos and cloud icons (AWS, Azure, GCP) as official SVG.
Active · last commit Oct 25, 2026
Cloud & DevOpsTypeScriptDagu
dagucloud/dagu
Self-hostable workflow orchestrator for teams whose main work isn't orchestration.
Active · last commit Oct 26, 2026
Cloud & DevOpsGoKubernetes MCP Server
containers/kubernetes-mcp-server
A Model Context Protocol (MCP) server for Kubernetes and OpenShift.
Active · last commit Oct 26, 2026
Cloud & DevOpsGo
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.1.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 23, 2026. The latest release is v2.1.1, published Oct 20, 2026. appsgit only lists MCP servers with a commit in the last six months.