YouTube MCP Server
YouTube MCP サーバー
これは、Claude やその他の AI アシスタントが YouTube API と連携できるようにする MCP(Model Context Protocol)サーバーです。このサーバーは、動画の検索、特定の動画の詳細情報の取得、チャンネルの検索、チャンネルの詳細情報の取得などのツールを提供します。
MCPとは何ですか?
モデルコンテキストプロトコル(MCP)は、Anthropic(Claudeの開発元)がAIアシスタントを外部データソースやツールに接続するために開発したオープンスタンダードです。これにより、Claudeのようなモデルは最新の情報にアクセスし、外部システムで標準化された方法でアクションを実行できるようになります。
MCP は AI の「ユニバーサル ブリッジ」として機能し、モデルがさまざまなコンテンツ リポジトリ、ビジネス サービス、またはアプリケーションにアクセスするための標準化された方法を提供します。
Related MCP server: YouTube Toolbox
要件
Node.js v16以上
YouTube API キー(Google Developer Console から取得)
インストール
このリポジトリをクローンします:
git clone https://github.com/Nocodeboy/youtube-mcp-server.git
cd youtube-mcp-server依存関係をインストールします:
npm installプロジェクト ルートに
.envファイルを作成し、YouTube API キーを追加します。
YOUTUBE_API_KEY=your_api_key_here実行
サーバーを起動するには、次のコマンドを実行します。
npm startClaude Desktopとの統合
この MCP サーバーを Claude Desktop で使用するには、 claude_desktop_config.jsonファイル (通常、Windows の場合は%APPDATA%\Claude\ 、macOS の場合は~/Library/Application Support/Claude/にあります) に次の構成を追加します。
{
"mcpServers": {
"youtube": {
"command": "node",
"args": ["path/to/youtube-mcp-server/index.js"],
"env": {
"YOUTUBE_API_KEY": "your_api_key_here"
}
}
}
}"path/to/youtube-mcp-server/index.js" index.jsファイルへの絶対パスに置き換え、 "your_api_key_here" YouTube API キーに置き換えます。
利用可能なツール
1. 動画を検索する
クエリに基づいて YouTube 上の動画を検索します。
search_videosパラメータ:
query(文字列、必須): 検索用語maxResults(数値、オプション): 結果の最大数 (1~50)pageToken(文字列、オプション): 次の結果ページを取得するためのトークン
2. ビデオの詳細を取得する
特定のビデオに関する詳細情報を取得します。
get_video_detailsパラメータ:
videoId(文字列、必須): YouTube 動画 ID
3. チャンネルの詳細を取得する
特定のチャネルに関する詳細情報を取得します。
get_channel_detailsパラメータ:
channelId(文字列、必須): YouTube チャンネル ID
4. チャンネルを検索する
クエリに基づいて YouTube のチャンネルを検索します。
search_channelsパラメータ:
query(文字列、必須): 検索用語maxResults(数値、オプション): 結果の最大数 (1~50)pageToken(文字列、オプション): 次の結果ページを取得するためのトークン
利用可能なリソース
youtube://popular/videos: YouTubeで現在人気の動画のリスト
使用例
Claude Desktop を使用すると、次のような質問をすることができます。
「Pythonプログラミングビデオを検索」
「ID dQw4w9WgXcQのビデオの詳細を表示」
「料理関連のチャンネルを検索」
「GoogleDevelopersチャンネルに関する情報を教えてください」
「今一番人気の動画は何ですか?」
YouTube APIキーの取得
YouTube API キーを取得するには:
Google Developer Consoleにアクセスしてください
新しいプロジェクトを作成する(または既存のプロジェクトを選択する)
サイドバーで「APIライブラリ」を選択します
「YouTube Data API v3」を検索して有効にします
サイドバーで「認証情報」を選択します
「認証情報を作成」をクリックし、「APIキー」を選択します
生成されたキーをコピーして、
.envファイルまたは Claude Desktop 構成で使用します。
トラブルシューティング
エラーが発生した場合は、以下を確認してください。
npm installですべての依存関係をインストールしたことYouTube APIキーが有効であること
Google プロジェクトで YouTube Data API v3 が有効になっていること
Node.jsバージョン16以上を使用していること
Claude Desktop を使用している場合は、
%APPDATA%\Claude\logs\(Windows) または~/Library/Logs/Claude/(macOS) のログを確認してください。
貢献
貢献を歓迎します。いくつかの方法で協力することができます。
バグや問題の報告
新機能の提案
改善や修正を含んだプルリクエストを送信する
ドキュメントの改善
接続とサポート
X (Twitter) でフォローしてください: @Nocodeboy
このプロジェクトが役に立つと思われ、サポートを表明したい場合は、次の手順に従ってください。
ライセンス
このプロジェクトはMITライセンスの下でライセンスされています。詳細はLICENSEファイルをご覧ください。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA Model Context Protocol server that provides Claude with tools to interact with YouTube, built on the mcp-framework.
- AlicenseBqualityCmaintenanceAn MCP server that provides AI assistants with powerful tools to interact with YouTube, including video searching, transcript extraction, comment retrieval, and more.819Apache 2.0
- Flicense-qualityDmaintenanceAn MCP server that enables interaction with the YouTube Data API, allowing users to search videos, get video and channel details, analyze trends, and fetch video transcripts.
- AlicenseAqualityCmaintenanceA comprehensive MCP server that provides Claude AI with full access to YouTube content, including searchable transcripts, metadata, comments, and playlists. It uniquely supports capturing video screenshots and extracting audio clips for analysis across both local and remote platforms.5143MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
MCP server for Google Veo AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nocodeboy/youtube-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server