# Grafana Cloud (hosted)

> Grafana Labs' hosted MCP for Grafana Cloud: OAuth sign-in with read, query and write scopes, plus Grafana Assistant investigations.

[Canonical HTML page](https://top-mcps.com/mcp/grafana-cloud) · [server.json](https://top-mcps.com/mcp/grafana-cloud.json) · [methodology](https://top-mcps.com/about/methodology)

## Install

### Claude Desktop — `claude_desktop_config.json`

Claude Desktop launches stdio servers, so mcp-remote bridges to the hosted endpoint and opens the sign-in in your browser. On Pro, Max, Team and Enterprise you can skip the file: Settings → Connectors → Add custom connector → https://mcp.grafana.com/mcp. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```json
{
  "mcpServers": {
    "grafana-cloud": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.grafana.com/mcp"
      ]
    }
  }
}
```

### Claude Code — `CLI or .mcp.json`

Then run /mcp inside Claude Code to finish the sign-in. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```shell
claude mcp add --transport http grafana-cloud https://mcp.grafana.com/mcp
```

### Cursor — `.cursor/mcp.json`

Global path: ~/.cursor/mcp.json. Cursor shows "Needs login" once it connects — click it to authorize. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```json
{
  "mcpServers": {
    "grafana-cloud": {
      "url": "https://mcp.grafana.com/mcp"
    }
  }
}
```

### VS Code — `.vscode/mcp.json`

VS Code uses the "servers" key. Run MCP: List Servers → Start Server and allow the sign-in. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```jsonc
{
  "servers": {
    "grafana-cloud": {
      "type": "http",
      "url": "https://mcp.grafana.com/mcp"
    }
  }
}
```

### Windsurf — `~/.codeium/windsurf/mcp_config.json`

Windsurf uses "serverUrl" for hosted servers. Open via Cascade → hammer icon → Configure. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```json
{
  "mcpServers": {
    "grafana-cloud": {
      "serverUrl": "https://mcp.grafana.com/mcp"
    }
  }
}
```

### Cline — `cline_mcp_settings.json`

Bridged through mcp-remote. Open via the Cline sidebar → MCP Servers → Edit. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```json
{
  "mcpServers": {
    "grafana-cloud": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.grafana.com/mcp"
      ]
    }
  }
}
```

### Continue — `~/.continue/config.json`

Continue takes the hosted URL directly in the transport block. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```json
{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "streamable-http",
          "url": "https://mcp.grafana.com/mcp"
        }
      }
    ]
  }
}
```

### Codex CLI — `CLI`

Codex detects OAuth support and opens the browser to authorize. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```shell
codex mcp add grafana-cloud --url https://mcp.grafana.com/mcp
```

### Zed — `~/.config/zed/settings.json`

Bridged through mcp-remote under "context_servers". Settings live-reload on save. Authorization happens in the browser on first use (OAuth); no token goes in the config file.

```jsonc
{
  "context_servers": {
    "grafana-cloud": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "mcp-remote",
          "https://mcp.grafana.com/mcp"
        ]
      }
    }
  }
}
```

### ChatGPT — `ChatGPT → Settings → Connectors (remote URL)`

Paste this into Settings → Connectors → Add custom connector. Requires ChatGPT Pro / Team / Enterprise / Edu with Developer mode enabled.

```json
{
  "name": "Grafana Cloud (hosted)",
  "transport": "http",
  "url": "https://mcp.grafana.com/mcp"
}
```

## At a glance

- **Maintainer:** Grafana Labs
- **Transport:** Streamable HTTP
- **Auth model:** OAuth 2.1
- **Required secrets:** None
- **Supported clients:** Claude, Claude Code, Cursor, VS Code, Windsurf, Goose, Grafana Cloud
- **Latest version:** remote
- **Ships in official plugins:** [grafana-cloud-mcp](https://github.com/grafana/ai-marketplace/tree/main/plugins/grafana-cloud-mcp) (Claude plugin directory, install: `/plugin install grafana-cloud-mcp@claude-plugins-official`)
- **Evidence:** live probe 2026-11-10: https://mcp.grafana.com/mcp answers 401 with resource metadata at /.well-known/oauth-protected-resource/mcp (scopes grafana:read, grafana:query, grafana:write); protocol revision and statelessness not observable without a Grafana Cloud sign-in; tools from the Grafana Cloud MCP docs page (71 listed, Tempo tools proxied on top); plugin: grafana/ai-marketplace plugins/grafana-cloud-mcp 0.3.1 .mcp.json type http, listed in anthropics/claude-plugins-official marketplace.json at dceb15d
- **Last verified:** 2026-11-10
- **Score:** 58/100 (rubric 2027-01 — see https://top-mcps.com/about/methodology)
- **Homepage:** https://grafana.com/docs/grafana-cloud/machine-learning/assistant/configure/cloud-mcp/

## Tools & permissions

Showing 15 of 71 tools the server reported on `tools/list`. The rest exist and are not listed here.

| Tool | Description | Args | Side effects |
|------|-------------|------|--------------|
| `search_dashboards` | Search dashboards. | `—` | read |
| `get_dashboard_summary` | Summarize a dashboard without its full JSON. | `—` | read |
| `update_dashboard` | Create or update a dashboard (Write). | `—` | write |
| `list_datasources` | List datasources. | `—` | read |
| `query_prometheus` | Run a PromQL query. | `—` | read |
| `query_loki_logs` | Run a LogQL query. | `—` | read |
| `query_pyroscope` | Query profiles. | `—` | read |
| `alerting_manage_rules` | Read alert rules, or change them with Write. | `—` | write |
| `list_incidents` | List incidents. | `—` | read |
| `create_incident` | Create an incident (Write). | `—` | write |
| `get_current_oncall_users` | Who is on call now. | `—` | read |
| `generate_deeplink` | Link to a dashboard, panel or Explore view. | `—` | read |
| `get_panel_image` | Render a panel as an image. | `—` | read |
| `ask_assistant` | Ask Grafana Assistant a question (Write). | `—` | write |
| `create_investigation` | Start a Grafana Assistant investigation (Write). | `—` | write |

## Security & scope

- **Access scope:** read-write
- **Sandbox:** Hosted by Grafana Labs. Acts as the signed-in user under Grafana RBAC, within the read, query and write scopes granted on the consent page.
- **Gotchas:**
  - A write grant reaches dashboards, alert rules, incidents and annotations immediately; leave Write unchecked until a read-only connection has proven useful.
  - Query scope runs raw SQL and similar queries against datasources such as Athena and Snowflake, which can be billed by the datasource itself.
  - The server is closed-source and hosted; tools change as Grafana adds capabilities, so the table below is a snapshot.

## Quick answer

**What it does.** Exposes Grafana Cloud over Streamable HTTP: dashboard search, summaries and updates; datasource listing; Prometheus, Loki, Pyroscope, Athena, ClickHouse, CloudWatch, Elasticsearch, InfluxDB and Snowflake queries; alerting rules and routing; annotations; incidents; OnCall schedules and alert groups; deeplinks and panel images; and Grafana Assistant (ask_assistant, investigations).

**Best for:**
- Incident investigation on Grafana Cloud
- Read-only observability access under OAuth
- Handing an open question to Grafana Assistant
- Querying Prometheus, Loki and Pyroscope from one server
- Teams that will not issue service-account tokens to agents

**Not for:**
- Self-hosted Grafana
- Stacks without Grafana Assistant
- Clients that only speak SSE (Streamable HTTP only)
- Cost-sensitive teams: MCP users count as Assistant active users

## Recipes

### Explain a firing alert with metrics and logs

```
In my Grafana Cloud stack, find the alert rule that fired most recently for the checkout service. Query the related Prometheus error-rate metric and the Loki logs for the 30 minutes around it, give me a deeplink to the relevant dashboard panel, and summarize the likely cause. Do not change any alert rules or dashboards.
```

_Tested with: Claude Code, Cursor, VS Code_

## Description

Grafana Labs runs a hosted MCP server for Grafana Cloud at `https://mcp.grafana.com/mcp`. The user signs in through the browser, picks a stack and grants read, query or write access on a consent page; the agent then searches dashboards, queries Prometheus, Loki, Pyroscope and SQL datasources, reads alert rules, incidents and OnCall schedules, renders panels, and hands open-ended questions to Grafana Assistant. Nothing runs locally and no service-account token sits in a config file. It is the server in Grafana's grafana-cloud-mcp plugin in the Claude plugin directory.

## Why it matters

The open-source Grafana server needs a service-account token whose scope you manage by hand. The hosted one acts as the signed-in user under Grafana RBAC, and the consent page splits read, query and write, so a read-only connection is one unchecked box rather than a custom token.

## Key features

- Hosted by Grafana Labs - nothing to install
- OAuth 2.1; token lasts 1 hour, refreshes for 30 days
- Read, Query and Write granted separately at consent
- About 70 documented tools across dashboards, datasources, alerting, incidents and OnCall
- Grafana Assistant questions and investigations
- Bundled by the grafana-cloud-mcp Claude plugin

## FAQ

### How is this different from the Grafana MCP server listed here?

Both are Grafana Labs'. This one is hosted, works only with Grafana Cloud, signs in with OAuth and adds Grafana Assistant tools. The open-source grafana/mcp-grafana runs locally or in your cluster with a service-account token, works with self-hosted Grafana 9.0 and later, and is the one to choose when the stack is not on Grafana Cloud.

### What does each access level allow?

Read is always granted: dashboards, alerts, incidents and datasource queries. Query adds raw-query tools such as query_athena and query_snowflake. Write lets the agent create and change dashboards, alert rules, incidents and annotations, and ask Grafana Assistant questions. Write needs the Assistant Admin role or the matching permission; uncheck it on the consent page for a read-only connection.

### Who can connect?

A Grafana Cloud user with the Assistant Cloud MCP User role or the grafana-assistant-app.cloud-mcp:access permission; Editor and above have it by default. An administrator must have accepted the Grafana Assistant terms on the stack first.

### What does it cost?

It is part of Grafana Assistant: MCP users count as active users for billing under the stack's plan. Tool calls consume no Assistant tokens unless they invoke an Assistant model, so read-only querying consumes none.

### Is there source code to read?

No. The hosted server's code is not published; the linked documentation and the grafana/ai-marketplace plugin describe how to connect. The open-source Grafana server is a separate project.

## Changelog

- **2026-11-10** — Added alongside the open-source Grafana server: Grafana Labs' hosted server for Grafana Cloud, the one the grafana-cloud-mcp Claude plugin bundles.
