YouTube MCP
Enables managing a YouTube channel through natural language: upload videos, edit metadata, set thumbnails, run pseudo A/B thumbnail tests, and pull analytics.
README
YouTube MCP
MCP server for driving your own YouTube channel from Claude: upload videos, edit metadata, set thumbnails, run pseudo-A/B thumbnail tests, and pull analytics.
What works (and what YouTube won't let anyone do via API)
| Capability | Status |
|---|---|
| Upload videos (resumable, with schedule) | ✅ youtube_upload |
| Edit title / description / tags / category / privacy | ✅ youtube_update_metadata |
| Set custom thumbnail | ✅ youtube_set_thumbnail (channel must be verified) |
| Analytics: views, watch time, avg view %, subs, likes | ✅ youtube_analytics |
| Native thumbnail/title A/B "Test & Compare" | ❌ No public API — Studio-only |
| Impressions & click-through-rate (CTR) | ❌ Not exposed by the Analytics API — Studio-only |
Because the last two are walled off by YouTube, the A/B tools here rotate thumbnails on a ledger and compare views gained per equal-length window as a CTR proxy. Useful, but not a rigorous split test. Use windows ≥ 24h.
Setup
-
Google Cloud → enable YouTube Data API v3 and YouTube Analytics API. Create an OAuth Client ID of type Desktop app. Add your Google account under OAuth consent screen → Test users (or publish to Production for durable tokens — Testing-mode refresh tokens die after 7 days idle).
-
Credentials
cp .env.example .env # fill in YOUTUBE_CLIENT_ID and YOUTUBE_CLIENT_SECRET -
Authorize once (opens a browser):
./run.sh authorizeWrites a refresh token to
~/.local/share/youtube-mcp/token.json(off the exFAT drive, git-ignored). -
Register with Claude Code (
~/.claude.jsonor project.mcp.json):{ "mcpServers": { "youtube": { "command": "/Volumes/NO NAME/youtube-mcp/run.sh" } } }
Tools
youtube_whoami— channel id, counts, verification statusyoutube_list_uploads— recent uploads + video idsyoutube_upload— upload a local file (title, tags, category, privacy,publish_at, thumbnail)youtube_update_metadata— partial edit; unspecified fields preservedyoutube_set_thumbnail— set a custom thumbnailyoutube_ab_start/youtube_ab_rotate/youtube_ab_report— pseudo A/B thumbnailsyoutube_analytics— per-video analytics over a date range
Hands-off A/B rotation (optional, launchd)
youtube_ab_start sets V0 live. To auto-advance every 48h without babysitting,
schedule the rotate step:
<!-- ~/Library/LaunchAgents/com.you.youtube-ab.plist -->
<plist version="1.0"><dict>
<key>Label</key><string>com.you.youtube-ab</string>
<key>ProgramArguments</key>
<array>
<string>/Volumes/NO NAME/youtube-mcp/run.sh</string>
<string>rotate</string>
<string>YOUR_VIDEO_ID</string>
</array>
<key>StartInterval</key><integer>172800</integer> <!-- 48h -->
</dict></plist>
launchctl load ~/Library/LaunchAgents/com.you.youtube-ab.plist
Security
token.jsongrants ongoing access to your channel — treat like a password..env,token.json,ab_tests.jsonare git-ignored. Never commit them.- Rotate the client secret in Google Cloud if it ever leaks.
Author
Built by Jayadev Rana — @bluealgocapital · YouTube · GitHub
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.