Youtube MCP サーバー
について
サーバーは、Youtube API と AI アシスタント間のブリッジであり、モデル コンテキスト プロトコルに基づいています。
MCPとは何ですか?
モデルコンテキストプロトコル(MCP)は、Claude DesktopのようなAIアプリが外部ツールやデータソースに接続できるようにするシステムです。これにより、AIアシスタントがローカルサービスやAPIを操作しながら、ユーザーによる操作を明確かつ安全に行えるようになります。
このサーバーは何をしますか?
[x] 指定されたビデオのクローズドキャプションをダウンロードする
実用的なユースケース
[x] ビデオの要約を作成する
前提条件
インストール
サーバーをすでにインストールしている場合は、uv tool upgrade --reinstallコマンドを使用して更新できます。
サーバーを削除する場合は、uv tool uninstall mcp-youtubeコマンドを使用します。
構成
クロードデスクトップ構成
Claude Desktop を Youtube MCP サーバーを認識するように設定します。
Claude Desktop 構成ファイルを開きます。
MacOSでは、設定ファイルは
~/Library/Application Support/Claude/claude_desktop_config.jsonにあります。Windowsでは、構成ファイルは
%APPDATA%\Claude\claude_desktop_config.jsonにあります。
注: claude_desktop_config.json は Claude Desktop アプリの設定内にもあります。
サーバー構成を追加する
{ "mcpServers": { "mcp-youtube": { "command": "mcp-youtube", } } } }
発達
はじめる
リポジトリをクローンする
依存関係をインストールする
uv syncサーバーを実行する
uv run mcp-youtube --help
ツールはsrc/mcp_youtube/tools.pyファイルに追加できます。
新しいツールを追加する方法:
ToolArgsから継承する新しいクラスを作成する
class NewTool(ToolArgs): """Description of the new tool.""" passクラスの属性はツールの引数として使用されます。クラスのdocstringはツールの説明として使用されます。
新しいクラスにtool_runner関数を実装する
@tool_runner.register async def new_tool(args: NewTool) -> t.Sequence[TextContent | ImageContent | EmbeddedResource]: passこの関数は、TextContent、ImageContent、またはEmbeddedResourceのシーケンスを返す必要があります。この関数は非同期で、新しいクラスの単一の引数を受け入れる必要があります。
完了です。クライアントを再起動すると、新しいツールが利用できるようになります。
検証は、Claude Desktop を通じて、またはツールを直接実行することによって実行できます。
インスペクターでサーバーをデバッグする
MCPインスペクターは、洗練されたUIを使用してサーバーのデバッグを支援するツールです。実行するには、次のコマンドを使用します。
トラブルシューティング
メッセージ「MCP サーバー mcp-youtube に接続できませんでした」
Claude Desktop に「MCP サーバー mcp-youtube に接続できませんでした」というメッセージが表示される場合は、サーバーの構成が正しくないことを意味します。
次のことを試してください。
設定ファイルで
mcp-youtubeバイナリへのフルパスを使用します
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
YouTube API と AI アシスタントを橋渡しし、字幕をダウンロードして処理し、YouTube 動画の要約を作成することで動画分析を可能にします。
Related Resources
Related MCP Servers
- -security-license-qualityEnables AI language models to interact with YouTube content through a standardized interface, providing tools for retrieving video information, transcripts, channel analytics, and trend analysis.Last updated -36350
 - -security-license-qualityEnables AI systems to download and analyze YouTube video comments through 4 specialized tools without requiring API keys, supporting engagement analysis, comment search, and statistics gathering.
 - -security-license-qualityTurn YouTube, TikTok, X videos and websites into structured data. Skip the hassle of video transcription and data scraping. Our APIs help you build better software and AI products faster.Last updated -1413MIT License
 - -security-license-qualityEnables AI models like Claude to easily access and utilize subtitle data from YouTube videos by extracting transcripts from video URLs with support for multiple languages.Last updated -1MIT License