Skip to main content
Glama

YouTube MCP

A safe, local-first Model Context Protocol server for inspecting and managing a creator-owned YouTube channel.

@fullstackcraftllc/youtube-mcp uses Google's official YouTube Data API v3 and YouTube Analytics API. It does not scrape YouTube, download videos, send telemetry, or provide a hosted intermediary.

Features

  • Inspect your channel and page through its uploads.

  • Read owned-video metadata and public statistics.

  • Analyze channel/video performance, traffic sources, YouTube search terms, and audience retention.

  • Preview exact title, description, tag, and category changes.

  • Apply only an unexpired reviewed preview after rechecking ownership and remote state.

  • Maintain separate readonly and manage OAuth authorizations in named local profiles.

Version 0.1 intentionally excludes uploads, deletes, thumbnails, visibility, comments, playlists, monetization, public-channel research, transcripts, and HTTP hosting.

Related MCP server: YouTube MCP Server

Requirements

  • Node.js 22 or newer.

  • A creator-owned YouTube channel.

  • Your own Google Cloud project and Desktop OAuth client.

Follow Google Cloud setup before logging in. Never commit the downloaded OAuth client JSON.

Authorize a profile

Readonly analytics:

npx -y @fullstackcraftllc/youtube-mcp@0.1.0 auth login \
  --profile vannacharm \
  --mode readonly \
  --client-secrets /absolute/path/to/client_secret.json

Metadata management uses a separate token and explicit extra permission:

npx -y @fullstackcraftllc/youtube-mcp@0.1.0 auth login \
  --profile vannacharm \
  --mode manage \
  --client-secrets /absolute/path/to/client_secret.json

If Google exposes multiple channels, repeat the command with --channel-id <id> after the CLI prints the valid choices.

Check configuration without exposing credentials:

npx -y @fullstackcraftllc/youtube-mcp@0.1.0 auth status --profile vannacharm --mode readonly
npx -y @fullstackcraftllc/youtube-mcp@0.1.0 doctor --profile vannacharm --mode readonly

MCP client configuration

Codex, readonly:

codex mcp add youtube \
  -- npx -y @fullstackcraftllc/youtube-mcp@0.1.0 serve --profile vannacharm --mode readonly

Codex, manage mode as a separately named server:

codex mcp add youtube-manage \
  -- npx -y @fullstackcraftllc/youtube-mcp@0.1.0 serve --profile vannacharm --mode manage

Claude Desktop:

{
  "mcpServers": {
    "youtube": {
      "command": "npx",
      "args": [
        "-y",
        "@fullstackcraftllc/youtube-mcp@0.1.0",
        "serve",
        "--profile",
        "vannacharm",
        "--mode",
        "readonly"
      ]
    }
  }
}

The server starts even if authorization is missing so the client can call youtube_get_auth_status. Other tools return AUTH_REQUIRED until the selected profile and mode are authorized.

Safe metadata updates

There is no direct update tool. The workflow is:

  1. Call youtube_preview_video_update with one or more proposed fields.

  2. Review the complete before/after diff, video ID, channel ID, expiry, and hash.

  3. Call youtube_apply_video_update with the preview ID, hash, and exact video ID.

Apply re-fetches current metadata and fails if anything changed since preview. YouTube receives a complete writable snippet so omitted fields are preserved. A preview expires after ten minutes and is consumed after one apply attempt.

See the complete tool reference, privacy and deletion behavior, and threat model.

Other CLI commands

youtube-mcp profiles list
youtube-mcp auth revoke --profile vannacharm --mode readonly
youtube-mcp auth revoke --profile vannacharm --mode manage
youtube-mcp --help
youtube-mcp --version

Local development

git clone https://github.com/FullStackCraft/youtube-mcp.git
cd youtube-mcp
npm install
npm run release:check

Run locally from an MCP client with:

node /absolute/path/to/youtube-mcp/dist/index.js serve --profile vannacharm --mode readonly

Compliance and affiliation

Use of this software is subject to the YouTube Terms of Service, YouTube API Services Terms of Service, and Google Privacy Policy.

YouTube and Google are trademarks of Google LLC. This independent project is not affiliated with, sponsored by, or endorsed by YouTube or Google.

License

MIT © Full Stack Craft LLC.

Available Tools

10 tools
youtube_get_auth_statusGet YouTube authorization statusA
Read-onlyIdempotent

Inspect the selected local profile and authorization mode without exposing credentials.

Inputs: no named parameters. Returns: ok, data, meta, error

youtube_get_channel_analyticsGet channel analyticsB
Read-onlyIdempotent

Return fixed non-monetary YouTube Analytics metrics for the selected channel.

Inputs: endDate (required), startDate (required). Returns: ok, data, meta, error

youtube_get_my_channelGet my YouTube channelA
Read-onlyIdempotent

Return metadata and statistics for the channel bound to the selected profile.

Inputs: no named parameters. Returns: ok, data, meta, error

youtube_get_videoGet one of my YouTube videosA
Read-onlyIdempotent

Return metadata and statistics for an owned video; non-owned videos are rejected.

Inputs: videoId (required). Returns: ok, data, meta, error

youtube_get_video_analyticsGet video analyticsA
Read-onlyIdempotent

Return fixed non-monetary analytics metrics for an owned video.

Inputs: endDate (required), videoId (required), startDate (required). Returns: ok, data, meta, error

youtube_get_video_retentionGet video audience retentionC
Read-onlyIdempotent

Return normalized audience-retention points for an owned video.

Inputs: endDate (required), videoId (required), startDate (required). Returns: ok, data, meta, error

youtube_get_video_search_termsGet video YouTube search termsC
Read-onlyIdempotent

Return YouTube search terms that led to an owned video.

Inputs: endDate (required), videoId (required), startDate (required), limit. Returns: ok, data, meta, error

youtube_get_video_traffic_sourcesGet video traffic sourcesB
Read-onlyIdempotent

Return YouTube traffic-source types for an owned video, sorted by views.

Inputs: endDate (required), videoId (required), startDate (required). Returns: ok, data, meta, error

youtube_list_my_videosList my YouTube videosA
Read-onlyIdempotent

Page through videos in the selected channel's uploads playlist.

Inputs: pageSize, pageToken. Returns: ok, data, meta, error

youtube_list_video_categoriesList YouTube video categoriesA
Read-onlyIdempotent

List assignable and non-assignable categories for a region.

Inputs: regionCode. Returns: ok, data, meta, error

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of YouTube data: auth status, channel info, channel analytics, video info, video analytics, retention, search terms, traffic sources, video listing, and categories. No overlap in functionality.

    Naming Consistency5/5

    All tools follow a consistent pattern of 'youtube_get_' or 'youtube_list_', with clear verb_noun structure. The naming is uniform and predictable.

    Tool Count5/5

    10 tools is a well-scoped set for a YouTube analytics and data retrieval server. It covers essential read operations without being overwhelming.

    Completeness4/5

    The toolset comprehensively covers retrieval of channel and video data, analytics, and categories. While it lacks write operations and general video search, the focus on owned-content analytics is well-served, with only minor gaps like missing video comments or playlist management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers