Skip to main content
Glama

youtube-mcp

An MCP server that gives Claude control of a YouTube channel: upload videos, edit metadata, schedule releases, and read analytics — through YouTube's official Data and Analytics APIs.

Built for people running a posting workflow, where "publish Tuesday's video at 3pm and tell me how last week's did" should be one sentence, not twenty clicks.

Read this before you build on it

Two limits are policy, not code. Neither stops you developing, but both will shape what you can ship, and it's better to know now than after you've wired up a content pipeline.

1. Unaudited API projects can only upload private videos. Until your Google Cloud project passes YouTube's review, every video the API uploads is locked to private — you can't publish, and you can't flip it to public afterwards. Fix it by submitting the YouTube API Services Audit and Quota Extension form. The server tells you when this has happened rather than leaving you to wonder where your video went.

2. Quota is 10,000 units/day, and an upload costs ~1,600. That's about six uploads a day, then you're locked out until midnight Pacific. Raising it goes through the same form. Costs per tool are listed below so you can budget.

Related MCP server: youtube-mcp

Setup

1. Google Cloud

  1. Create a project at console.cloud.google.com

  2. Enable YouTube Data API v3 and YouTube Analytics API

  3. Configure the OAuth consent screen, adding your channel's Google account as a test user

  4. Create an OAuth 2.0 Client ID of type Desktop app, download the JSON

While the consent screen is in "Testing" status, refresh tokens expire after 7 days and you'll re-authorize constantly. Publishing the app stops that.

2. Install

git clone https://github.com/GhOsT0407/youtube-mcp.git
cd youtube-mcp
pip install -e .

3. Authorize

Save the downloaded JSON to ~/.youtube-mcp/client_secret.json, then:

youtube-mcp auth

That opens a browser once and stores a refresh token at ~/.youtube-mcp/token.json. The server never runs this flow itself — an MCP tool call has no way to show you a consent screen.

4. Add to your MCP client

Claude Code:

claude mcp add youtube -- youtube-mcp

Claude Desktop — in claude_desktop_config.json:

{
  "mcpServers": {
    "youtube": {
      "command": "youtube-mcp"
    }
  }
}

If youtube-mcp isn't on PATH, use the full interpreter path and ["-m", "youtube_mcp"] as args.

Then ask Claude to run auth_status to confirm it's connected.

Tools

Tool

What it does

Quota

auth_status

Confirm credentials, show which channel they control

1

upload_video

Upload a file with title, description, tags, privacy, optional schedule

~1600

update_video

Change metadata on an existing video

~51

schedule_video

Set a private video to go public at a given time

~51

set_thumbnail

Set a custom thumbnail

~50

list_my_videos

Recent uploads, newest first — how you find video IDs

~3

video_analytics

Views, watch time, retention for one video

separate quota

channel_analytics

Channel-wide totals, or a daily/per-video breakdown

separate quota

Notes that save debugging time

  • update_video merges. The raw API replaces the entire snippet on write, so a partial update silently blanks your description. This reads the current state and merges first — passing only title changes only the title.

  • Scheduling requires privacy. YouTube only honours publishAt on a private video. schedule_video and upload_video set that for you.

  • made_for_kids is a legal declaration under COPPA, not a preference. Set it to match what the content actually is.

  • Analytics lag 2–3 days. Yesterday's numbers won't be there yet.

  • Large uploads are slow and synchronous. A long file can outlast an MCP client's tool timeout. Upload big files when you can leave it alone.

Example

Upload episode-12.mp4 as "How I Automate My Channel", tag it automation and youtube, schedule it for next Tuesday 3pm UTC, then show me how episode 11 did over the last 30 days.

Claude chains upload_video → schedule_video → list_my_videos → video_analytics on its own.

Security

Your client_secret.json and token.json are the keys to your channel. They live in ~/.youtube-mcp/, and .gitignore excludes them — keep it that way. Anyone with that token can post as you.

Requirements

  • Python 3.10+

  • A Google Cloud project with the two APIs enabled

  • A YouTube channel on the authorizing account

License

MIT — see LICENSE.

Available Tools

8 tools
auth_statusA

Confirm the stored credentials work and report which channel they control.

Run this first when something is misbehaving. Quota cost: 1 unit.

Inputs: no named parameters.

channel_analyticsA

Channel-wide performance over a date range (YYYY-MM-DD).

Pass dimensions="day" for a time series, or "video" for a per-video breakdown of the period. Figures lag real time by roughly two to three days.

Inputs: end_date (required), start_date (required), metrics, dimensions.

list_my_videosA

List recent uploads on the authorized channel, newest first.

Quota cost: ~3 units. Use this to find the video_id the other tools need.

Inputs: max_results. Returns: result

schedule_videoA

Schedule an existing private video to go public at a given time.

Quota cost: ~51 units. publish_at is ISO 8601, e.g. 2026-09-10T15:00:00Z; a bare timestamp is read as UTC. The video must stay private until then, which this sets for you.

Inputs: video_id (required), publish_at (required).

set_thumbnailA

Set a custom thumbnail. Quota cost: ~50 units.

Needs a verified channel with custom thumbnails enabled. JPEG or PNG, under 2MB, 1280x720 recommended.

Inputs: video_id (required), image_path (required).

update_videoA

Change the metadata on an existing video. Only the fields you pass change.

Quota cost: ~51 units (1 to read the current state, 50 to write).

The underlying API replaces the whole snippet on write, so this reads the video first and merges - passing only title will not blank the description the way a raw API call would.

Inputs: video_id (required), tags, title, category_id, +2 more.

upload_videoA

Upload a video file to the authorized channel.

Quota cost: ~1600 units - about six uploads on the default daily allowance.

privacy_status is one of private/unlisted/public. Set publish_at (ISO 8601, e.g. 2026-09-10T15:00:00Z) to schedule a release; YouTube requires a scheduled video to be private until its moment arrives, so publish_at forces privacy_status to private.

made_for_kids is a legal declaration under COPPA, not a preference - set it to match what the content actually is.

Common category_id values: 22 People & Blogs, 27 Education, 28 Science & Technology, 24 Entertainment, 20 Gaming, 10 Music.

Inputs: title (required), file_path (required), tags, publish_at, +4 more.

video_analyticsB

Performance for one video over a date range (YYYY-MM-DD).

Uses the YouTube Analytics API, which has its own quota separate from the Data API. Figures lag real time by roughly two to three days.

Inputs: end_date (required), video_id (required), start_date (required), metrics.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct action: auth status, upload, metadata update, scheduling, thumbnail, list, and analytics. schedule_video is the only possible overlap with update_video, but its dedicated publishing workflow is clearly separated. An agent can reliably select the right tool.

    Naming Consistency4/5

    Most tools follow a clear verb_noun pattern: upload_video, update_video, schedule_video, set_thumbnail, list_my_videos. auth_status and the analytics tools use noun-based names, but these are consistent and recognizable as status/analytics operations.

    Tool Count5/5

    Eight tools cover the core channel management and analytics workflow without bloat. Each tool earns its place, and the count is well-scoped for a YouTube-focused MCP server.

    Completeness4/5

    The set covers the essential video lifecycle: upload, list, update metadata, schedule publishing, set thumbnail, and retrieve analytics. Missing delete and single-video fetch are minor gaps given the server's clear focus on publishing and performance.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers