YouTube MCP

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.

Category
Visit Server

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

  1. 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).

  2. Credentials

    cp .env.example .env
    # fill in YOUTUBE_CLIENT_ID and YOUTUBE_CLIENT_SECRET
    
  3. Authorize once (opens a browser):

    ./run.sh authorize
    

    Writes a refresh token to ~/.local/share/youtube-mcp/token.json (off the exFAT drive, git-ignored).

  4. Register with Claude Code (~/.claude.json or project .mcp.json):

    {
      "mcpServers": {
        "youtube": { "command": "/Volumes/NO NAME/youtube-mcp/run.sh" }
      }
    }
    

Tools

  • youtube_whoami — channel id, counts, verification status
  • youtube_list_uploads — recent uploads + video ids
  • youtube_upload — upload a local file (title, tags, category, privacy, publish_at, thumbnail)
  • youtube_update_metadata — partial edit; unspecified fields preserved
  • youtube_set_thumbnail — set a custom thumbnail
  • youtube_ab_start / youtube_ab_rotate / youtube_ab_report — pseudo A/B thumbnails
  • youtube_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.json grants ongoing access to your channel — treat like a password.
  • .env, token.json, ab_tests.json are 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured