• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLKnowledge Workmonitoring

grafana-cloud-mcp-tools

プラグイン
Grafana Cloud MCP
ソース
GitHub で見る ↗
説明

Grafana Cloud MCP(クラウドベースの監視・分析ツール用プラグイン)サーバーに接続し、自然な言葉での質問や監視分析(システムの稼働状況を調べること)を効果的に行うための機能です。セットアップ、OAuth認可(アクセス権限の付与)、ツールの種類、読み書きアクセス権限の範囲、コンテキストウィンドウ(AIが扱える情報量)管理のベストプラクティスをカバーしています。 **次のような場合に使用:** - Grafana Cloud MCPのセットアップを行いたい - Grafana Assistant(Grafana付属の質問機能)に質問を送りたい - メトリクス(数値データ)、ログ、トレース(処理の流れ)、プロファイル(性能データ)、ダッシュボード(情報表示画面)、アラート、インシデント(障害事象)を調査したい - どのツールを使うべきかについて相談したい - アクセス権限の範囲を理解したい

原文を表示

Connect to and use the Grafana Cloud MCP server effectively, including natural-language Grafana Assistant questions and observability investigations. Covers setup, OAuth authorization, tool categories, read/write access scopes, and best practices for context window management. Use when the user wants to set up Grafana Cloud MCP, ask Grafana Assistant a question, investigate metrics, logs, traces, profiles, dashboards, alerts, or incidents, needs guidance on which tool to use, or wants to understand access scopes.

ユースケース
  • Grafana Cloud MCPのセットアップを行いたい
  • Grafana Assistantに質問を送りたい
  • メトリクスやログ、トレースを調査したい
  • どのツールを使うべきか相談したい
  • アクセス権限の範囲を理解したい
本文(日本語訳)

Grafana Cloud MCP サーバー

Grafana Cloud の 60 以上のツールを提供するホスト型 MCP サーバーで、ストリーム式の HTTP 通信と OAuth 2.1 認可に対応しています。

前提条件

  • Grafana Cloud アカウント(自社運用のユーザーはローカル版の OSS MCP サーバーをご使用ください)
  • Assistant Cloud MCP User ロール、または grafana-assistant-app.cloud-mcp:access 権限が必要です(Editor ロール以上は既定で権限を持ちます)
  • 管理者が Grafana Assistant の利用規約に同意していること

設定

Cloud MCP サーバーは https://mcp.grafana.com/mcp 経由でストリーム式 HTTP 通信で接続します。ローカルのインストールや環境変数は不要です。

セットアップ手順

  1. プラグインが読み込まれるときに、MCP サーバーが自動で接続します。
  2. 画面上の指示に従い、Grafana Cloud の URL を入力し、ブラウザで接続を承認します。
  3. OAuth トークンは 1 時間有効で、30 日間は自動的に更新されます。

読み取り・書き込みアクセス

認可時に、付与する権限を選択できます:

  • 読み取りアクセス: ダッシュボード、アラート、インシデント(事象)の表示、データソースの照会が可能。常に利用可能です。
  • 書き込みアクセス: ダッシュボード、アラート、インシデントの作成・編集が可能。チェックを外すと読み取り専用になります。

組織の管理者は既定で書き込みアクセス権を付与できます。同意画面で書き込みアクセスが無効になっている場合、ユーザーは Assistant Admin ロールが必要です。

ツールのカテゴリ

検索とナビゲーション

  • search_dashboards — クエリ文字列でダッシュボードを検索
  • search_folders — クエリ文字列でフォルダを検索
  • generate_deeplink — ダッシュボード、パネル、クエリ機能のディープリンク URL を生成

ダッシュボードとフォルダ

  • get_dashboard_by_uid — UID によってダッシュボードの完全な JSON を取得
  • get_dashboard_summary — 完全な JSON を含まない簡潔な概要を取得(推奨)
  • get_dashboard_property — JSONPath で特定部分を抽出
  • get_dashboard_panel_queries — パネルクエリをテンプレート変数の置換付きで取得
  • update_dashboard — ダッシュボードを作成または更新(書き込み)
  • create_folder — Grafana フォルダを作成(書き込み)

データソース

  • list_datasources — 設定済みのすべてのデータソースを表示(型でのフィルタリング可)
  • get_datasource — UID または名前で詳細情報を取得

Prometheus

  • list_prometheus_metric_names — 正規表現フィルターで利用可能なメトリクスを検出
  • list_prometheus_metric_metadata — 現在スクレイプ中のメトリクスのメタデータを表示
  • list_prometheus_label_names — ラベル名を表示(系列セレクター指定可)
  • list_prometheus_label_values — 特定ラベルの値を取得
  • query_prometheus — PromQL のインスタント照会または範囲照会を実行
  • query_prometheus_histogram — ヒストグラムのパーセンタイル(分布の百分位数)を照会

Loki

  • list_loki_label_names — ログの利用可能なラベル名を表示
  • list_loki_label_values — 特定ラベルのユニークな値を取得
  • query_loki_logs — LogQL クエリでログエントリまたはメトリック値を取得
  • query_loki_stats — ログストリームの統計情報を取得
  • query_loki_patterns — ログ内の共通パターンを検出・分析

Tempo

Tempo データソースを持つ場合、Cloud MCP サーバーは TraceQL クエリと属性検出を含む Tempo データソースのツールをプロキシします。

Pyroscope

  • list_pyroscope_label_names — プロファイルの利用可能なラベル名を表示
  • list_pyroscope_label_values — 特定ラベルの値を表示
  • list_pyroscope_profile_types — 利用可能なプロファイルタイプを表示
  • query_pyroscope — Pyroscope からプロファイルまたはメトリクスを照会

ClickHouse

  • list_clickhouse_tables — メタデータ付きで利用可能なテーブルを表示
  • describe_clickhouse_table — テーブルのカラムスキーマを取得
  • query_clickhouse — ClickHouse データソースに対して SQL クエリを実行

CloudWatch

  • list_cloudwatch_namespaces — 利用可能な AWS ネームスペースを表示
  • list_cloudwatch_metrics — ネームスペースのメトリクスを表示
  • list_cloudwatch_dimensions — メトリクスのディメンション(属性)を表示
  • query_cloudwatch — AWS CloudWatch メトリクスを照会

Elasticsearch

  • query_elasticsearch — Lucene または Query DSL での検索を実行

アラート

  • alerting_manage_rules — アラートルールの表示、フィルタリング、作成、更新(読み取り / 書き込み)
  • alerting_manage_routing — ルーティング設定、通知ポリシー、連絡先を表示(読み取り)

アノテーション

  • get_annotations — ダッシュボード UID、時間範囲、タグでフィルタリングしたアノテーション(注釈)を取得
  • get_annotation_tags — アノテーションのタグを取得(フィルタリング可)
  • create_annotation — 新しいアノテーションを作成(書き込み)
  • update_annotation — 既存アノテーションを更新(書き込み)

インシデント

  • list_incidents — インシデント(事象)を表示(ステータスでのフィルタリング可)
  • get_incident — ID によってインシデントの詳細を取得
  • create_incident — 新しいインシデントを作成(書き込み)
  • add_activity_to_incident — インシデントのタイムラインにメモを追加(書き込み)

OnCall

  • list_oncall_schedules — OnCall スケジュールを表示(チームでのフィルタリング可)
  • get_oncall_shift — シフト(当番)の詳細情報を取得
  • get_current_oncall_users — スケジュールで現在当番中のユーザーを取得
  • list_oncall_teams — OnCall チームを表示
  • list_oncall_users — OnCall ユーザーを表示(フィルタリング可)
  • list_alert_groups — アラートグループをフィルタリング付きで表示
  • get_alert_group — ID で特定のアラートグループを取得

Sift

  • list_sift_investigations — Sift の調査案件を表示
  • get_sift_investigation — UUID で Sift の調査案件を取得
  • get_sift_analysis — 調査案件から特定の分析結果を取得
  • find_error_pattern_logs — Loki ログでエラーパターンの急増箇所を検索(書き込み)
  • find_slow_requests — Tempo データソースで遅いリクエストを検索(書き込み)

その他のツール

  • ask_assistant — Grafana Assistant にプロンプトを送信して完全な回答を取得(書き込み)
  • get_assertions — エンティティのアサーション(状態確認)サマリーを取得
  • get_panel_image — ダッシュボードパネルを PNG 画像としてレンダリング
  • describe_infrastructure — サービスグループの事前構築サマリーを取得
  • get_query_examples — データソース型の例題クエリを取得

ベストプラクティス

Grafana Assistant への質問

  • 自由形式の自然言語リクエスト(「チェックアウトの遅延が急増しているのはなぜか?」「現在のインシデントをまとめて」「このアラートを説明して」など)には、ask_assistant を使用して Grafana Assistant に調査を計画させ、根拠のある回答を得てください。ask_assistant は書き込みスコープで、grafana:write が必要です。
  • OAuth 認可時に書き込みアクセスを付与しなかった場合、ask_assistant は使用できません。この場合は対応する読み取り専用ツール(例:describe_infrastructure、get_assertions、query_prometheus、query_loki_logs、list_incidents)を使用し、自然言語アシスタント機能には書き込みスコープが必要であることをユーザーに伝えてください。再度認可する際に書き込みアクセスが付与されるのは、ユーザーが Assistant Admin ロールまたは grafana-assistant-app.cloud-mcp.scope:write 権限を持つ場合のみです。それ以外は Grafana 組織の管理者による許可が必要です。
  • 既知のクエリ、ダッシュボード、アラート、インシデントなど、特定の対象の検索には、ask_assistant 経由ではなく対応するツールを直接呼び出してください。

コンテキストウィンドウの管理

  • 完全なダッシュボード JSON でコンテキストを消費しないよう、get_dashboard_by_uid ではなく get_dashboard_summary を使用してください。
  • 必要な部分だけを抽出するために、JSONPath を使用した get_dashboard_property を使用してください。
  • UID で取得する前に、search_dashboards を使用してダッシュボードを検出してください。
  • Grafana データを提示する際は、ナビゲーション手順を説明するのではなく、generate_deeplink でクリック可能な URL を提供してください。

クエリ実行

  • Prometheus をクエリするときは、常に適切な時間範囲を指定して結果が膨大にならないようにしてください。
  • Loki をクエリするときは、広範なクエリではなく、ラベルマッチャー付きの限定的な LogQL セレクターを優先してください。
  • クエリを作成する前に、データソース検出ツール(list_datasources、list_prometheus_metric_names)を使用してください。

セキュリティ

  • ユーザーから明示的に指示されない限り、書き込み操作(update_dashboard、create_incident、alerting_manage_rules)は避けてください。
  • OAuth 認可時に書き込みアクセスを付与しなかった場合、書き込みツールは使用できません。

アクセスと権限

  • アクセスはユーザースコープです。エージェントは Grafana RBAC(ロールベースアクセス制御)があなたに付与している権限のみを持ちます。
  • Cloud MCP サーバーの使用には、Assistant Cloud MCP User ロールまたは grafana-assistant-app.cloud-mcp:access 権限が必要です。Editor 以上は既定で権限を持ち、その他のロールには明示的に権限を付与できます。
  • 書き込みツールには OAuth 認可時に付与される grafana:write スコープが必要です。そのスコープを付与することは Grafana RBAC で制御されており、ユーザーは Assistant Admin ロールまたは grafana-assistant-app.cloud-mcp.scope:write 権限を持つ必要があります。読み取り専用アクセスでは不要です。
原文(English)を表示

Grafana Cloud MCP Server

Hosted MCP server providing 60+ Grafana Cloud tools via Streamable HTTP transport with OAuth 2.1 authorization.

Prerequisites

  • Grafana Cloud account (self-hosted users should use the local OSS MCP server instead)
  • Assistant Cloud MCP User role or grafana-assistant-app.cloud-mcp:access permission (Editor role or higher has this by default)
  • An administrator must have accepted the Grafana Assistant terms and conditions

Configuration

The Cloud MCP server connects via https://mcp.grafana.com/mcp using Streamable HTTP transport. No local installation or environment variables are required.

Setup steps

  1. The MCP server connects automatically when the plugin loads.
  2. When prompted, enter your Grafana Cloud URL and authorize the connection in your browser.
  3. Your OAuth token is valid for 1 hour and refreshes automatically for 30 days.

Read and write access

When authorizing, you choose which permissions to grant:

  • Read access: View dashboards, alerts, incidents, and query data sources. Always available.
  • Write access: Create and modify dashboards, alerts, and incidents. You can uncheck this to grant read-only access.

Organization Admins can grant write access by default. If write access is disabled on the consent page, the user needs the Assistant Admin role.

Tool categories

Search and navigation

  • search_dashboards — search for dashboards by query string
  • search_folders — search for folders by query string
  • generate_deeplink — generate deeplink URLs for dashboards, panels, and Explore queries

Dashboards and folders

  • get_dashboard_by_uid — retrieve the complete dashboard JSON by UID
  • get_dashboard_summary — compact summary without full JSON (preferred)
  • get_dashboard_property — extract specific parts via JSONPath
  • get_dashboard_panel_queries — retrieve panel queries with template variable substitution
  • update_dashboard — create or update a dashboard (Write)
  • create_folder — create a Grafana folder (Write)

Datasources

  • list_datasources — list all configured data sources with optional type filtering
  • get_datasource — get detailed information by UID or name

Prometheus

  • list_prometheus_metric_names — discover available metrics with regex filtering
  • list_prometheus_metric_metadata — list metadata about currently scraped metrics
  • list_prometheus_label_names — list label names with optional series selector
  • list_prometheus_label_values — get values for a specific label
  • query_prometheus — execute PromQL instant or range queries
  • query_prometheus_histogram — query histogram percentiles

Loki

  • list_loki_label_names — list available label names in logs
  • list_loki_label_values — get unique values for a specific label
  • query_loki_logs — execute LogQL queries for log entries or metric values
  • query_loki_stats — get statistics about log streams
  • query_loki_patterns — detect and analyze common log patterns

Tempo

If you have Tempo data sources, the Cloud MCP server proxies tools from the Tempo data source, including TraceQL queries and attribute discovery.

Pyroscope

  • list_pyroscope_label_names — list available label names in profiles
  • list_pyroscope_label_values — list values for a specific label
  • list_pyroscope_profile_types — list available profile types
  • query_pyroscope — query profiles or metrics from Pyroscope

ClickHouse

  • list_clickhouse_tables — list available tables with metadata
  • describe_clickhouse_table — get column schema for a table
  • query_clickhouse — execute SQL queries against ClickHouse datasources

CloudWatch

  • list_cloudwatch_namespaces — list available AWS namespaces
  • list_cloudwatch_metrics — list metrics for a namespace
  • list_cloudwatch_dimensions — list dimension keys for a metric
  • query_cloudwatch — query AWS CloudWatch metrics

Elasticsearch

  • query_elasticsearch — execute Lucene or Query DSL searches

Alerting

  • alerting_manage_rules — list, filter, create, and update alert rules (Read / Write)
  • alerting_manage_routing — view routing configuration, notification policies, contact points (Read)

Annotations

  • get_annotations — fetch annotations filtered by dashboard UID, time range, or tags
  • get_annotation_tags — get annotation tags with optional filtering
  • create_annotation — create a new annotation (Write)
  • update_annotation — update an existing annotation (Write)

Incidents

  • list_incidents — list incidents with optional status filtering
  • get_incident — get full incident details by ID
  • create_incident — create a new incident (Write)
  • add_activity_to_incident — add a note to an incident's timeline (Write)

OnCall

  • list_oncall_schedules — list OnCall schedules with optional team filtering
  • get_oncall_shift — get detailed shift information
  • get_current_oncall_users — get users currently on-call for a schedule
  • list_oncall_teams — list OnCall teams
  • list_oncall_users — list OnCall users with optional filtering
  • list_alert_groups — list alert groups with filtering
  • get_alert_group — get a specific alert group by ID

Sift

  • list_sift_investigations — list Sift investigations
  • get_sift_investigation — retrieve a Sift investigation by UUID
  • get_sift_analysis — retrieve a specific analysis from an investigation
  • find_error_pattern_logs — search Loki logs for elevated error patterns (Write)
  • find_slow_requests — search Tempo datasources for slow requests (Write)

Other tools

  • ask_assistant — send a prompt to Grafana Assistant and get the full reply (Write)
  • get_assertions — get assertion summary for an entity
  • get_panel_image — render a dashboard panel as a PNG image
  • describe_infrastructure — retrieve pre-built summaries of service groups
  • get_query_examples — get example queries for datasource types

Best practices

Grafana Assistant questions

  • For open-ended, natural-language requests ("Why is checkout latency spiking?", "Summarize the current incident", "Explain this alert"), use ask_assistant to let Grafana Assistant plan the investigation and return a grounded reply. ask_assistant is write-scoped and requires grafana:write.
  • If write access was not granted during OAuth authorization, ask_assistant is unavailable. Fall back to the appropriate read-only tools (for example describe_infrastructure, get_assertions, query_prometheus, query_loki_logs, list_incidents) and tell the user that the natural-language Assistant tool needs write scope. Re-authorizing only grants write if the user has the Assistant Admin role or the grafana-assistant-app.cloud-mcp.scope:write permission; otherwise a Grafana organization administrator must grant it first.
  • For specific, targeted lookups (a known query, dashboard, alert, or incident), call the corresponding tool directly rather than routing through ask_assistant.

Context window management

  • Use get_dashboard_summary instead of get_dashboard_by_uid to avoid consuming context with full dashboard JSON.
  • Use get_dashboard_property with JSONPath to extract only the specific parts you need.
  • Use search_dashboards to discover dashboards before retrieving by UID.
  • When presenting Grafana data, use generate_deeplink to provide clickable URLs rather than describing navigation steps.

Querying

  • When querying Prometheus, always specify a reasonable time range to avoid overwhelming results.
  • When querying Loki, prefer targeted LogQL selectors with label matchers over broad queries.
  • Use datasource discovery tools (list_datasources, list_prometheus_metric_names) before writing queries.

Safety

  • Avoid write operations (update_dashboard, create_incident, alerting_manage_rules) unless explicitly asked by the user.
  • If write access was not granted during OAuth authorization, write tools will not be available.

Access and permissions

  • Access is user-scoped: the agent has only the permissions your Grafana RBAC grants you.
  • Using the Cloud MCP server requires the Assistant Cloud MCP User role or the grafana-assistant-app.cloud-mcp:access permission. Editor and higher have this by default; other roles can be granted it explicitly.
  • Write tools require the grafana:write OAuth scope, granted during OAuth consent. Granting that scope is itself gated by Grafana RBAC: the user needs the Assistant Admin role or the grafana-assistant-app.cloud-mcp.scope:write permission to authorize a write-scoped connection. Read-only access does not require it.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。