Skip to main content
Glama

youtube-mcp

FastMCP server for YouTube — videos, channels, playlists, comments, and analytics.

Covers the YouTube Data API v3 and YouTube Analytics API with 25 tools.

Setup

1. Enable APIs in GCP Console

2. Configure credentials

mkdir -p ~/.config/youtube-mcp
cp ~/.config/google-docs-mcp/credentials.json ~/.config/youtube-mcp/credentials.json

3. Run OAuth flow

cd ~/youtube-mcp && uv run python -m youtube_mcp.auth

This opens a browser for consent. The token is saved to ~/.config/youtube-mcp/token.json.

4. Register with Claude Code

claude mcp add --scope user youtube -- uvx --from ~/youtube-mcp youtube-mcp

5. Restart Claude Code

The youtube server should appear with 25 tools.

Related MCP server: MCP YouTube Intelligence

Tools (25)

Videos (6)

Tool

Quota

Description

search_videos

100

Search YouTube by query

get_video_details

1

Get metadata for video(s) by ID

upload_video

1600

Upload video file with metadata

update_video

50

Update video title/description/tags

delete_video

50

Delete a video

get_captions

200

List caption tracks for a video

Channels (2)

Tool

Quota

Description

get_my_channel

1

Get authenticated channel info

list_channel_videos

100

List videos on a channel

Playlists (6)

Tool

Quota

Description

list_playlists

1

List playlists (mine or by channel)

create_playlist

50

Create new playlist

update_playlist

50

Update playlist metadata

delete_playlist

50

Delete a playlist

list_playlist_items

1

List videos in a playlist

add_to_playlist

50

Add video to playlist

Comments (4)

Tool

Quota

Description

list_comments

1

List comments on a video

add_comment

50

Post a top-level comment

reply_to_comment

50

Reply to a comment

delete_comment

50

Delete a comment

Subscriptions (3)

Tool

Quota

Description

list_subscriptions

1

List my subscriptions

subscribe

50

Subscribe to a channel

unsubscribe

50

Unsubscribe

Analytics (2)

Tool

Quota

Description

get_channel_analytics

—

Channel-level metrics (views, watch time, subs)

get_video_analytics

—

Per-video metrics

Misc (2)

Tool

Quota

Description

list_categories

1

List video categories for a region

set_thumbnail

50

Upload custom thumbnail

Quota

YouTube Data API daily quota is 10,000 units. Key costs:

  • Search: 100 units per call

  • Upload: 1,600 units per call

  • List operations: 1 unit

  • Insert/Update/Delete: 50 units

License

MIT

Available Tools

25 tools
add_commentA

Post a top-level comment on a video. Costs 50 quota units.

Args: video_id: The video ID to comment on text: Comment text

Inputs: video_id (required), text (required). Returns: object

add_to_playlistB

Add a video to a playlist. Costs 50 quota units.

Args: playlist_id: The playlist ID video_id: The video ID to add

Inputs: playlist_id (required), video_id (required). Returns: object

create_playlistB

Create a new playlist. Costs 50 quota units.

Args: title: Playlist title description: Playlist description privacy_status: private, unlisted, or public (default private)

Inputs: title (required), description, privacy_status. Returns: object

delete_commentB

Delete a comment. Costs 50 quota units.

Args: comment_id: The comment ID to delete

Inputs: comment_id (required). Returns: object

delete_playlistA

Delete a playlist. Costs 50 quota units. This is irreversible.

Args: playlist_id: The playlist ID to delete

Inputs: playlist_id (required). Returns: object

delete_videoA

Delete a video. Costs 50 quota units. This is irreversible.

Args: video_id: The video ID to delete

Inputs: video_id (required). Returns: object

get_captionsA

List available caption tracks for a video. Costs 200 quota units to download.

Args: video_id: The video ID

Inputs: video_id (required). Returns: result

get_channel_analyticsA

Get channel-level analytics. Requires yt-analytics.readonly scope.

Args: start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format metrics: Comma-separated metrics (default: views,estimatedMinutesWatched,subscribersGained,subscribersLost,likes,dislikes) dimensions: Optional comma-separated dimensions (e.g. day, country, video)

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

get_my_channelA

Get info about the authenticated user's YouTube channel. Costs 1 quota unit.

Inputs: no named parameters. Returns: object

get_video_analyticsA

Get analytics for a specific video. Requires yt-analytics.readonly scope.

Args: video_id: The video ID to get analytics for start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format metrics: Comma-separated metrics (default: views,estimatedMinutesWatched,averageViewDuration,likes,dislikes,shares)

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

get_video_detailsA

Get detailed metadata for one or more videos. Costs 1 quota unit.

Args: video_ids: Comma-separated video IDs (up to 50)

Inputs: video_ids (required). Returns: result

list_categoriesA

List available YouTube video categories. Costs 1 quota unit.

Args: region_code: ISO 3166-1 alpha-2 country code (default US)

Inputs: region_code. Returns: result

list_channel_videosB

List videos on a channel. Costs 100 quota units (uses search.list).

Args: channel_id: The channel ID max_results: Number of results (1-50, default 25) order: Sort order — date, rating, viewCount, relevance, title

Inputs: channel_id (required), max_results, order. Returns: result

list_commentsA

List top-level comments on a video. Costs 1 quota unit.

Args: video_id: The video ID max_results: Number of comment threads (1-100, default 20) order: Sort — relevance or time

Inputs: video_id (required), max_results, order. Returns: result

list_playlist_itemsA

List videos in a playlist. Costs 1 quota unit.

Args: playlist_id: The playlist ID max_results: Number of results (1-50, default 50)

Inputs: playlist_id (required), max_results. Returns: result

list_playlistsA

List playlists. If channel_id is omitted, lists the authenticated user's playlists. Costs 1 quota unit.

Args: channel_id: Channel ID to list playlists for (omit for your own) max_results: Number of results (1-50, default 25)

Inputs: channel_id, max_results. Returns: result

list_subscriptionsB

List the authenticated user's subscriptions. Costs 1 quota unit.

Args: max_results: Number of results (1-50, default 25)

Inputs: max_results. Returns: result

reply_to_commentB

Reply to a comment. Costs 50 quota units.

Args: parent_comment_id: The comment ID to reply to text: Reply text

Inputs: parent_comment_id (required), text (required). Returns: object

search_videosB

Search YouTube videos by query. Costs 100 quota units per call.

Args: query: Search query string max_results: Number of results (1-50, default 10) order: Sort order — relevance, date, rating, viewCount, title video_type: Filter — any, episode, movie

Inputs: query (required), max_results, order, video_type. Returns: result

set_thumbnailA

Upload a custom thumbnail for a video. Costs 50 quota units.

Args: video_id: The video ID file_path: Absolute path to the thumbnail image (JPEG, PNG, GIF, BMP; max 2MB)

Inputs: video_id (required), file_path (required). Returns: object

subscribeB

Subscribe to a YouTube channel. Costs 50 quota units.

Args: channel_id: The channel ID to subscribe to

Inputs: channel_id (required). Returns: object

unsubscribeA

Unsubscribe (delete a subscription). Costs 50 quota units.

Args: subscription_id: The subscription ID (from list_subscriptions)

Inputs: subscription_id (required). Returns: object

update_playlistB

Update playlist metadata. Costs 50 quota units.

Args: playlist_id: The playlist ID title: New title (or None to keep current) description: New description (or None to keep current) privacy_status: New privacy — private, unlisted, public (or None to keep current)

Inputs: playlist_id (required), title, description, privacy_status. Returns: object

update_videoA

Update video metadata. Costs 50 quota units. Only provided fields are changed.

Args: video_id: The video ID to update title: New title (or None to keep current) description: New description (or None to keep current) tags: New tags list (or None to keep current) category_id: New category ID (or None to keep current) privacy_status: New privacy — private, unlisted, public (or None to keep current)

Inputs: video_id (required), title, description, tags, +2 more. Returns: object

upload_videoA

Upload a video file to YouTube. Costs 1600 quota units. Resumable upload.

Args: file_path: Absolute path to the video file on disk title: Video title description: Video description tags: List of tags category_id: YouTube category ID (default "22" = People & Blogs) privacy_status: private, unlisted, or public (default private)

Inputs: file_path (required), title (required), description, tags, +2 more. Returns: object

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 25 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific YouTube resources (videos, playlists, comments, analytics, etc.), with clear boundaries. However, some potential overlap exists between 'list_channel_videos' and 'search_videos' when searching within a channel, though descriptions help differentiate them. Overall, ambiguity is minimal.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout (e.g., add_comment, create_playlist, delete_video, get_video_details, list_playlists, update_playlist, upload_video). All tools use snake_case with clear action-object naming, making them predictable and readable.

    Tool Count3/5

    With 25 tools, the count feels heavy for a YouTube API server, though not extreme. It covers many YouTube features comprehensively, but some tools might be niche (e.g., list_categories, get_captions), making the set borderline for typical agent use. It's reasonable but could be streamlined.

    Completeness5/5

    The tool set provides excellent coverage of the YouTube domain, including CRUD operations for videos, playlists, comments, and subscriptions, plus analytics, search, and upload capabilities. There are no obvious gaps; agents can perform full lifecycles for core resources without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables interaction with the YouTube Data API, allowing users to search videos, get video and channel details, analyze trends, and fetch video transcripts.
      -
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server for intelligent YouTube video analysis that provides token-optimized summaries, sentiment analysis, and entity extraction from transcripts. It enables AI assistants to perform video reporting, channel monitoring, and comprehensive YouTube searches through structured data tools.
      10
      53
      Apache 2.0
    • F
      license
      B
      quality
      D
      maintenance
      MCP server for YouTube Data API v3 enabling video search, channel lookup, trending content, comments, and playlist management.
      11
      -