Grafana Cloud MCP リモートMCPサーバー – 公式URL・MCP接続設定・ツール一覧
Grafana Cloud MCP は Grafana Labs が提供するリモートMCPサーバー(公式運営、カテゴリ:クラウド・インフラ・DevOps)です。エンドポイント https://mcp.grafana.com/mcp を通じて、AIエージェントが直接呼び出せる 47 個の構造化ツールを提供します。
このページでは、公式リモートエンドポイント、トランスポート、認証方式、全ツールスキーマ、リアルタイムの死活監視・セキュリティ監査結果を掲載し、Cursor・Claude Code・VS Code・ChatGPT など 10 のクライアントへのMCP接続手順を解説します。
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"grafana": {
"url": "https://mcp.grafana.com/mcp"
}
}
}claude mcp add --transport http grafana https://mcp.grafana.com/mcp
Or add to .vscode/mcp.json:
{
"servers": {
"grafana": {
"type": "http",
"url": "https://mcp.grafana.com/mcp"
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.grafana.com/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"grafana": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.grafana.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"grafana": {
"serverUrl": "https://mcp.grafana.com/mcp"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"grafana": {
"url": "https://mcp.grafana.com/mcp"
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.grafana] url = "https://mcp.grafana.com/mcp"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"grafana": {
"type": "streamableHttp",
"url": "https://mcp.grafana.com/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"grafana": {
"httpUrl": "https://mcp.grafana.com/mcp"
}
}
}🧰 Grafana Cloud のMCPツールとスキーマ(47)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| search_dashboards ~34 tok | 🟢 Read | Search Grafana dashboards by title or tag. | — |
| get_dashboard_by_uid ~33 tok | 🟢 Read | Get a dashboard's full JSON model. | — |
| get_dashboard_summary ~34 tok | 🟢 Read | Get a compact summary of a dashboard. | — |
| get_dashboard_property ~38 tok | 🟢 Read | Extract a specific JSONPath value from a dashboard. | — |
| update_dashboard ~33 tok | 🟠 Write | Create or update a Grafana dashboard. | — |
| get_dashboard_panel_queries ~35 tok | 🟢 Read | Get queries used by dashboard panels. | — |
| list_datasources ~30 tok | 🟢 Read | List configured datasources. | — |
| get_datasource_by_uid ~31 tok | 🟢 Read | Get a datasource by UID. | — |
| get_datasource_by_name ~31 tok | 🟢 Read | Get a datasource by name. | — |
| query_prometheus ~31 tok | 🟢 Read | Query a Prometheus datasource. | — |
| list_prometheus_metric_names ~34 tok | 🟢 Read | List Prometheus metric names. | — |
| list_prometheus_metric_metadata ~35 tok | 🟢 Read | List Prometheus metric metadata. | — |
| list_prometheus_label_names ~33 tok | 🟢 Read | List Prometheus label names. | — |
| list_prometheus_label_values ~35 tok | 🟢 Read | List values of a Prometheus label. | — |
| query_loki_logs ~32 tok | 🟢 Read | Query logs from a Loki datasource. | — |
| list_loki_label_names ~30 tok | 🟢 Read | List Loki label names. | — |
| list_loki_label_values ~32 tok | 🟢 Read | List values of a Loki label. | — |
| query_loki_stats ~30 tok | 🟢 Read | Query Loki index statistics. | — |
| list_incidents ~29 tok | 🟢 Read | List Grafana incidents. | — |
| create_incident ~30 tok | 🟠 Write | Create a Grafana incident. | — |
| add_activity_to_incident ~34 tok | 🟠 Write | Add an activity note to an incident. | — |
| resolve_incident ~30 tok | 🟠 Write | Resolve a Grafana incident. | — |
| list_alert_rules ~30 tok | 🟢 Read | List Grafana alert rules. | — |
| get_alert_rule_by_uid ~31 tok | 🟢 Read | Get an alert rule by UID. | — |
| create_alert_rule ~31 tok | 🟠 Write | Create a Grafana alert rule. | — |
| update_alert_rule ~31 tok | 🟠 Write | Update a Grafana alert rule. | — |
| delete_alert_rule ~31 tok | 🔴 Destructive | Delete a Grafana alert rule. | — |
| list_contact_points ~31 tok | 🟢 Read | List alert contact points. | — |
| create_contact_point ~32 tok | 🟠 Write | Create an alert contact point. | — |
| list_oncall_schedules ~32 tok | 🟢 Read | List Grafana OnCall schedules. | — |
| get_oncall_shift ~28 tok | 🟢 Read | Get an OnCall shift. | — |
| get_current_oncall_users ~33 tok | 🟢 Read | List users currently on call. | — |
| list_teams ~27 tok | 🟢 Read | List Grafana teams. | — |
| list_users_by_org ~31 tok | 🟢 Read | List users in the organization. | — |
| query_tempo_search ~29 tok | 🟢 Read | Search Tempo traces. | — |
| query_tempo_trace ~30 tok | 🟢 Read | Fetch a Tempo trace by ID. | — |
| list_pyroscope_profile_types ~34 tok | 🟢 Read | List Pyroscope profile types. | — |
| list_pyroscope_label_names ~33 tok | 🟢 Read | List Pyroscope label names. | — |
| list_pyroscope_label_values ~33 tok | 🟢 Read | List Pyroscope label values. | — |
| fetch_pyroscope_profile ~34 tok | 🟢 Read | Fetch a Pyroscope flamegraph profile. | — |
| get_current_time ~32 tok | 🟢 Read | Get the current Grafana server time. | — |
| search_folders ~29 tok | 🟢 Read | Search Grafana folders. | — |
| create_folder ~29 tok | 🟠 Write | Create a Grafana folder. | — |
| list_sift_investigations ~32 tok | 🟢 Read | List Sift investigations. | — |
| get_sift_investigation ~33 tok | 🟢 Read | Get a Sift investigation result. | — |
| get_sift_analysis ~31 tok | 🟢 Read | Get a Sift analysis finding. | — |
| get_assertions_summary ~34 tok | 🟢 Read | Get service health assertions summary. | — |
🛡️ セキュリティ評価・品質・コンテキスト監査
- No prompt-injection or hidden-character anomalies detected in tool descriptions
- Streamable HTTP primary endpoint (current 2025-03-26 transport)
- OAuth 2.1 with PKCE S256 enforced
- Official first-party endpoint operated by the vendor
- Manually verified by RemoteMCP.net
🔐 OAuth 2.1 とセキュリティ
- 認証方式
- OAuth 2.1
- 動的クライアント登録(DCR)
- ✅ 対応
- PKCE S256
- ✅ 対応
- 保護リソースメタデータ
- https://mcp.grafana.com/.well-known/oauth-protected-resource
📡 公式リモートエンドポイントとトランスポート
リモートエンドポイント https://mcp.grafana.com/mcp は Streamable HTTP(2025-03-26 仕様) を採用。Streamable HTTP は単一の POST エンドポイントで JSON-RPC の双方向通信を完結する現行推奨トランスポートで、npx mcp-remote ブリッジなしに Claude・Cursor・VS Code などへ URL だけでMCP接続できます。
接続前にエンドポイントを オンライン MCP Inspector に貼り付けて initialize / tools/list のハンドシェイクを確認することを推奨します。
🔐 認証・権限フロー
認証方式は OAuth 2.1 です。初回接続時にクライアントが 401 チャレンジを受け取り、WWW-Authenticate ヘッダーから RFC 9728 の保護リソースメタデータを解決。続けて認可サーバー発見(RFC 8414)、動的クライアント登録(DCR)、PKCE S256 によるブラウザ認可が自動で行われます。ブラウザで一度承認するだけで、キーの手動貼り付けは不要です。
🛡️ コンテキスト消費とセキュリティ監査
このサーバーには現在 47 個のツールが登録されており、定義の合計は約 1515 トークン。リクエストごとにモデルのシステムプロンプトへ注入されます。セキュリティ評価は A+(公式運営ソース)。ツール名とスキーマが簡潔なほどコンテキストウィンドウへの「税」は低くなります。feecalculator.app で呼び出しあたりのコストも試算できます。
🧩 主要クライアントへのMCP接続
Grafana Cloud MCP について、Cursor / Claude Code / VS Code / ChatGPT / Windsurf / Kiro / Codex / Cline / Gemini など 10 クライアント向けの設定を自動生成しています。ワンクリック deeplink、claude mcp add コマンド、JSON / TOML スニペットから選べます。代表的なツール:search_dashboards、get_dashboard_by_uid、get_dashboard_summary、get_dashboard_property、update_dashboard など。
📖 Grafana Cloud の詳細
Grafana Cloud MCP — Remote MCP Server
Grafana's remote MCP is the same toolset as the open-source mcp-grafana server but hosted — agents can search dashboards, run PromQL and LogQL, page on-call schedules and declare incidents, all scoped by Grafana Cloud RBAC.
Official Grafana Cloud MCP Endpoint & Transport Architecture
- Endpoint URL:
https://mcp.grafana.com/mcp - Transport: Streamable HTTP
Streamable HTTP is the current MCP transport (2025-03-26 spec): a single URL accepts JSON-RPC POSTs and may stream responses over SSE, so one endpoint serves both simple and streaming workloads. Grafana Cloud MCP does not publish a separate legacy SSE endpoint, so your client must speak Streamable HTTP.
Authentication, Scopes & Permission Boundaries
Grafana Cloud MCP uses OAuth 2.1 — the first request returns a 401 Unauthorized challenge with a WWW-Authenticate header pointing at the authorization metadata. Compliant clients (Cursor, Claude, VS Code, ChatGPT) handle the whole flow — PKCE and Dynamic Client Registration, so no manual client setup is needed — and simply open a browser consent screen.
All 6 cataloged tools are read-only — Grafana Cloud MCP cannot mutate your account data, which makes it safe to connect broadly.
Common Troubleshooting & Connection Tips
- 401 Unauthorized on connect — that's expected; the server is OAuth-protected. Let your client complete the browser consent flow, or inspect the endpoint in our OAuth debugger to see the exact
WWW-Authenticatechallenge. - "Session expired" / stale
Mcp-Session-Id— just re-sendinitialize; stateless clients can ignore session headers entirely. - Backed by the open-source grafana/mcp-grafana codebase.
- Datasource access depends on your Grafana Cloud stack's permissions.
🚀 Grafana Cloud MCP リモートMCPへの接続方法
- リモートエンドポイントを取得 — 公式エンドポイント https://mcp.grafana.com/mcp をコピーします。
- クライアント設定に追加 — Cursor の mcp.json / Claude Code CLI / 各クライアントに URLを追加します(下記クライアント別ガイド参照)。
- 認可して検証 — ブラウザで OAuth 認可を完了後、当サイトの Inspector で initialize と tools/list を実行して接続を確認します。
🔌 Grafana Cloud × クライアント別MCP接続ガイド
❓ よくある質問
Grafana Cloud MCP のリモートMCPサーバーは公式ですか?
このエントリは「公式運営」と表示されています。エンドポイントは Grafana Labs 公式が運営しています。掲載エンドポイントはすべて実際の MCP initialize ハンドシェイクで検証済みです。
Claude / Cursor で Grafana Cloud MCP にMCP接続するには?
リモートエンドポイント https://mcp.grafana.com/mcp をコピーします。Claude Code では claude mcp add --transport http grafana https://mcp.grafana.com/mcp を実行。Cursor ではワンクリック deeplink か ~/.cursor/mcp.json に { "mcpServers": { "grafana": { "url": "https://mcp.grafana.com/mcp" } } } を追加します。初回呼び出し時に OAuth 2.1 の認可画面が自動で開きます。
接続時に 401 が返る/キーを要求される場合は?
401 は OAuth 2.1 による正常なチャレンジです。クライアントが RFC 9728 メタデータに従って自動的に認可を行います。認可が途中で止まる場合は OAuth 2.1 Debugger で PRM / DCR / CORS の設定を確認してください。
ローカル stdio MCP とリモート MCP の違いは?
ローカル MCP は npx / uvx で起動する stdio 子プロセスで、ローカルランタイムが必要で API キーを平文で設定ファイルに書きます。リモート MCP は Grafana Labs がホストする HTTPS エンドポイントで、インストール不要・OAuth 2.1 対応・同一 URL をデスクトップとモバイルで共用できます。詳しくは ローカル vs リモート MCP 比較 をご覧ください。