YouTube MCP
YouTube ビデオ分析用の Model Context Protocol (MCP) サーバー。Gemini AI を使用してトランスクリプトを取得し、コンテンツを要約し、ビデオをクエリするためのツールを提供します。
特徴
📝トランスクリプト抽出:YouTube動画から詳細なトランスクリプトを取得します
📊動画要約:Gemini AI を使って簡潔な要約を生成
❓自然言語クエリ: 動画コンテンツに関する質問をする
🔍 YouTube検索:特定のクエリに一致する動画を検索
💬コメント分析:動画のコメントを取得して分析する
要件
Python 3.9以上
Google Gemini APIキー
YouTubeデータAPIキー
ローカルで実行
Smithery経由でインストール
Smithery経由で Claude Desktop 用の youtube-mcp を自動的にインストールするには:
オプション1: 直接インストール
リポジトリをクローンします。
git clone https://github.com/Prajwal-ak-0/youtube-mcp cd youtube-mcp仮想環境を作成し、依存関係をインストールします。
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -e .API キーを使用して
.envファイルを作成します。GEMINI_API_KEY=your_gemini_api_key YOUTUBE_API_KEY=your_youtube_api_keyMCP サーバーを実行します。
python main.py
オプション2: MCP CLIを使用する
MCP CLI をインストールします。
pip install mcpプロジェクトに
mcp.jsonファイルを作成します。{ "youtube": { "command": "uv", "args": [ "--directory", "/absolute/path/to/youtube-mcp", "run", "main.py", "--transport", "stdio", "--debug" ] } }MCP を使用してサーバーを起動します。
mcp run youtube
Dockerでの使用
Docker イメージをビルドします。
docker build -t youtube-mcp .API キーを使用してコンテナを実行します。
docker run -e GEMINI_API_KEY=your_gemini_api_key -e YOUTUBE_API_KEY=your_youtube_api_key youtube-mcp
Smitheryへの展開
この MCP サーバーは、アクセスを容易にするためにSmitheryにデプロイできます。
Smitheryでサーバーを追加または申請する
Smitheryの展開タブで「展開」をクリックします。
プロンプトが表示されたらAPIキーを入力してください
利用可能なツール
youtube/get-transcript: 動画のトランスクリプトを取得youtube/summarize: ビデオの要約を生成するyoutube/query: 動画に関する質問に答えるyoutube/search: YouTube動画を検索youtube/get-comments: 動画のコメントを取得するyoutube/get-likes: 動画のいいね数を取得する
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
YouTube 動画を分析し、ユーザーがトランスクリプトを抽出し、要約を生成し、Gemini AI を使用して動画コンテンツを照会できるようにするモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- Asecurity-licenseAqualityA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video captions and subtitles through a simple interface.Last updated -1229335MIT License
- Asecurity-licenseAqualityA 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 -161
- Asecurity-licenseAqualityA Model Context Protocol server that enables access to YouTube video content through transcripts, translations, summaries, and subtitle generation in various languages.Last updated -53MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video transcripts and subtitles through a simple interface, making it ideal for content analysis and processing.Last updated -111426MIT License