Grafana MCP server official setup: OAuth, tokens, Helm and admin controls

Grafana documents two MCP options: the self-run open source server, which authenticates with a service account token, and the hosted Grafana Cloud server, which uses OAuth 2.1 scoped to the signed-in user. Choose by where your Grafana runs and who must control the connection.

On this page

Does the Grafana MCP server meet our sign-in and admin control requirements?

Per-user OAuth 2.1 sign-in and admin role control are available only on the hosted Grafana Cloud MCP server, which is part of Grafana Assistant. The open source Grafana MCP server authenticates with a service account token that your team creates, stores and rotates, so access control rests with whoever governs that token and the Grafana role behind it. Decide which path fits your requirement before any pilot begins, because the two paths answer identity and approval questions in different places.

On the Cloud path, each user signs in through a browser authorization that is scoped to their own Grafana identity, so the agent acts with that user's permissions. Connecting an agent requires the Assistant Cloud MCP User role, which Editor and higher roles have by default, and write access requires the Assistant Admin role. If a client lacks Dynamic Client Registration or Client ID Metadata Documents, an Assistant Admin must register an OAuth client, and that client must support Streamable HTTP and the OAuth 2.1 authorization code flow with PKCE using S256. Administrators can limit which tools users may grant, and users can review and revoke their own connections under AI, Settings, Connectors, MCP clients. Confirm with Grafana whether these controls meet your approval policy for each team.

On the open source path, the server runs in your own infrastructure, whether you use Docker, a binary, or the Helm chart in the grafana-community repository, and it is configured with a Grafana URL and a service account token. Grafana's Cloud role model does not apply to that token in the same way, so your team must set its role scope, create per-environment tokens, and define rotation and revocation. Your platform team also owns the transport choice, TLS termination, network exposure and any HTTP request logging you enable. Ask your Grafana administrator to confirm which role each token receives and whether that role can be restricted to the access you approve.

Which Grafana MCP capabilities apply to which option

This table compares the customer-run open source Grafana MCP server with the hosted Grafana Cloud MCP server across protocol, sign-in, deployment, roles and licensing. Read each cell as a status: built in, requires Grafana Cloud with Assistant, needs an outside component, or not documented in the supplied sources, which means you should confirm it with Grafana. The main takeaway is that the two options differ in who runs the server and how each user signs in, so the choice drives your role and approval work.

CapabilityOpen source Grafana MCP serverGrafana Cloud MCP server
Who runs itBuilt in: the customer runs and manages the server in its own environmentBuilt in: fully hosted by Grafana Labs at the mcp.grafana.com endpoint
Grafana versions supportedBuilt in: works with Grafana Cloud or self-managed Grafana 9.0 or laterRequires Grafana Cloud with Assistant: works only with hosted Grafana Cloud
AuthenticationBuilt in: service account token, which the admin creates and storesBuilt in: OAuth 2.1 browser sign-in scoped to the signed-in Grafana user
TransportBuilt in: stdio by default, with sse and streamable-http also supportedBuilt in: Streamable HTTP only, SSE is not supported
Deployment optionsBuilt in: uvx, Docker, a binary and a Helm chart (grafana-mcp) for Kubernetes, all run in your own infrastructureNot applicable: no self-hosted deployment is documented; the client connects to the hosted endpoint
Who can connectNeeds an outside component: whoever holds the service account token and the Grafana instance can connect the serverRequires Grafana Cloud with Assistant: each user who connects needs the Assistant Cloud MCP User role, and write access needs Assistant Admin
Registered client setupNot documented in the supplied sources: confirm how your clients are approved and restrictedRequires Grafana Cloud with Assistant: clients without Dynamic Client Registration need a registered OAuth client, which needs Assistant Admin
Licensing and costBuilt in: Apache License 2.0 for the server code; confirm any Grafana product costs separatelyRequires Grafana Cloud with Assistant: each connected user counts as a Grafana Assistant active user; confirm current terms with Grafana

How the two authentication paths enforce access

The two paths place identity in different locations, and that decides whose permissions an agent actually uses. The hosted Grafana Cloud MCP server authenticates each person through OAuth 2.1 browser authorization tied to the signed-in Grafana user, so the agent can only do what that user can do in Grafana. The open source server works differently. It authenticates with one service account token that the customer configures in the server, so every request carries that account's role no matter who prompted the agent. Reviewers should treat the OSS deployment as one shared identity and size its role for the most sensitive action any connected user could trigger.

The hosted endpoint is ` and uses the Streamable HTTP transport, with SSE not supported. Any client connecting to it must support Streamable HTTP and the OAuth 2.1 authorization code flow with PKCE using the S256 method. Clients that lack Dynamic Client Registration or Client ID Metadata Documents need a registered OAuth client, which requires the Assistant Admin role. Confirm which of your staff's clients meet these requirements before approving the path, since a client that does not support them cannot connect at all. The Grafana Cloud MCP server docs list the supported client setup.

On the OSS server, the transport choice changes the exposure surface. It defaults to stdio, which runs as a local process for one user, and it also supports sse and streamable-http, which listen on the network and need your own network controls, authentication in front of them, and a review of who can reach them. Enforcement is split across two layers: Grafana roles decide what the token's account can read or change in Grafana itself, while the MCP layer decides which tools are exposed. Admins on the hosted path can limit which tools users may grant, so decide that tool list alongside the role assignments, not after them.

Decisions to make before choosing the server

Before you pick a Grafana MCP server, settle where it runs, which Grafana edition sits behind it, and who approves access. These decisions set how accountability is traced to a person, how much admin work each connection creates, and what your cluster and logs must hold. Work through them in order, because the hosting choice narrows the identity and deployment options that follow.

Hosted or self-run server

The hosted Grafana Cloud MCP server is fully managed by Grafana Labs and works only with hosted Grafana Cloud. The open source server is run and managed by your team and works with Grafana Cloud or self-managed Grafana. Choosing hosted reduces the infrastructure you operate, while self-run keeps the process, its configuration and its logs inside your environment. Ask which option your security team can review and approve, and who will patch and monitor the server you choose.

MCP servers overview

Grafana edition and deployment

The open source server needs Grafana 9.0 or later for full functionality, so confirm your Grafana version before planning a rollout. Self-managed Grafana and Grafana Cloud both work with the self-run server, but the hosted server accepts only Grafana Cloud. Your edition determines which connection path is available, which admin console controls apply, and which upgrade cycle you must track. Document the version in your change records so reviewers can match it to the tool set you approved.

Open source server docs

Per-user OAuth or shared service account

The hosted server uses OAuth 2.1 browser authorization scoped to the signed-in Grafana user, so each action traces to a person. The self-run server authenticates with a service account token, which means every agent session using that token acts as the same identity unless you issue separate tokens. Per-user access gives clearer accountability and easier revocation, while a shared token is simpler to deploy but makes attribution weak. Ask how each identity model maps to your existing offboarding process.

Who may register clients and grant tools

Clients that lack Dynamic Client Registration or Client ID Metadata Documents need a registered OAuth client, and only the Assistant Admin role can register one. Connecting an agent to Cloud MCP requires the Assistant Cloud MCP User role, which Editor and higher roles hold by default, and write access needs Assistant Admin. Administrators can also limit which tools users may grant. Decide who holds these roles before rollout, since they determine who can widen what an agent reaches.

Register an OAuth client

Helm and container boundary

The Helm chart grafana-mcp, from the grafana-community helm-charts repository, runs the server in your own cluster, configured with the grafana.url and grafana.apiKey values. The repository also ships Dockerfile and docker-compose files, so the same server can run as a container on a host you manage. Either way, the credential you supply becomes a secret the cluster holds, so check how it is stored, who can read it, and which network paths the pod can reach. Confirm these boundaries with your platform team before choosing a packaging method.

Deploy with Helm

Where HTTP request logs go

The OSS server offers a debug flag that enables HTTP request logging, and it also exposes an optional Prometheus metrics endpoint. Those logs may contain request details that your data handling policy classifies as sensitive, so decide before enabling the flag where they are written, who can read them, and how long they are kept. Confirm with your logging team that the destination meets your retention and access rules. Leave debug off in production unless a documented need requires it.

Command-line flags

How the answer changes by Grafana deployment

This is the situation where the hosted Grafana Cloud MCP server applies. Grafana documents it as fully hosted, reachable at the Cloud MCP endpoint, and limited to hosted Grafana Cloud. Users authorize through OAuth 2.1 in the browser, so each connection is scoped to the signed-in Grafana user rather than to a shared service account token. Because the server is part of Grafana Assistant, each connecting user counts as an Assistant active user.

  • Roles: Connecting an agent requires the Assistant Cloud MCP User role, which Editor and higher roles have by default. Write access requires the Assistant Admin role.
  • Client registration: Clients without Dynamic Client Registration or Client ID Metadata Documents need a registered OAuth client, which only an Assistant Admin can create. Registered clients must support Streamable HTTP and the authorization code flow with PKCE using S256.
  • Tool control: Administrators can limit which tools users are allowed to grant.
  • User review: Users can review and revoke their own connections under AI, Settings, Connectors, MCP clients.
  • Transport: The endpoint uses Streamable HTTP. SSE is not supported.

Confirm with Grafana which of your users hold the Assistant licenses and roles, and whether your identity provider setup affects browser sign-in for your clients.

Two sign-in paths reach Grafana, and each one is gated differently

The diagram starts with an AI client choosing between the hosted Grafana Cloud MCP endpoint and the customer-run open source server. The hosted path uses OAuth 2.1 browser sign-in tied to the signed-in Grafana user, and the Assistant Cloud MCP User role gates the connection. The open source path uses a service account token in the customer's own cluster or host, so the token's permissions define what the agent can reach. Check which role gates each path, and confirm where the tool permissions are enforced in your setup.

Hosted OAuth sign-in and customer-run token access, side by side.

Order of work before production use

This sequence moves the Grafana MCP server from a confirmed edition and deployment model to an approved production connection, with a named owner and a recorded check at each stage. Reviewers can trace who decided what before any agent reads production dashboards or alerts.

  1. Confirm the Grafana edition and deployment model

    The platform or Grafana owner confirms whether the organization runs Grafana Cloud or self-managed Grafana, and which Grafana version is in place. The open source server works with both, while the hosted Cloud server works only with hosted Grafana Cloud. The step is done when the team has a written statement of the edition, version and hosting model, which the reviewer will check against the server option chosen next.

  2. Choose the open source or hosted server

    The engineering and security leads select one option for each use case. The open source server is run and managed by the customer and authenticates with a service account token. The hosted Cloud server uses OAuth 2.1 browser authorization tied to the signed-in user. The step closes with a short decision record that names the server, the transport the MCP clients will use and the reason, so the choice can be audited later.

  3. Define service account and Assistant roles

    The Grafana administrator defines the identity each connection will use. For the open source server, this means a service account and its role in Grafana. For the Cloud server, it means deciding which users hold the Assistant Cloud MCP User role and which hold Assistant Admin, since write access requires Assistant Admin. The step is complete when each role is listed with the people or groups assigned, and the reviewer can confirm no broader role is granted by default.

  4. Decide who registers OAuth clients and which tools are allowed

    Clients that lack Dynamic Client Registration or Client ID Metadata Documents require a registered OAuth client, and that step needs the Assistant Admin role. The administrators also decide which tools users may grant, since Grafana lets admins limit tool grants. The output is a named list of people allowed to register clients and an approved tool set, with the list of clients that must support Streamable HTTP and PKCE with the S256 method documented before anyone connects.

  5. Deploy in a non-production stack first

    The team deploys the chosen server in a non-production Grafana stack or cluster, using the Docker or Helm path that matches the environment. Helm installs take grafana.url and grafana.apiKey values, so the reviewer should confirm that the credential is stored in the cluster's secret handling and not in plain configuration. The step is done when the server runs in the test environment, the team has tested that the tool set is limited as planned, and the test results are recorded.

  6. Verify connections and revoke test connections

    Each approved MCP client connects to the test environment, and the team checks the connection in the MCP clients list under AI, Settings, Connectors. For hosted connections, users can review and revoke connections there, and the administrator should confirm that test connections are removed afterward. The step closes when every test connection appears as expected, unexpected connections are revoked, and the team has confirmed that access matches the roles defined earlier.

  7. Approve production use and record the decision

    The security lead, Grafana administrator and the owner of the data reviewed the test results and sign off on production. The approval record should name the server option, edition and version, the roles and OAuth client registrants, the approved tools and the test outcome. Production connections should only start after this record exists, and it should be reviewed whenever the Grafana version, server release or role assignments change.

What a security reviewer asks to see

This table maps each control a security reviewer should ask about to the evidence to request and the place in Grafana or the deployment where that evidence lives. Use it as a checklist before approving either the hosted Cloud server or a self-managed OSS deployment. Gaps in any row are a reason to pause the rollout until the owner can produce the record.

Control questionEvidence to requestWhere it comes from in Grafana or the deployment
Who holds the Assistant Cloud MCP User role, and who holds Assistant Admin?Current list of users and groups with each role, plus the date each assignment was last reviewedGrafana Assistant role assignments in the Grafana Cloud stack; Editor and higher roles carry the Cloud MCP User role by default
Who can create write-capable connections?Named list of Assistant Admin holders and the approval record for each write-access grantAssistant Admin role, which write access requires according to the Grafana Assistant docs
Which OAuth clients are registered, and who registered them?Registration record for each OAuth client: name, redirect details, requester, approver and dateRegistered OAuth client records, needed for clients without Dynamic Client Registration or Client ID Metadata Documents
Do registered clients meet the required protocol profile?Client configuration showing Streamable HTTP support, authorization code flow with PKCE and the S256 methodOAuth client registration settings for Grafana Cloud MCP
Which tools can users grant, and what is blocked?Written tool limits set by administrators, with a change log for each updateAdministrator tool-grant limits in Grafana Assistant settings
Which service account and role does the OSS server use, and when was its token last rotated?Service account name, its role scope, token creation and rotation dates, and the owner of each tokenGrafana service account used as the OSS server credential; the token is supplied to the server through the configured source
Which MCP connections are live for each user, and can they be revoked?Periodic export or screenshot of the MCP clients list, with the revocation log for removed connectionsGrafana Assistant settings under AI, Settings, Connectors, MCP clients, where users review and revoke connections
Where do the server URL and Grafana token come from in a Helm install?Helm values file showing grafana.url and the token source, with confirmation that the key is not stored in plain text in version controlgrafana.url and grafana.apiKey values in the grafana-mcp Helm chart deployment

Questions buyers ask before approving the Grafana MCP server

Does the Grafana MCP server support SSO with our identity provider?

The hosted Grafana Cloud MCP server signs users in through OAuth 2.1 browser authorization, scoped to the Grafana user who is signed in, so the identity that reaches Grafana is the one that signed in to Grafana. The open source server authenticates with a service account token instead, which means the token's role, not an individual's SSO session, decides what the agent can do. Whether your identity provider can be used for the hosted path depends on how your Grafana Cloud stack is configured for sign-in, so confirm the identity provider path with Grafana before you plan around it. Ask Grafana to show which sign-in methods apply to your stack and how a connected user's role is checked on each request.

What licensing applies when staff connect agents to Grafana Cloud MCP?

The hosted Grafana Cloud MCP server is part of Grafana Assistant, and each user who connects counts as a Grafana Assistant active user. The count therefore follows the number of people who connect, not the number of Grafana seats alone, so the number of staff you plan to authorize is the main input to the licensing estimate. To connect an agent, a user needs the Assistant Cloud MCP User role, which Editor and higher roles have by default, and write access requires the Assistant Admin role. Pricing for active users is not part of the researched material for this page, so ask Grafana for current Assistant pricing and confirm how active users are counted for your stack before you commit.

What drives the effort of running the open source Grafana MCP server?

With the open source server, your team carries the deployment, upgrades and operation, because Grafana describes it as run and managed by the customer. The main effort drivers are where it runs (Docker, a binary, uvx or the Helm chart on Kubernetes), how many instances you operate, how service account tokens are created, scoped, rotated and stored, and whether you turn on the optional Prometheus metrics endpoint or HTTP request logging for review. Your Grafana version also matters, since the OSS docs say Grafana 9.0 or later is required for full functionality. Ask for a written list of the components, the owners for each, and the process for token rotation before you size the work.

Can our internal team set up the Grafana MCP server without outside help?

Often yes, if your platform team already runs Grafana and Kubernetes or Docker, because Grafana's docs cover a Helm install from the grafana-community helm-charts repository and the repository ships Dockerfile and docker-compose files. The team should be ready to make decisions that the docs do not make for you: which service account role the agent gets, whether the server runs as stdio locally or as sse or streamable-http on a shared host, how the grafana.url and grafana.apiKey values are stored, and who reviews tool access. Teams without a clear owner for those decisions usually benefit from a written scope before work starts. DeployOpen plans and implements self-hosted platforms in your own infrastructure on fixed-scope engagements, and the scope and deliverables are agreed in writing first.

What does Grafana provide and what does DeployOpen do?

Grafana provides the two server options, the hosted Grafana Cloud MCP endpoint, the open source server in the grafana/mcp-grafana repository under the Apache License 2.0, the Helm chart documentation and the admin controls for Grafana Assistant, including the ability to limit which tools users can grant. DeployOpen does not provide the Grafana software or licenses. Within its scope, DeployOpen plans, implements, hardens, integrates and documents self-hosted open source platforms inside your infrastructure, and it runs security testing of AI agents and MCP setups, including tool and file permissions, credential handling, SSO and admin settings, with a findings report and a retest. DeployOpen does not issue audit reports or certifications for your deployment; independent auditors do that.

Which Grafana MCP option should a security review start with?

Start by deciding where Grafana runs and who must authenticate. The hosted Grafana Cloud MCP server works only with hosted Grafana Cloud, uses the Streamable HTTP transport at the documented endpoint, does not support SSE, and ties each action to the signed-in user. The open source server works with Grafana Cloud or self-managed Grafana, but it authenticates with a service account token that your team must issue, scope and protect. If you run self-managed Grafana, only the open source path applies. Confirm with Grafana which path matches your stack before you write the approval conditions, and ask for the list of tool categories you can restrict for each.

Who can approve or revoke an agent connection in Grafana Cloud?

On the hosted server, users can review and revoke their own connections under AI, Settings, Connectors, MCP clients, and administrators can limit which tools users are allowed to grant. If a client does not support Dynamic Client Registration or Client ID Metadata Documents, an Assistant Admin must register an OAuth client, and that client must support Streamable HTTP and the OAuth 2.1 authorization code flow with PKCE using the S256 method. On the open source path, approval happens through whoever controls the service account and its role, so the people who can create or rotate those tokens are the real approvers. Ask Grafana to confirm the current admin screens for your stack before you write the approval procedure.

What to confirm with Grafana before signing off

Several points that decide whether this setup passes review are not settled by the public documentation we have, so they belong on the list you send to Grafana before approval. The first is audit logging on the open source side. The supplied material shows a debug flag for HTTP request logging in the OSS server, but it does not say what that flag records, where the output goes, or whether it captures which tool an agent called and with what arguments. Ask Grafana whether the Grafana server itself records actions taken through a service account token, and confirm how those entries can be tied back to a specific agent session. Also confirm which Grafana edition and version your environment runs, since the OSS documentation states Grafana 9.0 or later for full functionality and your own version may differ from the features you expect.

The second item is the identity provider for the hosted OAuth flow. The documentation describes browser authorization scoped to the signed-in Grafana user and requirements for registered clients, including Streamable HTTP and the OAuth 2.1 authorization code flow with PKCE using S256. It does not list which identity providers Grafana Cloud accepts for that sign-in, whether SSO settings from your existing provider carry through to MCP connections, or how session lifetime and revocation are handled. Confirm these with Grafana and check the exact role names in your own Grafana Cloud stack, including Assistant Cloud MCP User, Assistant Admin and the Editor default, because role assignments can differ by plan and by how your organization has configured access.

The third item is tool filtering on the open source server. The documentation lists tool families such as dashboards, datasources, alerting, incidents and OnCall, plus deeplink generation, and the command-line flags cover transport, metrics and debug output. Ask Grafana or check the repository for any option that restricts tools by category, disables write operations or limits which datasources an agent can query, and do not assume such a control exists until you see it documented or confirmed in writing. Where Grafana cannot confirm a filter, plan to restrict the service account's own Grafana permissions instead. Route these questions first to the Grafana Cloud MCP server docs, then to your Grafana account team for anything the docs leave open, and record the answers in your approval file.

How DeployOpen helps roll out Grafana MCP access safely

DeployOpen helps teams decide between the open source Grafana MCP server and the hosted Grafana Cloud MCP server, then sets up authentication, deployment and admin roles so the connection matches the organization's review requirements. The work covers Grafana MCP server official setup: OAuth, tokens, Helm and admin controls, and the security testing that follows it.

How we scope

  • We confirm which server fits your Grafana deployment: open source for self-managed or Cloud, hosted Cloud MCP for Grafana Cloud only.
  • We agree in writing which authentication path applies, OAuth 2.1 or a service account token, and which clients will connect.
  • We document which admin roles must be assigned, including Assistant Admin for registered OAuth clients, before work begins.

How we build

  • We deploy the open source server with Docker, Helm or a binary inside your own cluster or hosts, using your Grafana URL and credentials.
  • We configure the service account token scope and the server transport settings to match the access level your reviewers approve.
  • We test the setup for prompt injection, tool permissions, credential handling and exposure of dashboards and datasources before rollout.

How we hand over

  • You receive written configuration records, including deployment files, role assignments and the tools each client is allowed to use.
  • You receive a findings report with fixes and a retest, so your security team can review the evidence against its own requirements.
  • Operating runbooks explain how admins approve clients, revoke connections and review what the connected agents accessed.

How we support

  • Engagements are fixed-scope, so changes after handover go through a new written scope.
  • Ongoing support, upgrades and continuous testing are available as a retainer for teams that add clients or Grafana versions.
  • We help you confirm vendor settings with Grafana Labs and your own environment when documentation leaves a question open.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.