Skip to main content
Glama

YouTube Vision MCP サーバー ( youtube-vision )

NPMバージョン ライセンス: MIT 鍛冶屋のバッジ

Google Gemini Vision API を利用して YouTube 動画と連携する MCP(Model Context Protocol)サーバー。ユーザーは YouTube 動画から説明、要約、質問への回答、重要な場面の抽出などを取得できます。

特徴

  • Gemini Vision API を使用して YouTube ビデオを分析します。

  • さまざまなインタラクションに対応する複数のツールを提供します。

    • 一般的な説明またはQ&A( ask_about_youtube_video )

    • 要約( summarize_youtube_video )

    • キーモーメント抽出 ( extract_key_moments )

  • generateContentをサポートする利用可能な Gemini モデルを一覧表示します。

  • 環境変数を介して構成可能な Gemini モデル。

  • stdio (標準入出力) を介して通信します。

Related MCP server: YouTube Insights MCP Server

前提条件

このサーバーを使用する前に、次のものを用意してください。

  • **Node.js:**バージョン18以上を推奨。nodejs.orgからダウンロードできます。

  • Google Gemini API キー: Google AI Studioまたは Google Cloud Console から API キーを取得します。

インストールと使用方法

このサーバーを使用するには、主に 2 つの方法があります。

Smithery経由でインストール

Smithery経由で Claude Desktop 用の youtube-vision-mcp を自動的にインストールするには:

npx -y @smithery/cli install @minbang930/youtube-vision-mcp --client claude

オプション 1: npx を使用する (簡単な使用に推奨)

このサーバーを実行する最も簡単な方法はnpxを使用することです。これにより、永続的なインストールを必要とせずにパッケージをダウンロードして実行できます。

MCP クライアントの設定ファイル (Claude、VSCode など) 内で構成できます。

{
  "mcpServers": {
    "youtube-vision": {
      "command": "npx",
      "args": [
        "-y",
        "youtube-vision"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
        "GEMINI_MODEL_NAME": "gemini-2.0-flash"
      }
    }
  }
}

"YOUR_GEMINI_API_KEY"実際の Google Gemini API キーに置き換えます。

オプション2: 手動インストール(ソースから)

コードを変更したり、ソースから直接実行したりする場合は、次の手順を実行します。

  1. リポジトリをクローンします。

    git clone https://github.com/minbang930/Youtube-Vision-MCP.git
    cd youtube-vision
  2. 依存関係をインストールします:

    npm install
  3. プロジェクトをビルドします。

    npm run build
  4. **構成と実行:**その後、コンパイルされたコードをnode dist/index.jsを使用して直接実行できます ( GEMINI_API_KEY環境変数として設定されていることを確認してください)。または、MCP クライアントを構成して、 nodeコマンドとdist/index.jsへの絶対パスを使用してコードを実行し、npx の例に示すようにenv設定を介して API キーを渡します。

構成

サーバーは次の環境変数を使用します。

  • GEMINI_API_KEY (必須): Google Gemini API キー。

  • GEMINI_MODEL_NAME (オプション):使用するGeminiモデル(例: gemini-1.5-flash )。デフォルトはgemini-2.0-flashです。**重要:**本番環境または商用利用の場合は、「試験運用版」または「プレビュー版」とマークされていないモデルバージョンを選択してください。

環境変数は、MCP クライアントの設定ファイル (例: mcp_settings.json ) のenvセクションで設定する必要があります。

利用可能なツール

1. ask_about_youtube_video

ビデオに関する質問に答えます。質問がない場合は、一般的な説明を提供します。

  • 入力:

    • youtube_url (文字列、必須): YouTube ビデオの URL。

    • question (文字列, オプション): 動画について尋ねる具体的な質問。省略した場合は、一般的な説明が生成されます。

  • **出力:**回答または説明を含むテキスト。

2. summarize_youtube_video

指定された YouTube 動画の概要を生成します。

  • 入力:

    • youtube_url (文字列、必須): YouTube ビデオの URL。

    • summary_length (文字列、オプション): 希望する要約の長さ ('short'、'medium'、'long')。デフォルトは 'medium' です。

  • **出力:**ビデオの概要を含むテキスト。

3. 重要なextract_key_moments

指定された YouTube 動画から重要な瞬間 (タイムスタンプと説明) を抽出します。

  • 入力:

    • youtube_url (文字列、必須): YouTube ビデオの URL。

    • number_of_moments (整数、オプション):抽出するキーモーメントの数。デフォルトは3です。

  • **出力:**タイムスタンプ付きの重要な瞬間を説明するテキスト。

4. list_supported_models

generateContentメソッドをサポートする利用可能な Gemini モデルを一覧表示します (REST API 経由で取得)。

  • **入力:**なし

  • **出力:**サポートされているモデル名をリストしたテキスト。

重要な注意事項

  • **本番環境向けモデルの選択:**このサーバーを本番環境または商用目的で使用する場合は、選択したGEMINI_MODEL_NAMEが本番環境に適した安定したバージョンであることを確認してください。Gemini API利用規約に従い、「試験運用版」または「プレビュー版」とマークされたモデルは本番環境での展開は許可されていません。

  • **API利用規約:**このサーバーの使用はGoogle Gemini APIに依存しています。ユーザーはGoogle API利用規約およびGemini API追加利用規約を確認し、遵守する責任があります。Gemini APIの無料プランと有料プランでは、データ利用ポリシーが異なる場合がありますのでご注意ください。無料プランをご利用の際は、機密情報や機密情報を送信しないでください。

  • コンテンツに関する責任: Gemini API を通じて生成されるコンテンツの正確性と適切性は保証されません。生成されたコンテンツを利用または公開する前に、ご自身の判断で判断してください。

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

Available Tools

4 tools
ask_about_youtube_videoB

Answers a question about the video or provides a general description if no question is asked.

Inputs: youtube_url (required), question.

extract_key_momentsC

Extracts key moments (timestamps and descriptions) from a given YouTube video.

Inputs: youtube_url (required), number_of_moments.

list_supported_modelsB

Lists available Gemini models that support the 'generateContent' method.

Inputs: no named parameters.

summarize_youtube_videoC

Generates a summary of a given YouTube video URL using Gemini Vision API.

Inputs: youtube_url (required), summary_length.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 4 tools

    Disambiguation4/5

    The tools have mostly distinct purposes, but 'ask_about_youtube_video' and 'summarize_youtube_video' could be confused as both provide descriptive outputs about video content. However, 'ask_about_youtube_video' is question-driven while 'summarize_youtube_video' is general, and the other tools ('extract_key_moments', 'list_supported_models') are clearly differentiated.

    Naming Consistency3/5

    Three tools follow a consistent verb_noun pattern ('ask_about_youtube_video', 'extract_key_moments', 'summarize_youtube_video'), but 'list_supported_models' deviates by using 'list' instead of a more descriptive verb like 'get' or 'retrieve', and it lacks the 'youtube_video' domain specificity. This mixed convention reduces predictability.

    Tool Count4/5

    With 4 tools, the count is reasonable for a focused YouTube video analysis server. It covers core functionalities like description, summarization, moment extraction, and model listing, though it could be slightly expanded for more comprehensive coverage (e.g., adding video metadata retrieval).

    Completeness3/5

    The server covers key video analysis tasks (description, summarization, moment extraction) and model support listing, but there are notable gaps. For example, it lacks tools for video metadata (e.g., title, duration, uploader), search capabilities, or interaction with YouTube's API beyond vision-based analysis, which limits agent workflows in broader YouTube contexts.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server that fetches YouTube video transcripts and optionally summarizes them. Supports multiple transcript formats (text, JSON, SRT, WebVTT), multi-language retrieval, and flexible YouTube URL parsing.
      6
      49 PyPI
      6
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A local MCP server for extracting YouTube video transcripts, metadata, and performing visual analysis using Gemini Vision or local Whisper models. It enables users to process video content through various tools for subtitle retrieval and frame analysis.
      23 npm
      MIT