YouTube Toolbox

Integrations

  • Leverages Google Cloud Platform services, specifically requiring YouTube Data API v3 credentials for authentication and access to YouTube data.

  • Provides tools for interacting with YouTube, including video searching, transcript extraction, comment retrieval, related video discovery, trending video lists, channel information retrieval, and transcript analysis with filtering and summarization capabilities.

py-mcp-youtube-ツールボックス

動画検索、トランスクリプト抽出、コメント取得など、YouTube を操作するための強力なツールを AI アシスタントに提供する MCP サーバー。

概要

py-mcp-youtube-toolbox は、次の YouTube 関連の機能を提供します。

  • 高度なフィルタリングオプションでYouTube動画を検索
  • 動画やチャンネルの詳細情報を取得する
  • 並べ替えオプションを使用して動画コメントを取得する
  • 複数の言語でビデオのトランスクリプトとキャプションを抽出します
  • 特定の動画に関連する動画を検索する
  • 地域別にトレンド動画をチェック
  • トランスクリプトに基づいてビデオコンテンツの要約を生成する
  • フィルタリング、検索、マルチビデオ機能を備えた高度なトランスクリプト分析

目次

前提条件

  1. Python : Python 3.12以降をインストールします
  2. YouTube APIキー:
    • Google Cloud Consoleに移動
    • 新しいプロジェクトを作成するか、既存のプロジェクトを選択してください
    • YouTube Data API v3 を有効にします。
      1. 「APIとサービス」>「ライブラリ」に移動します
      2. 「YouTube Data API v3」を検索して有効にします
    • 資格情報を作成します:
      1. 「APIとサービス」>「認証情報」に移動します
      2. 「認証情報を作成」>「APIキー」をクリックします
      3. APIキーを書き留めてください

インストール

Gitクローン
git clone https://github.com/jikime/py-mcp-youtube-toolbox.git cd py-mcp-youtube-toolbox
構成
  1. UV パッケージ マネージャーをインストールします。
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. 仮想環境を作成してアクティブ化します。
uv venv -p 3.12 source .venv/bin/activate # On MacOS/Linux # or .venv\Scripts\activate # On Windows
  1. 依存関係をインストールします:
uv pip install -r requirements.txt
  1. 環境変数:
cp env.example .env vi .env # Update with your YouTube API key YOUTUBE_API_KEY=your_youtube_api_key
Dockerの使用
  1. Docker イメージをビルドします。
docker build -t py-mcp-youtube-toolbox .
  1. コンテナを実行します。
docker run -e YOUTUBE_API_KEY=your_youtube_api_key py-mcp-youtube-toolbox
ローカルの使用
  1. サーバーを実行します。
mcp run server.py
  1. MCP インスペクターを実行します。
mcp dev server.py

MCP設定を構成する

MCP 設定ファイルにサーバー構成を追加します。

クロードデスクトップアプリ
  1. Smithery経由で自動的にインストールするには:
npx -y @smithery/cli install @jikime/py-mcp-youtube-toolbox --client claude
  1. 手動でインストールするには~/Library/Application Support/Claude/claude_desktop_config.jsonを開きます。

これをmcpServersオブジェクトに追加します。

{ "mcpServers": { "YouTube Toolbox": { "command": "/path/to/bin/uv", "args": [ "--directory", "/path/to/py-mcp-youtube-toolbox", "run", "server.py" ], "env": { "YOUTUBE_API_KEY": "your_youtube_api_key" } } } }
カーソルIDE

~/.cursor/mcp.jsonを開く

これをmcpServersオブジェクトに追加します。

{ "mcpServers": { "YouTube Toolbox": { "command": "/path/to/bin/uv", "args": [ "--directory", "/path/to/py-mcp-youtube-toolbox", "run", "server.py" ], "env": { "YOUTUBE_API_KEY": "your_youtube_api_key" } } } }
Docker用
{ "mcpServers": { "YouTube Toolbox": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "YOUTUBE_API_KEY=your_youtube_api_key", "py-mcp-youtube-toolbox" ] } } }

ツールドキュメント

ビデオツール

  • search_videos : 高度なフィルタリング オプション (チャンネル、再生時間、地域など) を使用して YouTube 動画を検索します。
  • get_video_details : 特定の YouTube 動画の詳細情報 (タイトル、チャンネル、視聴回数、高評価など) を取得します。
  • get_video_comments : 並べ替えオプションを使用して YouTube 動画からコメントを取得します
  • get_related_videos : 特定の YouTube 動画に関連する動画を検索する
  • get_trending_videos : YouTube で地域別にトレンドの動画を取得する

チャンネルツール

  • get_channel_details : YouTube チャンネルの詳細情報 (名前、登録者数、視聴回数など) を取得します。

トランスクリプトツール

  • get_video_transcript : 指定された言語の YouTube 動画からトランスクリプト/キャプションを抽出します
  • get_video_enhanced_transcript : フィルタリング、検索、マルチビデオ機能を備えた高度なトランスクリプト抽出

プロンプトツール

  • transcript_summary : カスタマイズ可能なオプションを使用して、トランスクリプトに基づいて YouTube 動画コンテンツの要約を生成します。

リソースツール

  • youtube://available-youtube-tools : 利用可能なすべてのYouTubeツールのリストを取得します
  • youtube://video/{video_id} : 特定の動画の詳細情報を取得します
  • youtube://channel/{channel_id} : 特定のチャンネルに関する情報を取得します
  • youtube://transcript/{video_id}?language={language} : 特定の動画のトランスクリプトを取得します

発達

ローカルテストの場合は、付属のクライアント スクリプトを使用できます。

# Example: Search videos uv run client.py search_videos query="MCP" max_results=5 # Example: Get video details uv run client.py get_video_details video_id=zRgAEIoZEVQ # Example: Get channel details uv run client.py get_channel_details channel_id=UCRpOIr-NJpK9S483ge20Pgw # Example: Get video comments uv run client.py get_video_comments video_id=zRgAEIoZEVQ max_results=10 order=time # Example: Get video transcript uv run client.py get_video_transcript video_id=zRgAEIoZEVQ language=ko # Example: Get related videos uv run client.py get_related_videos video_id=zRgAEIoZEVQ max_results=5 # Example: Get trending videos uv run client.py get_trending_videos region_code=ko max_results=10 # Example: Advanced transcript extraction uv run client.py get_video_enhanced_transcript video_ids=zRgAEIoZEVQ language=ko format=timestamped include_metadata=true start_time=100 end_time=200 query=에이전트 case_sensitive=true segment_method=equal segment_count=2 # Example:

ライセンス

MITライセンス

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

動画検索、トランスクリプト抽出、コメント取得など、YouTube を操作するための強力なツールを AI アシスタントに提供する MCP サーバー。

  1. 概要
    1. 目次
      1. 前提条件
        1. インストール
          1. Gitクローン
          2. 構成
          3. Dockerの使用
          4. ローカルの使用
        2. MCP設定を構成する
          1. クロードデスクトップアプリ
          2. カーソルIDE
          3. Docker用
        3. ツールドキュメント
          1. ビデオツール
          2. チャンネルツール
          3. トランスクリプトツール
          4. プロンプトツール
          5. リソースツール
        4. 発達
          1. ライセンス

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              This server allows AI language models to interact with YouTube content through a standardized interface, providing features such as video and channel information retrieval, transcript management, and playlist operations.
              Last updated -
              59
              135
              TypeScript
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              The MCP Server integrates APIs from the Youtube-Summarizer as tools within the MCP protocol, allowing for local AI application interaction and tool utilization through natural language queries.
              Last updated -
              Python
            • -
              security
              A
              license
              -
              quality
              An MCP server that allows Claude and other AI assistants to interact with the YouTube API, providing tools to search videos/channels and retrieve detailed information about them.
              Last updated -
              1
              JavaScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants to extract transcripts from YouTube videos, allowing AI to analyze and work with video content directly.
              Last updated -
              6
              1
              TypeScript

            View all related MCP servers

            ID: r5s240ekuw