YouTube MCP統合
このプロジェクトは、YouTube 用のモデル コンテキスト プロトコル (MCP)統合を提供し、LLM が標準化されたツールを使用して YouTube を検索し、ビデオ情報を取得し、トランスクリプトを取得できるようにします。
特徴
- YouTube 検索ツール: 検索結果の制限を設定して YouTube の動画を検索します
- 動画情報ツール: YouTube動画の詳細情報を取得します
- トランスクリプトツール: YouTube 動画のトランスクリプトを取得して解析します
建築
この実装は、LLMが外部ツールやリソースと連携する方法を標準化するモデルコンテキストプロトコル(MCP)仕様に準拠しています。アーキテクチャは以下の要素で構成されています。
- MCP サーバー: HTTP/SSE トランスポートを介して YouTube 機能を MCP ツールとして提供します。
- YouTube API 統合: YouTube データをスクレイピングして、検索、動画情報、トランスクリプト機能を提供します
- MCP クライアント: MCP YouTube ツールの使用方法を示すサンプル クライアント
はじめる
前提条件
- Node.js 18歳以上
- npm
インストール
サーバーの実行
MCP サーバーを起動します。
サーバーは、次のエンドポイントを使用してhttp://localhost:3000で起動します。
- SSEエンドポイント:
/sse
- メッセージエンドポイント:
/messages
MCPクライアントでの使用
MCPツールは、MCP対応クライアントであればどれでも使用できます。ツールの使用例を以下に示します。
利用可能なツール
youtube_search
YouTube 動画を検索します。
引数:
query
(文字列、必須): 検索クエリlimit
(数値、オプション): 結果の最大数 (1-10、デフォルト: 5)
**応答:**タイトル、動画 ID、URL、サムネイル、説明、チャンネル情報、視聴回数、公開日などの詳細を含む動画結果のリスト。
youtube_get_video_info
YouTube 動画の詳細情報を取得します。
引数:
input
(文字列、必須): YouTube 動画の ID または URL
**応答:**タイトル、説明、視聴回数、公開日、チャンネルの詳細、サムネイル URL などの詳細な動画情報。
youtube_get_transcript
YouTube ビデオのトランスクリプトを取得します。
引数:
input
(文字列、必須): YouTube 動画の ID または URL
**応答:**タイムスタンプ付きのエントリと基本的なビデオ情報を含むビデオのトランスクリプト。
ライセンス
マサチューセッツ工科大学
謝辞
This server cannot be installed
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.
LLM が標準化されたツールを使用��て YouTube を検索し、ビデオ情報を取得し、ビデオのトランスクリプトにアクセスできるようにする MCP サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that enables users to list, download, search, and manage Zoom meeting transcripts through a structured interface.Last updated -61JavaScriptMIT License
- -securityFlicense-qualityAn MCP server that allows Claude and other LLMs to manage persistent memories across conversations through text file storage, enabling commands to add, search, delete and list memory entries.Last updated -294TypeScript
- -securityAlicense-qualityAn MCP server that connects any MCP client (like Claude or Cursor) with the browser using browser-use, allowing clients to utilize existing LLMs without requiring additional API keys.Last updated -74PythonApache 2.0
- -securityFlicense-qualitySimple MCP server that returns the transcription of a Youtube video using url and desired language.Last updated -Python