YouTube Upload & Studio MCP Server
Provides tools for uploading and managing YouTube videos, playlists, comments, captions/transcripts, channel metadata, search/SEO, analytics, revenue, retention, and bulk reporting via the YouTube Data, Analytics, and Reporting APIs.
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 Upload & Studio MCP Server Upload my latest video as private and set the title to 'Q3 Update'"
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 Upload & Studio MCP Server (youtube-upload-mcp)
A security-hardened Model Context Protocol (MCP) server for uploading videos to YouTube and managing your channel, playlists, comments, analytics, SEO, transcripts, and bulk reports.
Security & Safety Features
Built from the ground up with guardrails for AI-assisted channel management:
MCP Tool Safety Annotations (
ToolAnnotations): Every tool declaresreadOnlyHint,destructiveHint, andidempotentHintso MCP clients prompt before write/delete operations.Explicit Confirmation for Irreversible Deletions:
youtube_delete_video,youtube_delete_playlist,youtube_remove_from_playlist, andyoutube_delete_commentrequireconfirm=True(defaultFalsereturns a dry-run warning).Private-by-Default Publishing:
youtube_upload_videoandyoutube_create_playlistdefault toprivacy_status="private".SSRF & Token-Leak Protection:
youtube_reporting_downloadstrictly enforceshttps://*.googleapis.comURLs (including across HTTP redirects) so OAuth Bearer tokens cannot be sent to untrusted hosts.Scoped OAuth Profiles: Choose
YOUTUBE_MCP_SCOPE_PROFILE:full(default): all 43 toolsupload_only: read channel + upload videos only (no delete/comment/revenue scopes)read_only: read-only channel and analytics
Optional Media Directory Allowlist: Set
YOUTUBE_MCP_ALLOWED_MEDIA_DIRto restrict video and thumbnail uploads to a specific folder.Persistent Daily Quota Tracking: Tracks the 10,000-unit daily YouTube Data API v3 quota in
~/.youtube-mcp/quota.json(resetting at midnight Pacific Time) so server restarts do not lose quota state.Input Validation: Sanitizes YouTube IDs before Analytics filter queries and enforces YouTube's 2 MB limit on custom thumbnails.
Related MCP server: youtube-mcp
Prerequisites
Python 3.11+
A Google Cloud project with:
YouTube Data API v3
YouTube Analytics API
YouTube Reporting API
OAuth 2.0 Desktop App credentials (
client_secret.json)
Google Cloud Setup
Open Google Cloud Console and create or select a project.
Enable YouTube Data API v3, YouTube Analytics API, and YouTube Reporting API in APIs & Services > Library.
Configure APIs & Services > OAuth consent screen (External) and add your YouTube channel owner Google account as a Test User.
Go to APIs & Services > Credentials > Create Credentials > OAuth client ID > Desktop app.
Download the JSON file and save it as
~/.youtube-mcp/client_secret.json(or setYOUTUBE_MCP_CLIENT_SECRET).
Installation
git clone <your-repo-url>
cd youtube-upload-mcp
python -m venv .venvActivate the virtual environment and install:
# Windows (PowerShell)
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"
# macOS / Linux
source .venv/bin/activate
pip install -e ".[dev]"MCP Client Configuration
Example configuration for Claude Desktop, Claude Code, Cursor, Antigravity, or any MCP client:
Windows:
{
"mcpServers": {
"youtube": {
"command": "C:/path/to/youtube-upload-mcp/.venv/Scripts/youtube-upload-mcp.exe",
"env": {
"YOUTUBE_MCP_CLIENT_SECRET": "C:/Users/you/.youtube-mcp/client_secret.json",
"YOUTUBE_MCP_SCOPE_PROFILE": "full",
"YOUTUBE_MCP_ALLOWED_MEDIA_DIR": "C:/Users/you/Videos/ToUpload"
}
}
}
}macOS / Linux:
{
"mcpServers": {
"youtube": {
"command": "/path/to/youtube-upload-mcp/.venv/bin/youtube-upload-mcp",
"env": {
"YOUTUBE_MCP_CLIENT_SECRET": "/home/you/.youtube-mcp/client_secret.json",
"YOUTUBE_MCP_SCOPE_PROFILE": "full",
"YOUTUBE_MCP_ALLOWED_MEDIA_DIR": "/home/you/Videos/ToUpload"
}
}
}
}Tip: If you only want an AI assistant to upload videos and read stats without deletion or comment permissions, set
"YOUTUBE_MCP_SCOPE_PROFILE": "upload_only".
Testing & Verification
1. Run Automated Tests & Linter (No Google Account Needed)
pytest -v
ruff check src tests2. Test the MCP Server Interactively with MCP Inspector
If you have Node.js installed, you can inspect and call all 43 tools in a browser UI before connecting an AI client:
# Windows (PowerShell)
npx @modelcontextprotocol/inspector C:\path\to\youtube-upload-mcp\.venv\Scripts\youtube-upload-mcp.exe# macOS / Linux
npx @modelcontextprotocol/inspector /path/to/youtube-upload-mcp/.venv/bin/youtube-upload-mcp3. Safe Live End-to-End Test Checklist
Once your client_secret.json is in place (~/.youtube-mcp/client_secret.json), test in this order:
Call
youtube_auth: opens your browser to sign in with the Google account that owns your channel and saves~/.youtube-mcp/token.json.Call
youtube_auth_status: confirms authentication, activescope_profile, and remaining daily quota.Call
youtube_get_channelwithmine=True: verifies read access to your channel.Call
youtube_upload_videowith a short test.mp4(it defaults toprivacy_status="private"so nothing goes public until you publish it in YouTube Studio).
Environment Variables
Variable | Default | Description |
|
| Path to Google OAuth Desktop App JSON |
|
| Directory for |
|
|
|
| (unset) | Optional folder allowlist for video/thumbnail uploads |
|
| Daily quota limit enforced client-side |
| (unset) | Optional API key for public-only lookups |
Tools Reference (43 Tools)
Auth & Status (2):
youtube_auth,youtube_auth_statusChannel & Video (3):
youtube_get_channel,youtube_list_videos,youtube_get_videoPublishing (4):
youtube_upload_video,youtube_update_video,youtube_set_thumbnail,youtube_delete_videoPlaylists (6):
youtube_list_playlists,youtube_create_playlist,youtube_update_playlist,youtube_delete_playlist,youtube_add_to_playlist,youtube_remove_from_playlistComments (4):
youtube_list_comments,youtube_post_comment,youtube_reply_to_comment,youtube_delete_commentSearch & SEO (4):
youtube_search,youtube_search_suggestions,youtube_trending,youtube_get_categoriesTranscripts (2):
youtube_list_captions,youtube_get_transcriptAnalytics (13):
youtube_analytics_overview,youtube_analytics_top_videos,youtube_analytics_top_shorts,youtube_analytics_video_detail,youtube_analytics_traffic_sources,youtube_analytics_demographics,youtube_analytics_geography,youtube_analytics_daily,youtube_analytics_day_of_week,youtube_analytics_content_type_breakdown,youtube_analytics_revenue,youtube_analytics_revenue_by_video,youtube_analytics_retentionBulk Reporting (5):
youtube_reporting_list_types,youtube_reporting_create_job,youtube_reporting_list_jobs,youtube_reporting_list_reports,youtube_reporting_download
License
MIT
Available Tools
43 toolsyoutube_add_to_playlistB
Add a video to a playlist.
Args: playlist_id: Playlist ID to add the video to. video_id: Video ID to add. position: Optional 0-based position in the playlist.
Inputs: video_id (required), playlist_id (required), position.
youtube_analytics_content_type_breakdownCRead-onlyIdempotent
Compare performance of Shorts vs long-form videos vs live streams.
Inputs: end_date, start_date.
youtube_analytics_dailyCRead-onlyIdempotent
Get daily performance metrics over time.
Inputs: end_date, start_date.
youtube_analytics_day_of_weekCRead-onlyIdempotent
Get average performance aggregated by day of the week.
Inputs: end_date, start_date.
youtube_analytics_demographicsCRead-onlyIdempotent
Get audience age group and gender breakdown.
Inputs: end_date, start_date.
youtube_analytics_geographyCRead-onlyIdempotent
Get views and watch time by country.
Inputs: end_date, start_date, max_results.
youtube_analytics_overviewCRead-onlyIdempotent
Get channel-level analytics summary (views, watch time, subs, likes, comments, shares).
Inputs: end_date, start_date.
youtube_analytics_retentionCRead-onlyIdempotent
Get audience retention curve for a specific video.
Inputs: video_id (required), end_date, start_date.
youtube_analytics_revenueBRead-onlyIdempotent
Get revenue breakdown (requires YouTube Partner Program).
Inputs: end_date, start_date.
youtube_analytics_revenue_by_videoCRead-onlyIdempotent
Get revenue per video, sorted by highest revenue.
Inputs: end_date, start_date, max_results.
youtube_analytics_top_shortsCRead-onlyIdempotent
Get top-performing Shorts by views.
Inputs: end_date, start_date, max_results.
youtube_analytics_top_videosARead-onlyIdempotent
Get top-performing videos by views (excluding Shorts).
Inputs: end_date, start_date, max_results.
youtube_analytics_traffic_sourcesCRead-onlyIdempotent
Get traffic source breakdown (search, suggested, browse, external, etc.).
Inputs: end_date, video_id, start_date.
youtube_analytics_video_detailBRead-onlyIdempotent
Get daily analytics for a specific video.
Inputs: video_id (required), end_date, start_date.
youtube_authA
Initiate OAuth 2.0 authentication flow.
Opens a browser window for Google OAuth consent using your own client_secret.json. Required before using tools that access or modify your YouTube channel.
Inputs: no named parameters.
youtube_auth_statusARead-onlyIdempotent
Check current authentication status, scope profile, and daily quota usage.
Inputs: no named parameters.
youtube_create_playlistA
Create a new playlist (private by default).
Args: title: Playlist title. description: Playlist description. privacy_status: "private" (default), "public", or "unlisted".
Inputs: title (required), description, privacy_status.
youtube_delete_commentBDestructiveIdempotent
Delete a comment permanently. This action is irreversible.
Args: comment_id: Comment ID to delete. confirm: Must be True to execute the deletion.
Inputs: comment_id (required), confirm.
youtube_delete_playlistADestructiveIdempotent
Delete a playlist permanently. Does not delete the videos inside it.
Args: playlist_id: Playlist ID to delete. confirm: Must be True to execute the deletion.
Inputs: playlist_id (required), confirm.
youtube_delete_videoADestructiveIdempotent
Delete a video permanently. This action is irreversible.
Args: video_id: YouTube video ID to delete. confirm: Must be True to execute the deletion. When False (default), returns a safety confirmation prompt without deleting anything.
Inputs: video_id (required), confirm.
youtube_get_categoriesARead-onlyIdempotent
List assignable YouTube video categories for a region (costs 1 quota unit).
Inputs: region_code.
youtube_get_channelARead-onlyIdempotent
Get channel details by channel ID, handle (@username), or the authenticated channel.
Args: channel_id: YouTube channel ID (e.g., "UCxxxxxxx"). handle: Channel handle (e.g., "@mkbhd"). mine: If True, get the authenticated user's own channel.
Inputs: mine, handle, channel_id.
youtube_get_transcriptARead-onlyIdempotent
Get transcript/captions for a video.
Uses youtube-transcript-api by default (works for public videos, zero quota). Set use_official_api=True to use the official YouTube Data API (own videos).
Inputs: video_id (required), language, use_official_api.
youtube_get_videoBRead-onlyIdempotent
Get detailed metadata and statistics for a specific video.
Args: video_id: YouTube video ID (e.g., "dQw4w9WgXcQ").
Inputs: video_id (required).
youtube_list_captionsARead-onlyIdempotent
List available caption tracks for a video you own (requires OAuth).
Inputs: video_id (required).
youtube_list_commentsARead-onlyIdempotent
List top-level comments on a video.
Args: video_id: YouTube video ID. max_results: Number of comment threads to return (0 or negative fetches all). order: Sort order: "relevance" or "time".
Inputs: video_id (required), order, max_results.
youtube_list_playlistsBRead-onlyIdempotent
List playlists for a channel.
Args: channel_id: Channel ID to list playlists from. mine: If True, list the authenticated user's playlists. max_results: Number of playlists to return (0 or negative fetches all).
Inputs: mine, channel_id, max_results.
youtube_list_videosARead-onlyIdempotent
List videos from a channel or playlist, sorted by most recent.
Args: channel_id: Channel ID to list videos from. playlist_id: Playlist ID to list videos from (overrides channel_id). mine: If True, list the authenticated user's videos. max_results: Number of videos to return. Values above 50 page through results; 0 or negative fetches every video in the playlist.
Inputs: mine, channel_id, max_results, playlist_id.
youtube_post_commentB
Post a new top-level comment on a video.
Args: video_id: YouTube video ID to comment on. text: Comment text.
Inputs: text (required), video_id (required).
youtube_remove_from_playlistADestructiveIdempotent
Remove a video from a playlist using its playlist_item_id.
Args: playlist_item_id: The playlist item ID (not the video ID). confirm: Must be True to execute the removal.
Inputs: playlist_item_id (required), confirm.
youtube_reply_to_commentA
Reply to an existing comment.
Args: parent_id: Comment ID to reply to (from youtube_list_comments). text: Reply text.
Inputs: text (required), parent_id (required).
youtube_reporting_create_jobC
Schedule a daily bulk reporting job.
Inputs: report_type_id (required), name.
youtube_reporting_downloadBRead-onlyIdempotent
Download a report CSV from a trusted Google API HTTPS URL.
Only https://*.googleapis.com URLs are permitted so OAuth tokens cannot be leaked to untrusted hosts.
Inputs: download_url (required).
youtube_reporting_list_jobsBRead-onlyIdempotent
List all active reporting jobs.
Inputs: no named parameters.
youtube_reporting_list_reportsCRead-onlyIdempotent
List available reports for a reporting job.
Inputs: job_id (required).
youtube_reporting_list_typesBRead-onlyIdempotent
List available YouTube bulk report types.
Inputs: no named parameters.
youtube_searchCRead-onlyIdempotent
Search YouTube for videos, channels, or playlists (costs 100 quota units).
Inputs: query (required), order, channel_id, max_results, +4 more.
youtube_search_suggestionsBRead-onlyIdempotent
Get YouTube autocomplete/search suggestions for SEO research (no quota cost).
Inputs: query (required), language.
youtube_set_thumbnailAIdempotent
Upload a custom thumbnail for a video (max 2 MB).
Args: video_id: YouTube video ID. file_path: Path to the thumbnail image (JPEG, PNG, GIF, or BMP; max 2 MB).
Inputs: video_id (required), file_path (required).
youtube_trendingBRead-onlyIdempotent
Get currently trending videos on YouTube (costs 1 quota unit).
Inputs: category_id, max_results, region_code.
youtube_update_playlistBIdempotent
Update metadata for an existing playlist.
Args: playlist_id: Playlist ID to update. title: New title. description: New description. privacy_status: "private", "public", or "unlisted".
Inputs: playlist_id (required), title, description, privacy_status.
youtube_update_videoAIdempotent
Update metadata for an existing video.
Only provided fields are updated; others remain unchanged.
Args: video_id: YouTube video ID. title: New title (max 100 characters). description: New description (max 5,000 characters). tags: New tags (replaces existing tags). category_id: New category ID. privacy_status: "private", "public", or "unlisted". publish_at: ISO 8601 datetime to schedule publishing (requires privacy_status="private"). made_for_kids: COPPA self-declaration (True/False).
Inputs: video_id (required), tags, title, publish_at, +4 more.
youtube_upload_videoA
Upload a video to YouTube.
Costs 1,600 quota units. Video is uploaded as private by default.
Args: file_path: Path to the local video file. title: Video title (max 100 characters). description: Video description (max 5,000 characters). tags: Optional list of tags. category_id: YouTube category ID (default "22" = People & Blogs). privacy_status: "private" (default), "public", or "unlisted". publish_at: ISO 8601 datetime to schedule publishing (requires privacy_status="private"). made_for_kids: COPPA self-declaration (default False).
Inputs: title (required), file_path (required), tags, publish_at, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 43 tools
The analytics family is granular but mostly non-overlapping (traffic sources vs demographics vs geography vs retention), and the CRUD tools target distinct resources. Minor confusion is possible between youtube_analytics_daily, youtube_analytics_video_detail, and youtube_analytics_day_of_week, and between youtube_list_captions and youtube_get_transcript, but descriptions clarify the boundaries.
Nearly all names follow a predictable youtube_<verb>_<noun> snake_case pattern with consistent prefixes for sub-areas (youtube_analytics_*, youtube_reporting_*). The analytics and reporting groups use noun_metric naming rather than verb_noun, which is a minor deviation but internally consistent.
43 tools is a very large surface for one server, roughly triple the comfortable range. While the domain (upload, analytics, playlists, comments, reporting) is broad, the 14-tool analytics family alone suggests the surface could be consolidated or split into separate servers.
Core lifecycle is well covered: upload/update/delete video, thumbnail, full playlist CRUD plus add/remove, comment list/post/reply/delete, search, trending, and rich analytics. Gaps remain around comment moderation (no hold/spam/approve), caption upload/download/delete, and video interactions like ratings, but these are workaroundable.
Maintenance
Related MCP Connectors
Hosted MCP for YouTube Studio: uploads, metadata, playlists, comments, analytics, captions.
Real-time YouTube transcripts, comments, channels & video search MCP. Local npx or hosted OAuth.
Publish and schedule videos to TikTok, YouTube Shorts, Instagram, Facebook, LinkedIn, Pinterest, Bluesky, Threads and X from Claude, Cursor or any MCP client. Upload once, post everywhere, track views in unified analytics, and retry failed posts. Official platform APIs only, free plan available. Docs: https://docs.multi-upload-tool.com/mcp
Build, run, schedule, and publish AI video pipelines to YouTube and TikTok from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables YouTube video upload, metadata updates, thumbnail management, stats retrieval, and analytics via the YouTube Data API v3 and Analytics API using OAuth 2.0.-
- AlicenseAqualityDmaintenanceEnables Claude to control a YouTube channel through MCP, including uploading and editing videos, scheduling releases, and reading channel and video analytics via official APIs.8MIT
- AlicenseAqualityBmaintenanceEnables MCP clients like Claude or Cursor to upload videos from your local machine directly to YouTube, schedule them, and manage channel content through Runsheet.1150 npmMIT
- AlicenseBqualityBmaintenanceEnables AI agents to control a YouTube channel end-to-end by uploading videos, editing metadata, managing playlists, moderating comments, and reading analytics through MCP tools.20MIT