Sponsored by Deepsite.site

YouTube MCP Server

Created By
adamanz7 months ago
An MCP server that enables uploading videos to YouTube through Claude Desktop or any MCP-compatible client
Content

YouTube MCP Server

An MCP (Model Context Protocol) server that enables uploading videos to YouTube through Claude Desktop or any MCP-compatible client.

Features

  • 📹 Upload Videos: Upload video files to YouTube with customizable metadata
  • 🔐 OAuth2 Authentication: Secure authentication with YouTube API
  • 📊 Quota Checking: Monitor your YouTube API usage
  • 📝 Category Listing: Browse available video categories
  • 🔧 Easy Setup: Built-in credential configuration tool

Prerequisites

  • Python 3.10 or higher
  • A Google Cloud Project with YouTube Data API v3 enabled
  • OAuth2 credentials from Google Cloud Console
  • Claude Desktop (or another MCP client)

Setup Instructions

1. Install Dependencies

# Clone or download this repository
cd youtube-mcp-server

# Create virtual environment
python -m venv venv

# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
# venv\Scripts\activate

# Install required packages
pip install -r requirements.txt

2. Set Up Google Cloud Credentials

  1. Go to Google Cloud Console
  2. Create a new project or select existing one
  3. Enable YouTube Data API v3:
    • Go to "APIs & Services" > "Library"
    • Search for "YouTube Data API v3"
    • Click Enable
  4. Create OAuth2 credentials:
    • Go to "APIs & Services" > "Credentials"
    • Click "Create Credentials" > "OAuth client ID"
    • Choose "Desktop app" as application type
    • Download the credentials JSON file

3. Configure Claude Desktop

Add the server to your Claude Desktop configuration:

macOS/Linux:

# Open config file
code ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows:

code $env:AppData\Claude\claude_desktop_config.json

Add this configuration:

{
    "mcpServers": {
        "youtube-uploader": {
            "command": "python",
            "args": [
                "/ABSOLUTE/PATH/TO/youtube-mcp-server/youtube_uploader.py"
            ]
        }
    }
}

4. First-Time Authentication

  1. Restart Claude Desktop
  2. Use the setup_youtube_auth tool with your OAuth2 credentials:
    • Provide client_id, client_secret, and project_id from downloaded JSON
  3. Try uploading a video - a browser window will open for authentication
  4. Grant permissions to your YouTube account

Available Tools

1. upload_video

Upload a video file to YouTube.

Parameters:

  • file_path (required): Path to video file
  • title (required): Video title
  • description: Video description
  • keywords: Comma-separated tags
  • category_id: YouTube category ID (default: 22)
  • privacy_status: "private", "unlisted", or "public" (default: private)
  • made_for_kids: Boolean for COPPA compliance

Example:

Upload the video at /Users/me/video.mp4 with title "My Amazing Video" and description "This is a test upload"

2. check_upload_quota

Check your YouTube API quota usage and channel information.

3. list_video_categories

List available YouTube video categories for a specific region.

Parameters:

  • region_code: ISO country code (default: US)

4. setup_youtube_auth

Configure OAuth2 credentials for YouTube API access.

Important Notes

  • Quota Limits: YouTube API has daily quotas. Each upload costs ~1,600 units out of 1,600,000 daily units.
  • File Size: Large files may take time to upload. The server uses resumable uploads.
  • Privacy: Videos upload as "private" by default for safety.
  • Authentication: OAuth2 tokens are stored locally in token.json.

Troubleshooting

  1. "Missing credentials.json": Run setup_youtube_auth first
  2. Authentication errors: Delete token.json and re-authenticate
  3. Upload failures: Check file path, size, and format
  4. Quota exceeded: Wait 24 hours for quota reset

Security

  • Keep your credentials.json and token.json files secure
  • Don't commit these files to version control
  • OAuth2 tokens expire; the server will refresh them automatically

License

MIT License

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Serper MCP ServerA Serper MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.