MCP Directory

Grafana MCP Setup: Read Dashboards and Alerts Before You Enable Writes

Use Grafana Cloud’s hosted MCP server when available; otherwise run Grafana’s official open-source server with uvx, Docker, a downloaded binary, or Helm. Start with a narrowly scoped service-account token, verify dashboard, alert, metric, and incident reads, then expose write tools only after access and data boundaries are clear.

MCPtrove·September 28, 2026·7 min read
A high-tech command center with illuminated digital screens in a futuristic setting.
Photo by Keysi Estrada on Pexels

Use Grafana Cloud’s hosted MCP server when available; otherwise run Grafana’s official open-source server with uvx, Docker, a downloaded binary, or Helm. Start with a narrowly scoped service-account token, verify dashboard, alert, metric, and incident reads, then expose write tools only after access and data boundaries are clear.

Table of contents

Which Grafana MCP deployment should you choose?

Choose Grafana Cloud’s hosted MCP server when it is available for your environment; otherwise run the official open-source server with uvx, Docker, a downloaded binary, or Helm. In both cases, authenticate with the narrowest service account and begin with read-only validation.

Grafana documents both deployment paths in its MCP setup guide. The hosted route reduces local runtime work. The self-run route gives you direct control over where the server runs and how it reaches Grafana.

SituationPractical choice
Grafana Cloud provides the required hosted pathUse the hosted MCP server
You need local runtime controlRun the official open-source server
You already use Python toolingChoose uvx
You standardize services in containersChoose Docker
You manage compiled releasesUse a downloaded binary
You operate Kubernetes with chartsUse Helm

The MCPtrove Grafana MCP server entry is a practical next step for locating the server and its supported deployment options. Treat the directory as a way to orient your setup, then confirm configuration details in Grafana’s current documentation.

How do you create a least-privileged Grafana identity?

Create a dedicated Grafana service account for MCP and grant only the scopes required for the reads you intend to perform. Keep write permissions out of the first configuration, and issue a separate identity if later changes require them.

Grafana’s service-account documentation covers the account and token model. Use an identity that is separate from a human administrator, because MCP requests should have a clear and limited permission boundary.

Start by identifying the read surfaces you need: dashboards, alerts, datasources, incidents, or observability queries. Do not grant every available permission merely because the server can expose several categories of tools. Capabilities span dashboards, alerts, datasources, incidents, and queries, so the token and selected tools together determine the blast radius.

Store the token in the MCP client’s supported secret configuration rather than placing it in prompts, shared notes, or source code. Rotate or revoke it through Grafana when ownership changes or the token may have been exposed. Keep the Grafana URL and token associated with the same intended environment so a test client cannot silently point at production.

Whiteboard displaying various charts secured with binder clips in office setting.
Photo by Pavel Danilyuk on Pexels

How do you connect with uvx, Docker, or the cloud endpoint?

Connect by selecting Grafana Cloud’s hosted endpoint when available, or by following the official self-run instructions for uvx, Docker, a downloaded binary, or Helm with your Grafana URL and service-account token. Use the exact configuration form documented for the chosen runtime.

Grafana’s MCP overview describes the hosted and open-source options, while the official mcp-grafana repository provides the implementation and release context.

For a self-run deployment, establish these values before connecting:

  • The Grafana base URL for the intended environment.
  • The dedicated service-account token.
  • The selected runtime: uvx, Docker, binary, or Helm.
  • The MCP client that will launch or reach the server.
  • The initial read-only tool set.

Do not invent command flags from examples for a different runtime. Copy the method-specific invocation from the setup guide or repository and substitute only the documented connection values. If your client separates server launch settings from environment variables, keep the token in the secret field expected by that client.

MCP uses a host, client, and server relationship: the client carries requests between the host application and MCP server, while the server connects those requests to Grafana capabilities. Understanding that boundary helps you identify whether a failure belongs to the client configuration, MCP server process, network path, or Grafana authorization. See the MCP architecture guide for the component model.

How do you verify dashboards, alerts, and queries read-first?

Verify one read surface at a time, beginning with a known dashboard and then checking alerts, metrics, and incidents without enabling mutations. Confirm that returned data belongs to the intended Grafana environment before expanding the test set.

A useful sequence is:

  1. Connect with the dedicated service-account token.
  2. Read a known dashboard and confirm its title or identifying content.
  3. Read alert information and compare it with the expected Grafana environment.
  4. Run a narrowly scoped observability query.
  5. Read incident information if incidents are part of your workflow.
  6. Record which tools succeeded, which were denied, and which returned no data.

The query logs and metrics capability guide can help identify the relevant MCPtrove capability page before you choose query coverage. Keep the first queries small and specific. A successful connection does not prove that every datasource, folder, alert, or incident is available to the token.

Treat empty results and permission errors differently. Empty results can mean the query or time range does not match available data. A permission error indicates that Grafana rejected the request or that the identity lacks access. Do not widen permissions until you know which condition occurred.

How do you contain write tools and sensitive telemetry?

Contain write tools by leaving them disabled during verification, separating read and change identities, and allowing changes only after each tool has a clear purpose and approval path. Limit telemetry exposure to the dashboards, queries, datasources, and incidents the workflow actually needs.

Grafana MCP can cover operational data and actions across several capability areas. That makes tool selection as important as token selection: a narrowly scoped token can still expose more than intended if the client enables unnecessary tools.

Use these controls:

  • Start with read-only tools.
  • Keep dashboard, alert, datasource, incident, and query access limited to the required scope.
  • Use a separate service account for approved changes.
  • Review the exact tools exposed to the model or client.
  • Avoid copying sensitive query results into prompts or shared logs.
  • Revoke unused tokens and remove unused tool connections.

The MCP security best-practices specification provides the security principles for authorization, validation, and protection of MCP connections. MCPtrove’s security guidance is a useful practical companion when deciding which controls belong in the client, server, and Grafana layers.

How do you fix URL, TLS, datasource, and permission errors?

Fix errors by checking the Grafana URL first, keeping TLS verification enabled outside controlled local tests, then separating transport, authentication, datasource, and authorization failures. Change one variable at a time and repeat the smallest read that previously failed.

SymptomCheck firstSafe next action
Cannot connectGrafana URL and server processConfirm the documented URL format and runtime configuration
TLS or certificate errorCertificate chain and hostnameCorrect the certificate path or hostname; do not disable verification
Unauthorized requestToken presence and validityReissue or rotate the service-account token
Forbidden requestService-account permissionsGrant only the missing read permission
Query returns no dataDatasource, scope, and time rangeNarrow the query and confirm the datasource is available
Works locally but not remotelyNetwork path and endpoint exposureCheck the client-to-server route and intended environment

Self-run configurations require a Grafana URL and service-account token. TLS verification should remain enabled except during a controlled local test, and it should not become a production workaround. If the server starts but a query fails, inspect datasource access and query scope before changing the deployment method.

For configuration review, use MCPtrove’s config validator as a practical next step, then compare its findings with Grafana’s setup instructions. Preserve the smallest working configuration and add capabilities only after each read path is understood.

FAQ

Is Grafana MCP read-only by default?

Begin with read-only tools and permissions, but verify the selected server configuration and client tool list. The available capability set can include changes, so do not assume connection alone defines a read-only boundary.

Should I use Grafana Cloud or self-run MCP?

Use Grafana Cloud’s hosted path when it is available and fits your environment. Choose the official open-source server when you need control over runtime placement, deployment method, or network path.

What token should Grafana MCP use?

Use a dedicated Grafana service-account token with only the permissions required for the selected reads. Keep write permissions separate until a specific approved workflow requires them.

What should I test first?

Test a known dashboard, then alerts, a narrow metric or observability query, and incidents if needed. Confirm the results come from the intended Grafana environment before enabling any change operation.

Put this into practice

Browse MCP servers by capability, or check your own setup's tool budget and security.

More in Integrations

Browse all integrations articles.