claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 1h ago
スキルOfficialmonitoring

📊grafana-cloud-mcp-tools

プラグイン
grafana-cloud-mcp

説明

Grafana Cloud MCP サーバーに接続し、効果的に利用するための説明書です。セットアップ、OAuth 認可(サードパーティサービスの利用許可)、ツールの種類、読み書きアクセス権限、コンテキストウィンドウ管理(AI が処理できる情報量)のベストプラクティスをカバーしています。 次のような場合に使用: ユーザーが Grafana Cloud MCP のセットアップを始めたい、どのツールを使えばよいか判断が必要、またはアクセス権限の仕組みを理解したい場合

原文を表示

Connect to and use the Grafana Cloud MCP server effectively. 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, needs guidance on which tool to use, or wants to understand access scopes.

ユースケース

  • Grafana Cloud MCPのセットアップを始めたい
  • 使用できるツールを判断する必要がある
  • アクセス権限の仕組みを理解したい
  • OAuth認可を設定する

本文(日本語訳)

Grafana Cloud MCP サーバー

Grafana Cloud 向けの60以上のツールを、ストリーム処理可能な HTTP 通信で提供するホストサーバー。OAuth 2.1 認証に対応しています。

前提条件

  • Grafana Cloud アカウント(自社運用のユーザーはオープンソース版の MCP サーバーをご利用ください)
  • Assistant Cloud MCP User ロールまたは grafana-assistant-app.cloud-mcp:access 権限(編集者以上のロールであればデフォルトで付与されます)
  • 管理者が 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 — ダッシュボード、パネル、Explore クエリ用の直接リンク 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 サーバーが Tempo データソースのツール(TraceQL クエリや属性検出など)をプロキシします。

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 — データソースタイプの例示クエリを取得

ベストプラクティス

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

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

クエリ実行

  • Prometheus クエリ時は、結果の過剰化を防ぐため常に合理的な時間範囲を指定してください。
  • Loki クエリ時は、広範なクエリより、ラベルマッチャーを使った絞り込まれた LogQL セレクタを優先してください。
  • クエリを記述する前に、データソース検出ツール(list_datasourceslist_prometheus_metric_names)を使用してください。

セキュリティ

  • ユーザーから明確に要求された場合を除き、書き込み操作(update_dashboardcreate_incidentalerting_manage_rules)を避けてください。
  • OAuth 認証時に書き込みアクセスが付与されなかった場合、書き込みツールは利用できません。

アクセスと権限

  • アクセス権はユーザースコープです。エージェントは Grafana RBAC(ロールベースアクセス制御)が付与した権限のみ持ちます。
  • Cloud MCP サーバーを使用するには 編集者 以上のロールが必要です。
  • 書き込みツールは、OAuth 同意画面で付与される grafana: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

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.
  • Editor role or higher is required to use the Cloud MCP server.
  • Write tools require the grafana:write scope, granted during OAuth consent.

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

grafana-cloud-mcp:grafana-cloud-mcp-tools — Anthropic公式 Claude Skill 日本語版