YouTube MCP Server
The YouTube MCP Server enables AI models to interact with YouTube content through a standardized interface, providing tools for video, channel, playlist, and transcript operations:
Search Videos: Search for videos using a query string, with optional filters for date ranges, channel restrictions, subscriber counts, and result limits
Get Video Details: Retrieve detailed information about a specific video by ID, with optional resource parts
Get Transcripts: Fetch captions/transcripts for a video, with optional language selection
Channel Info & Videos: Look up channel information by ID, search for channels by name/handle, and list videos from a specific channel
Playlist Info & Items: Retrieve details about a playlist and the videos it contains
Advanced Filtering: Filter by subscriber counts, upload activity, creator/brand classification, and result ordering
Multi-API Key Support: Automatically retries failed requests with fallback API keys when quota limits are reached
Cross-Platform: Works with Claude Desktop, VS Code, and Docker
Enables AI language models to interact with YouTube content, including getting video details, retrieving transcripts, managing channels, searching videos, and accessing playlist information
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@YouTube MCP Server get the transcript for video dQw4w9WgXcQ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YouTube MCP Server
A Model Context Protocol (MCP) server implementation for YouTube, enabling AI language models to interact with YouTube content through a standardized interface.
Website: zubeidhendricks.github.io/youtube-mcp-server
Available Tools
The server currently exposes 10 MCP tools.
Tool | Description | Required Parameters | Optional Parameters |
| Get detailed information about a YouTube video |
|
|
| Search for videos on YouTube |
|
|
| Get the transcript of a YouTube video |
|
|
| Get information about a YouTube channel |
| None |
| Get information about multiple YouTube channels |
|
|
| Search for YouTube channels by handle, name, or query |
|
|
| Find creator channels from video mentions with channel-size and activity filters |
|
|
| Get videos from a specific channel |
|
|
| Get information about a YouTube playlist |
| None |
| Get videos in a YouTube playlist |
|
|
Tool Parameters
videos_getVideo
videoId(string): The YouTube video ID.parts(string[], optional): Specific video resource parts to retrieve.
videos_searchVideos
query(string): Search query.maxResults(number, optional): Maximum number of results to return.order(string, optional): Result ordering such asrelevanceordate.publishedAfter(string, optional): Only include videos published after this ISO 8601 date.publishedBefore(string, optional): Only include videos published before this ISO 8601 date.channelId(string, optional): Restrict results to a specific channel.uniqueChannels(boolean, optional): Return only one video per unique channel.channelMinSubscribers/channelMaxSubscribers(number, optional): Filter matched videos by the subscriber band of their channel.channelLastUploadAfter/channelLastUploadBefore(string, optional): Filter matched videos by the latest upload activity of their channel.creatorOnly(boolean, optional): Restrict results to channels heuristically classified as creators.sortBy(string, optional): Supportsrelevance,subscribers_asc,subscribers_desc,indie_priority, andrecent_activity.
transcripts_getTranscript
videoId(string): The YouTube video ID.language(string, optional): Transcript language code. Falls back toYOUTUBE_TRANSCRIPT_LANGoren.
channels_getChannel
channelId(string): The YouTube channel ID.
Responses now include:
latestVideoPublishedAtnormalizedMetadataincludes
country,defaultLanguage,joinedAt,customUrl,emailsFound,contactLinks, and creator-vs-brand heuristic fields
channels_getChannels
channelIds(string[]): A list of YouTube channel IDs.includeLatestUpload(boolean, optional): Whether to includelatestVideoPublishedAt. Defaults totrue.
channels_searchChannels
query(string): Channel search query or handle.maxResults(number, optional): Maximum number of channels to return.order(string, optional): Result ordering such asrelevance.channelType(string, optional): Restrict the search to a channel type.minSubscribers/maxSubscribers(number, optional): Filter channels by subscriber band.lastUploadAfter/lastUploadBefore(string, optional): Filter channels by latest upload activity.creatorOnly(boolean, optional): Restrict results to channels heuristically classified as creators.sortBy(string, optional): Supportsrelevance,subscribers_asc,subscribers_desc,indie_priority, andrecent_activity.
channels_findCreators
query(string): Topic, game, or mention query to discover channels from matched videos.videoPublishedAfter/videoPublishedBefore(string, optional): Recency filters for the matched videos.channelMinSubscribers/channelMaxSubscribers(number, optional): Subscriber band filters for returned channels.channelLastUploadAfter/channelLastUploadBefore(string, optional): Latest-upload activity filters for returned channels.creatorOnly(boolean, optional): Restrict results to channels heuristically classified as creators.sortBy(string, optional): Supportsrelevance,subscribers_asc,subscribers_desc,indie_priority, andrecent_activity.sampleVideosPerChannel(number, optional): How many matched videos to include per returned channel.
channels_listVideos
channelId(string): The YouTube channel ID.maxResults(number, optional): Maximum number of videos to return.
playlists_getPlaylist
playlistId(string): The YouTube playlist ID.
playlists_getPlaylistItems
playlistId(string): The YouTube playlist ID.maxResults(number, optional): Maximum number of playlist items to return.
Related MCP server: YouTube MCP Server
Installation
Quick Setup for Claude Desktop
Install the package:
npm install -g zubeid-youtube-mcp-serverAdd to your Claude Desktop configuration (
~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS or%APPDATA%\Claude\claude_desktop_config.jsonon Windows):
{
"mcpServers": {
"zubeid-youtube-mcp-server": {
"command": "zubeid-youtube-mcp-server",
"env": {
"YOUTUBE_API_KEY": "your_primary_youtube_api_key",
"YOUTUBE_API_KEY2": "your_secondary_youtube_api_key",
"YOUTUBE_API_KEY3": "your_tertiary_youtube_api_key"
}
}
}
}Alternative: Using NPX (No Installation Required)
Add this to your Claude Desktop configuration:
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "zubeid-youtube-mcp-server"],
"env": {
"YOUTUBE_API_KEY": "your_primary_youtube_api_key",
"YOUTUBE_API_KEY2": "your_secondary_youtube_api_key",
"YOUTUBE_API_KEY3": "your_tertiary_youtube_api_key"
}
}
}
}Installing via Smithery
To install YouTube MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @ZubeidHendricks/youtube --client claudeConfiguration
Set the following environment variables:
YOUTUBE_API_KEY: Primary YouTube Data API keyYOUTUBE_API_KEY2: Secondary fallback API keyYOUTUBE_API_KEY3: Third fallback API keyYOUTUBE_TRANSCRIPT_LANG: Default language for transcripts (optional, defaults to 'en')
At least one of YOUTUBE_API_KEY, YOUTUBE_API_KEY2, or YOUTUBE_API_KEY3 must be set. When a request fails because a key has exhausted its quota, the server retries the same request with the next configured key.
Using with VS Code
For one-click installation, click one of the install buttons below:
Manual Installation
If you prefer manual installation, first check the install buttons at the top of this section. Otherwise, follow these steps:
Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing 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}"
}
}
}
}
}Optionally, you can add it to a file called .vscode/mcp.json in your workspace:
{
"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}"
}
}
}
}Development
# Install dependencies
npm install
# Build
npm run build
# Start the server (requires at least one configured YouTube API key)
npm start
# Development mode with auto-rebuild
npm run devDocker
The included Docker image starts the server over HTTP by default.
Default transport:
httpDefault endpoint:
http://localhost:8088/mcpReadiness endpoint:
http://localhost:8088/readyDefault mode: stateless
The Docker build copies .env into the runtime image and the server loads it automatically on startup. That means the container can run without passing API credentials at docker run time, as long as .env was present during docker build.
docker build -t youtube-mcp-server .
docker run --rm -p 8088:8088 youtube-mcp-serverThe container defaults to:
MCP_TRANSPORT=http
MCP_HOST=0.0.0.0
MCP_PORT=8088
MCP_STATELESS=trueContributing
See CONTRIBUTING.md for information about contributing to this repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
1 toolvideos_searchVideosC
Search for videos on YouTube
Inputs: query (required), order, sortBy, channelId, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Fetch the transcript of any YouTube video (plain text or timestamped segments, in any available caption language), search YouTube for videos and channels, list a channel's uploads, Shorts, playlists and community posts, search inside one channel, and list every video in a playlist. Hosted Streamable HTTP server from getyoutubetranscript.com; sign in with OAuth or an API key. Credit-based: one credit per successful call.
YouTube transcripts, video metadata, chapters, comments, channels and search for AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI language models to interact with YouTube content through a standardized interface, providing tools for retrieving video information, transcripts, channel analytics, and trend analysis.65MIT
- AlicenseBqualityBmaintenanceA 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.12192 npm27MIT
- AlicenseAqualityNot gradedmaintenanceExtracts 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.111 npmMIT
- FlicenseNot gradedqualityDmaintenanceThis MCP server fetches and extracts transcripts from YouTube videos, enabling AI language models to access and analyze video content.1-