youtube-mcp
Provides comprehensive tools for interacting with YouTube's Data and Analytics APIs, enabling management of videos, channels, playlists, comments, and subscriptions, as well as access to channel and video analytics.
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 show me the analytics for my channel over the last 30 days"
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
FastMCP server for YouTube — videos, channels, playlists, comments, and analytics.
Covers the YouTube Data API v3 and YouTube Analytics API with 25 tools.
Setup
1. Enable APIs in GCP Console
2. Configure credentials
mkdir -p ~/.config/youtube-mcp
cp ~/.config/google-docs-mcp/credentials.json ~/.config/youtube-mcp/credentials.json3. Run OAuth flow
cd ~/youtube-mcp && uv run python -m youtube_mcp.authThis opens a browser for consent. The token is saved to ~/.config/youtube-mcp/token.json.
4. Register with Claude Code
claude mcp add --scope user youtube -- uvx --from ~/youtube-mcp youtube-mcp5. Restart Claude Code
The youtube server should appear with 25 tools.
Related MCP server: MCP YouTube Intelligence
Tools (25)
Videos (6)
Tool | Quota | Description |
| 100 | Search YouTube by query |
| 1 | Get metadata for video(s) by ID |
| 1600 | Upload video file with metadata |
| 50 | Update video title/description/tags |
| 50 | Delete a video |
| 200 | List caption tracks for a video |
Channels (2)
Tool | Quota | Description |
| 1 | Get authenticated channel info |
| 100 | List videos on a channel |
Playlists (6)
Tool | Quota | Description |
| 1 | List playlists (mine or by channel) |
| 50 | Create new playlist |
| 50 | Update playlist metadata |
| 50 | Delete a playlist |
| 1 | List videos in a playlist |
| 50 | Add video to playlist |
Comments (4)
Tool | Quota | Description |
| 1 | List comments on a video |
| 50 | Post a top-level comment |
| 50 | Reply to a comment |
| 50 | Delete a comment |
Subscriptions (3)
Tool | Quota | Description |
| 1 | List my subscriptions |
| 50 | Subscribe to a channel |
| 50 | Unsubscribe |
Analytics (2)
Tool | Quota | Description |
| — | Channel-level metrics (views, watch time, subs) |
| — | Per-video metrics |
Misc (2)
Tool | Quota | Description |
| 1 | List video categories for a region |
| 50 | Upload custom thumbnail |
Quota
YouTube Data API daily quota is 10,000 units. Key costs:
Search: 100 units per call
Upload: 1,600 units per call
List operations: 1 unit
Insert/Update/Delete: 50 units
License
MIT
Available Tools
25 toolsadd_commentA
Post a top-level comment on a video. Costs 50 quota units.
Args: video_id: The video ID to comment on text: Comment text
Inputs: video_id (required), text (required). Returns: object
add_to_playlistB
Add a video to a playlist. Costs 50 quota units.
Args: playlist_id: The playlist ID video_id: The video ID to add
Inputs: playlist_id (required), video_id (required). Returns: object
create_playlistB
Create a new playlist. Costs 50 quota units.
Args: title: Playlist title description: Playlist description privacy_status: private, unlisted, or public (default private)
Inputs: title (required), description, privacy_status. Returns: object
delete_commentB
Delete a comment. Costs 50 quota units.
Args: comment_id: The comment ID to delete
Inputs: comment_id (required). Returns: object
delete_playlistA
Delete a playlist. Costs 50 quota units. This is irreversible.
Args: playlist_id: The playlist ID to delete
Inputs: playlist_id (required). Returns: object
delete_videoA
Delete a video. Costs 50 quota units. This is irreversible.
Args: video_id: The video ID to delete
Inputs: video_id (required). Returns: object
get_captionsA
List available caption tracks for a video. Costs 200 quota units to download.
Args: video_id: The video ID
Inputs: video_id (required). Returns: result
get_channel_analyticsA
Get channel-level analytics. Requires yt-analytics.readonly scope.
Args: start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format metrics: Comma-separated metrics (default: views,estimatedMinutesWatched,subscribersGained,subscribersLost,likes,dislikes) dimensions: Optional comma-separated dimensions (e.g. day, country, video)
Inputs: start_date (required), end_date (required), metrics, dimensions. Returns: object
get_my_channelA
Get info about the authenticated user's YouTube channel. Costs 1 quota unit.
Inputs: no named parameters. Returns: object
get_video_analyticsA
Get analytics for a specific video. Requires yt-analytics.readonly scope.
Args: video_id: The video ID to get analytics for start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format metrics: Comma-separated metrics (default: views,estimatedMinutesWatched,averageViewDuration,likes,dislikes,shares)
Inputs: video_id (required), start_date (required), end_date (required), metrics. Returns: object
get_video_detailsA
Get detailed metadata for one or more videos. Costs 1 quota unit.
Args: video_ids: Comma-separated video IDs (up to 50)
Inputs: video_ids (required). Returns: result
list_categoriesA
List available YouTube video categories. Costs 1 quota unit.
Args: region_code: ISO 3166-1 alpha-2 country code (default US)
Inputs: region_code. Returns: result
list_channel_videosB
List videos on a channel. Costs 100 quota units (uses search.list).
Args: channel_id: The channel ID max_results: Number of results (1-50, default 25) order: Sort order — date, rating, viewCount, relevance, title
Inputs: channel_id (required), max_results, order. Returns: result
list_commentsA
List top-level comments on a video. Costs 1 quota unit.
Args: video_id: The video ID max_results: Number of comment threads (1-100, default 20) order: Sort — relevance or time
Inputs: video_id (required), max_results, order. Returns: result
list_playlist_itemsA
List videos in a playlist. Costs 1 quota unit.
Args: playlist_id: The playlist ID max_results: Number of results (1-50, default 50)
Inputs: playlist_id (required), max_results. Returns: result
list_playlistsA
List playlists. If channel_id is omitted, lists the authenticated user's playlists. Costs 1 quota unit.
Args: channel_id: Channel ID to list playlists for (omit for your own) max_results: Number of results (1-50, default 25)
Inputs: channel_id, max_results. Returns: result
list_subscriptionsB
List the authenticated user's subscriptions. Costs 1 quota unit.
Args: max_results: Number of results (1-50, default 25)
Inputs: max_results. Returns: result
reply_to_commentB
Reply to a comment. Costs 50 quota units.
Args: parent_comment_id: The comment ID to reply to text: Reply text
Inputs: parent_comment_id (required), text (required). Returns: object
search_videosB
Search YouTube videos by query. Costs 100 quota units per call.
Args: query: Search query string max_results: Number of results (1-50, default 10) order: Sort order — relevance, date, rating, viewCount, title video_type: Filter — any, episode, movie
Inputs: query (required), max_results, order, video_type. Returns: result
set_thumbnailA
Upload a custom thumbnail for a video. Costs 50 quota units.
Args: video_id: The video ID file_path: Absolute path to the thumbnail image (JPEG, PNG, GIF, BMP; max 2MB)
Inputs: video_id (required), file_path (required). Returns: object
subscribeB
Subscribe to a YouTube channel. Costs 50 quota units.
Args: channel_id: The channel ID to subscribe to
Inputs: channel_id (required). Returns: object
unsubscribeA
Unsubscribe (delete a subscription). Costs 50 quota units.
Args: subscription_id: The subscription ID (from list_subscriptions)
Inputs: subscription_id (required). Returns: object
update_playlistB
Update playlist metadata. Costs 50 quota units.
Args: playlist_id: The playlist ID title: New title (or None to keep current) description: New description (or None to keep current) privacy_status: New privacy — private, unlisted, public (or None to keep current)
Inputs: playlist_id (required), title, description, privacy_status. Returns: object
update_videoA
Update video metadata. Costs 50 quota units. Only provided fields are changed.
Args: video_id: The video ID to update title: New title (or None to keep current) description: New description (or None to keep current) tags: New tags list (or None to keep current) category_id: New category ID (or None to keep current) privacy_status: New privacy — private, unlisted, public (or None to keep current)
Inputs: video_id (required), title, description, tags, +2 more. Returns: object
upload_videoA
Upload a video file to YouTube. Costs 1600 quota units. Resumable upload.
Args: file_path: Absolute path to the video file on disk title: Video title description: Video description tags: List of tags category_id: YouTube category ID (default "22" = People & Blogs) privacy_status: private, unlisted, or public (default private)
Inputs: file_path (required), title (required), description, tags, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools have distinct purposes targeting specific YouTube resources (videos, playlists, comments, analytics, etc.), with clear boundaries. However, some potential overlap exists between 'list_channel_videos' and 'search_videos' when searching within a channel, though descriptions help differentiate them. Overall, ambiguity is minimal.
Tool names follow a highly consistent verb_noun pattern throughout (e.g., add_comment, create_playlist, delete_video, get_video_details, list_playlists, update_playlist, upload_video). All tools use snake_case with clear action-object naming, making them predictable and readable.
With 25 tools, the count feels heavy for a YouTube API server, though not extreme. It covers many YouTube features comprehensively, but some tools might be niche (e.g., list_categories, get_captions), making the set borderline for typical agent use. It's reasonable but could be streamlined.
The tool set provides excellent coverage of the YouTube domain, including CRUD operations for videos, playlists, comments, and subscriptions, plus analytics, search, and upload capabilities. There are no obvious gaps; agents can perform full lifecycles for core resources without dead ends.
Maintenance
Related MCP Connectors
Hosted MCP for YouTube Studio: uploads, metadata, playlists, comments, analytics, captions.
Unofficial YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
Hosted MCP server for DataLikers — Instagram & TikTok data API. 51 tools: Instagram user search by demographics (gender/age/race/country/city), profiles, bulk lookup, engagement, posts & reels, comments, hashtags, locations, stories, highlights, music, business accounts, top users; TikTok users, videos, comments, hashtags, playlists and top charts. Streamable HTTP, Bearer API key. Free tier: 100 requests on signup at https://datalikers.com/p/1by27bwg
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn 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.-
- AlicenseAqualityCmaintenanceAn MCP server for intelligent YouTube video analysis that provides token-optimized summaries, sentiment analysis, and entity extraction from transcripts. It enables AI assistants to perform video reporting, channel monitoring, and comprehensive YouTube searches through structured data tools.1053Apache 2.0
- AlicenseAqualityBmaintenanceA comprehensive MCP server integrating YouTube Data, Analytics, and Reporting APIs, providing 40 tools for channel management, analytics, video publishing, transcripts, SEO, and comments.4034MIT
- FlicenseBqualityDmaintenanceMCP server for YouTube Data API v3 enabling video search, channel lookup, trending content, comments, and playlist management.11-