YouTube MCP Server
YouTube MCP サーバー
YouTube 用のモデル コンテキスト プロトコル (MCP) サーバー実装。これにより、AI 言語モデルが標準化されたインターフェースを通じて YouTube コンテンツと対話できるようになります。
特徴
ビデオ情報
ビデオの詳細(タイトル、説明、再生時間など)を取得します
チャンネル動画の一覧
動画の統計情報(視聴回数、いいね数、コメント数)を取得する
YouTube の動画を検索
トランスクリプト管理
ビデオのトランスクリプトを取得する
複数の言語をサポート
タイムスタンプ付きキャプションを取得する
トランスクリプト内を検索
チャンネル管理
チャンネルの詳細を取得する
チャンネルのプレイリストを一覧表示する
チャンネル統計を取得する
チャンネルコンテンツ内を検索
プレイリスト管理
プレイリスト項目を一覧表示する
プレイリストの詳細を取得する
プレイリスト内を検索
プレイリストの動画のトランスクリプトを取得する
Related MCP server: mcp-youtube-transcript
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の YouTube MCP サーバーを自動的にインストールするには:
npx -y @smithery/cli install @ZubeidHendricks/youtube --client claude手動インストール
npm install zubeid-youtube-mcp-server構成
次の環境変数を設定します。
YOUTUBE_API_KEY: YouTubeデータAPIキーYOUTUBE_TRANSCRIPT_LANG: トランスクリプトのデフォルト言語(オプション、デフォルトは「en」)
MCPクライアントでの使用
これを MCP クライアント構成 (例: Claude Desktop) に追加します。
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "zubeid-youtube-mcp-server"],
"env": {
"YOUTUBE_API_KEY": "<YOUR_API_KEY>"
}
}
}
}VS Codeでの使用
ワンクリックでインストールするには、以下のいずれかのインストールボタンをクリックします。
手動インストール
手動でインストールする場合は、まずこのセクションの上部にあるインストールボタンをチェックしてください。それ以外の場合は、以下の手順に従ってください。
VS Codeのユーザー設定(JSON)ファイルに、以下のJSONブロックを追加します。Ctrl Ctrl + Shift + Pを押してPreferences: Open User Settings (JSON)と入力することで実行できます。
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "apiKey",
"description": "YouTube API Key",
"password": true
}
],
"servers": {
"youtube": {
"command": "npx",
"args": ["-y", "zubeid-youtube-mcp-server"],
"env": {
"YOUTUBE_API_KEY": "${input:apiKey}"
}
}
}
}
}オプションとして、ワークスペース内の.vscode/mcp.jsonというファイルに追加することもできます。
{
"inputs": [
{
"type": "promptString",
"id": "apiKey",
"description": "YouTube API Key",
"password": true
}
],
"servers": {
"youtube": {
"command": "npx",
"args": ["-y", "zubeid-youtube-mcp-server"],
"env": {
"YOUTUBE_API_KEY": "${input:apiKey}"
}
}
}
}YouTube API のセットアップ
Google Cloud Console に移動
新しいプロジェクトを作成するか、既存のプロジェクトを選択してください
YouTube Data API v3 を有効にする
API認証情報(APIキー)を作成する
設定用のAPIキーをコピーします
例
ビデオの管理
// Get video details
const video = await youtube.videos.getVideo({
videoId: "video-id"
});
// Get video transcript
const transcript = await youtube.transcripts.getTranscript({
videoId: "video-id",
language: "en"
});
// Search videos
const searchResults = await youtube.videos.searchVideos({
query: "search term",
maxResults: 10
});チャンネルの管理
// Get channel details
const channel = await youtube.channels.getChannel({
channelId: "channel-id"
});
// List channel videos
const videos = await youtube.channels.listVideos({
channelId: "channel-id",
maxResults: 50
});プレイリストの管理
// Get playlist items
const playlistItems = await youtube.playlists.getPlaylistItems({
playlistId: "playlist-id",
maxResults: 50
});
// Get playlist details
const playlist = await youtube.playlists.getPlaylist({
playlistId: "playlist-id"
});発達
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run build
# Lint
npm run lint貢献
このリポジトリへの貢献については、CONTRIBUTING.md を参照してください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
Available Tools
1 toolvideos_searchVideosC
Search for videos on YouTube
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Sort order for results, such as relevance or date | |
| query | Yes | Search query | |
| sortBy | No | Optional ranking mode such as relevance, indie_priority, subscribers_asc, subscribers_desc, or recent_activity | |
| channelId | No | Restrict results to a specific channel ID | |
| maxResults | No | Maximum number of results to return | |
| creatorOnly | No | Only include channels heuristically classified as creators | |
| publishedAfter | No | Only include videos published after this ISO 8601 date | |
| uniqueChannels | No | Return only one matched video per unique channel | |
| publishedBefore | No | Only include videos published before this ISO 8601 date | |
| channelMaxSubscribers | No | Maximum subscriber count for the matched video channel | |
| channelMinSubscribers | No | Minimum subscriber count for the matched video channel | |
| channelLastUploadAfter | No | Only include videos whose channel latest upload is after this ISO 8601 date | |
| channelLastUploadBefore | No | Only include videos whose channel latest upload is before this ISO 8601 date |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
There are no annotations, so the description must disclose behavioral traits. It only says 'Search for videos,' omitting any details about rate limits, pagination, return format, or side effects. This is insufficient for an agent to anticipate behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, which is too brief for a tool with 13 parameters. While concise, it is under-specified and does not earn its place; it should include more context.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (13 parameters, no output schema), the description lacks completeness. It does not explain return values, default behaviors, or interaction effects between parameters, leaving the agent underinformed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, so the schema itself documents each parameter. The tool description adds no additional meaning beyond the schema, making the baseline score of 3 appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific verb ('Search') and resource ('videos on YouTube'), making the tool's purpose immediately understandable. However, it lacks any differentiation from potential sibling tools (none provided) and is somewhat generic.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool, when not to use it, or any alternatives. With no sibling tools mentioned, the description could at least imply typical search scenarios, but it does not.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
7 tool updates
v1.0.2- Removed
channels_getChannel - Removed
channels_listVideos - Removed
playlists_getPlaylist - Removed
playlists_getPlaylistItems - Removed
transcripts_getTranscript - Removed
videos_getVideo - Changed
videos_searchVideos11 fields changed- added
Input schema / properties / channelIdAdded value: +{ + "description": "Restrict results to a specific channel ID", + "type": "string" +} - added
Input schema / properties / channelLastUploadAfterAdded value: +{ + "description": "Only include videos whose channel latest upload is after this ISO 8601 date", + "type": "string" +} - added
Input schema / properties / channelLastUploadBeforeAdded value: +{ + "description": "Only include videos whose channel latest upload is before this ISO 8601 date", + "type": "string" +} - added
Input schema / properties / channelMaxSubscribersAdded value: +{ + "description": "Maximum subscriber count for the matched video channel", + "type": "number" +} - added
Input schema / properties / channelMinSubscribersAdded value: +{ + "description": "Minimum subscriber count for the matched video channel", + "type": "number" +} - added
Input schema / properties / creatorOnlyAdded value: +{ + "description": "Only include channels heuristically classified as creators", + "type": "boolean" +} - added
Input schema / properties / orderAdded value: +{ + "description": "Sort order for results, such as relevance or date", + "type": "string" +} - added
Input schema / properties / publishedAfterAdded value: +{ + "description": "Only include videos published after this ISO 8601 date", + "type": "string" +} - added
Input schema / properties / publishedBeforeAdded value: +{ + "description": "Only include videos published before this ISO 8601 date", + "type": "string" +} - added
Input schema / properties / sortByAdded value: +{ + "description": "Optional ranking mode such as relevance, indie_priority, subscribers_asc, subscribers_desc, or recent_activity", + "type": "string" +} - added
Input schema / properties / uniqueChannelsAdded value: +{ + "description": "Return only one matched video per unique channel", + "type": "boolean" +}
7 tool updates
v1.0.0- First observed
channels_getChannel - First observed
channels_listVideos - First observed
playlists_getPlaylist - First observed
playlists_getPlaylistItems - First observed
transcripts_getTranscript - First observed
videos_getVideo - First observed
videos_searchVideos
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools, so disambiguation is perfect.
The single tool name 'videos_searchVideos' mixes camelCase and an awkward verb_noun structure ('videos' as prefix then 'searchVideos'), showing internal inconsistency and lack of a clear pattern.
One tool is far too few for a YouTube MCP server, which typically requires multiple operations (search, video details, channel info, etc.), making the tool count extremely inadequate.
The tool only supports searching for videos, missing critical operations like retrieving video details, listing playlists, or managing subscriptions, leaving severe gaps in covering the YouTube domain.
Maintenance
Related MCP Connectors
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
YouTube transcripts, search, and channel and playlist listings for any AI app. Hosted.
YouTube transcripts, search, channel browsing, and playlists for AI agents via MCP.
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI language models to interact with YouTube content through a standardized interface, providing tools for retrieving video information, transcripts, channel analytics, and trend analysis.274 npm65MIT
- AlicenseAqualityDmaintenanceA 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.1245 npm39MIT
- AlicenseBqualityAmaintenanceA server that enables interaction with YouTube data through the Model Context Protocol, allowing users to search videos, retrieve detailed information about videos/channels, and fetch comments.12222 npm27MIT
- AlicenseAqualityDmaintenanceExtracts YouTube video metadata, titles, and descriptions along with transcripts generated from subtitles or OpenAI Whisper speech-to-text. This server enables users to retrieve and analyze detailed video content directly within MCP-compatible environments.15 npmMIT