MCP server for Grafana dashboards, data sources, alerting and incident data.
MCP server for Grafana dashboards, data sources, alerting and incident data.
Grafana MCP server
A [Model Context Protocol][mcp] (MCP) server for Grafana.
This provides access to your Grafana instance and the surrounding ecosystem.
Requires uv. Add the following to your MCP client configuration (e.g. Claude Desktop, Cursor):
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": ["mcp-grafana"],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": ""
}
}
}
}
For Grafana Cloud, replace GRAFANA_URL with your instance URL (e.g. https://myinstance.grafana.net). See Usage for more installation options including Docker, binary, and Helm.
• Grafana version 9.0 or later is required for full functionality. Some features, particularly datasource-related operations, may not work correctly with earlier versions due to missing API endpoints.
The following features are currently available in MCP server. This list is for informational purposes only and does not represent a roadmap or commitment to future features.
• Search for dashboards: Find dashboards by title, folder UID, tag, or starred status
• Get dashboard by UID: Retrieve full dashboard details using its unique identifier. Pass optional version to load a saved snapshot instead of the current dashboard. Warning: Large dashboards can consume significant context window space.
• List dashboard versions: List saved versions of a dashboard as compact metadata (version number, author, timestamp, save message)
• Get dashboard summary: Get a compact overview of a dashboard including title, panel count, panel types, variables, and metadata without the full JSON to minimize context window usage
• Get dashboard property: Extract specific parts of a dashboard using JSONPath expressions (e.g., $.title, $.panels[*].title) to fetch only needed data and reduce context window consumption
• Update or create a dashboard: Modify existing dashboards or create new ones. Warning: Requires full dashboard JSON which can consume large amounts of context window space.
• Patch dashboard: Apply specific changes to a dashboard without requiring the full JSON, significantly reducing context window usage for targeted modifications
• Get panel queries and datasource info: Get the title, query string, and datasource information (including UID and type, if available) from every panel in a dashboard
Note: Run panel query tools are disabled by default. To enable them, add runpanelquery to your --enabled-tools flag.
• Run panel query: Execute a dashboard panel's query with custom time ranges and variable overrides. Infinity panels run when the query uses the backend or jq-backend parser (Google Sheets queries always do); the default simple parser and the UQL and GROQ parsers work only in the browser. Neo4j panels on the kniepdennis-neo4j-datasource plugin run their Cypher query through the plugin, which opens read-only sessions. Elasticsearch panels interpolate variables in the Lucene query with the lucene format, as Grafana does, and auto date histograms use the same interval as $__interval.
The dashboard tools now include several strategies to manage context window usage effectively (issue #101): …
MCP server · MCP servers / Monitoring · Open Source · Apache-2.0 · Go
Website https://github.com/grafana/mcp-grafana · Repo https://github.com/grafana/mcp-grafana
3,661 stars · 496 forks · 91 open issues · pushed 2026-11-11 · verified 2026-11-12
Tags: ai-agents, mcp-server, monitoring
Install: uvx mcp-grafana
What is Grafana MCP Server? Grafana MCP Server is a coding tool listed on Scriptiii AI Tools. MCP server for Grafana dashboards, data sources, alerting and incident data. Pricing: Free. Free to use. Best for: ai-agents, mcp-server, monitoring.
Everything you need to know about Grafana MCP Server
Similar tools in Coding
Open-source vector database that stores objects and vectors with hybrid search and filtering.
Coding·Free