OfficialVerified

Grafana MCP Server

Grafana dashboards and data accessible via Model Context Protocol for AI assistants.

Data last scanned 2 days ago · Reviewed 2 months ago

Overview

The Grafana MCP server bridges your Grafana instance with AI models, allowing direct interaction with dashboard metadata and content. It supports searching for dashboards, retrieving specific panel queries, and extracting data points using JSONPath expressions to manage context window usage effectively. Beyond read-only data retrieval, the server allows for creating and updating dashboards directly through the AI assistant. Users can perform targeted modifications using patch operations, which helps minimize the amount of JSON data transmitted compared to full dashboard updates.

Our verdict

With a security score of 73/100, this server is classified as medium risk. The lack of a read-only mode means that every installation grants full write access to your Grafana instance, which could lead to unintended modifications if not carefully managed. It is best suited for users who require automated dashboard management but should be deployed with strict service account permissions.

  • Maintained directly by the official Grafana organization.
  • Zero direct dependencies minimize the software supply-chain surface.
  • Supports targeted dashboard patching to optimize context window usage.
  • Defaults to full write access with no read-only configuration.
  • Lack of OAuth support requires managing service account tokens directly.
  • No homepage link provided in the repository documentation.

Tools

ToolDescriptionRisk
list_teamsList all teamslow
list_users_by_orgList all users in an organizationlow
list_all_rolesList all Grafana roleslow
get_role_detailsGet details for a Grafana rolelow
get_role_assignmentsList assignments for a rolelow
list_user_rolesList roles for userslow
list_team_rolesList roles for teamslow
get_resource_permissionsList permissions for a resourcelow
get_resource_descriptionDescribe a Grafana resource typelow
search_dashboardsSearch for dashboardslow

Compatibility

ClientLocalDockerRemoteRead-only
Claude Desktop
Cursor
VS Code
Windsurf
ChatGPT

Frequently asked questions

What is the minimum Grafana version required?

Grafana version 9.0 or later is required for full functionality, as some datasource-related API endpoints may not be available in earlier versions.

Which tools are disabled by default?

Tools for running panel queries, retrieving query examples, and performing operations for InfluxDB and ClickHouse are disabled by default and must be explicitly enabled using the --enabled-tools flag.

How can I reduce context window usage when interacting with dashboards?

You can use get_dashboard_summary for overviews, get_dashboard_property with JSONPath to fetch specific data, or the patch_dashboard tool for targeted modifications instead of retrieving or sending the full dashboard JSON.

What authentication is needed to connect to Grafana?

You must provide a GRAFANA_SERVICE_ACCOUNT_TOKEN in your environment configuration to authenticate the server with your Grafana instance.

Which specific datasource types are supported?

The server supports Prometheus, Loki, ClickHouse, CloudWatch, Elasticsearch, OpenSearch, Snowflake, and Athena.

Alternatives

Changelog

Badge

Grafana MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.