youtube-studio-mcp
v0.3.1A comprehensive MCP server for YouTube Data API, Analytics API, and Reporting API
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
youtube_auth
Initiate OAuth 2.0 authentication flow. Opens a browser window for Google OAuth consent. Required before using any tools that access private channel data or analytics.
youtube_auth_status
Check current authentication status and quota usage.
youtube_get_channel
Get channel details by channel ID, handle (@username), or the authenticated user's channel. Args: channel_id: YouTube channel ID (e.g., "UCxxxxxxx") handle: Channel handle (e.g., "@mkbhd") mine: If True, get the authenticated user's own channel
| Parameter | Type | Description |
|---|---|---|
channel_id | ||
handle | ||
mine | boolean |
youtube_list_videos
List videos from a channel or playlist. For a channel, uses the channel's uploads playlist. Returns video summaries with stats, sorted by most recent. Args: channel_id: Channel ID to list videos from playlist_id: Playlist ID to list videos from (overrides channel_id) mine: If True, list the authenticated user's videos max_results: Number of videos to return. Values above 50 are served by paging through the playlist; pass 0 or a negative value to fetch every video in the playlist.
| Parameter | Type | Description |
|---|---|---|
channel_id | ||
max_results | integer | |
mine | boolean | |
playlist_id |
youtube_get_video
Get detailed metadata and statistics for a specific video. Args: video_id: YouTube video ID (e.g., "dQw4w9WgXcQ")
| Parameter | Type | Description |
|---|---|---|
video_id * | string |
youtube_search
Search YouTube for videos, channels, or playlists. Costs 100 quota units per call — use sparingly. Args: query: Search query string search_type: Type of results: "video", "channel", or "playlist" channel_id: Limit search to a specific channel max_results: Number of results (max 50) order: Sort order: "relevance", "date", "viewCount", "rating" published_after: ISO 8601 datetime (e.g., "2025-01-01T00:00:00Z") published_before: ISO 8601 datetime region_code: ISO 3166-1 alpha-2 country code (e.g., "US")
| Parameter | Type | Description |
|---|---|---|
query * | string | |
channel_id | ||
max_results | integer | |
order | string | |
published_after | ||
published_before | ||
region_code | ||
search_type | string |
youtube_search_suggestions
Get YouTube autocomplete/search suggestions for a query. Useful for SEO keyword research — shows what people are searching for. No quota cost (uses YouTube's public suggest endpoint). Args: query: Partial search query to get suggestions for language: Language code (e.g., "en", "es")
| Parameter | Type | Description |
|---|---|---|
query * | string | |
language | string |
youtube_trending
Get currently trending videos on YouTube. Costs 1 quota unit. Args: region_code: ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "IN") category_id: Filter by category ID (e.g., "28" for Science & Technology) max_results: Number of videos to return (max 50)
| Parameter | Type | Description |
|---|---|---|
category_id | ||
max_results | integer | |
region_code | string |
youtube_get_categories
List available YouTube video categories for a region. Useful for filtering trending videos or setting video category on upload. Costs 1 quota unit. Args: region_code: ISO 3166-1 alpha-2 country code (e.g., "US")
| Parameter | Type | Description |
|---|---|---|
region_code | string |
youtube_list_captions
List available caption tracks for a video you own. Requires OAuth. Only works for videos on the authenticated user's channel. Args: video_id: YouTube video ID
| Parameter | Type | Description |
|---|---|---|
video_id * | string |
youtube_get_transcript
Get the transcript/captions for a video. By default uses youtube-transcript-api (works for any public video, no quota cost). Set use_official_api=True to use the official Data API (only for your own videos, costs quota units). Args: video_id: YouTube video ID language: Preferred language code (e.g., "en", "es", "ja") use_official_api: If True, use official API (own videos only)
| Parameter | Type | Description |
|---|---|---|
video_id * | string | |
language | string | |
use_official_api | boolean |
youtube_analytics_overview
Get channel-level analytics summary. Returns views, watch time, subscribers gained/lost, likes, comments, and shares for the date range. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
end_date | ||
start_date |
youtube_analytics_top_videos
Get top-performing videos by views. Returns per-video metrics sorted by view count, excluding Shorts. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today. max_results: Number of videos to return (max 200).
| Parameter | Type | Description |
|---|---|---|
end_date | ||
max_results | integer | |
start_date |
youtube_analytics_top_shorts
Get top-performing Shorts by views. Returns per-Short metrics sorted by view count. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today. max_results: Number of Shorts to return (max 200).
| Parameter | Type | Description |
|---|---|---|
end_date | ||
max_results | integer | |
start_date |
youtube_analytics_video_detail
Get detailed analytics for a specific video over time. Returns daily metrics for the specified video. Args: video_id: YouTube video ID start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
video_id * | string | |
end_date | ||
start_date |
youtube_analytics_traffic_sources
Get traffic source breakdown — how viewers find your content. Shows views from search, suggested, browse, external, etc. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today. video_id: Optional video ID to filter to a specific video.
| Parameter | Type | Description |
|---|---|---|
end_date | ||
start_date | ||
video_id |
youtube_analytics_demographics
Get audience demographics — age group and gender breakdown. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
end_date | ||
start_date |
youtube_analytics_geography
Get views by country. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today. max_results: Number of countries to return (max 200).
| Parameter | Type | Description |
|---|---|---|
end_date | ||
max_results | integer | |
start_date |
youtube_analytics_daily
Get daily performance metrics over time. Useful for spotting trends and finding optimal posting days. Returns one row per day with views, watch time, subs, likes, shares. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
end_date | ||
start_date |
youtube_analytics_day_of_week
Get aggregated performance by day of week. Fetches daily data and aggregates by weekday to show which days perform best. Useful for scheduling uploads. Args: start_date: Start date (YYYY-MM-DD). Defaults to 90 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
end_date | ||
start_date |
youtube_analytics_content_type_breakdown
Compare performance of Shorts vs long-form videos vs live streams. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
end_date | ||
start_date |
youtube_analytics_revenue
Get revenue breakdown. Requires the channel to be in the YouTube Partner Program (monetized). Returns estimated revenue, ad revenue, and YouTube Premium revenue. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
end_date | ||
start_date |
youtube_analytics_revenue_by_video
Get revenue per video, sorted by highest revenue. Requires the channel to be in the YouTube Partner Program. Args: start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today. max_results: Number of videos to return (max 200).
| Parameter | Type | Description |
|---|---|---|
end_date | ||
max_results | integer | |
start_date |
youtube_analytics_retention
Get audience retention curve for a specific video. Returns 100 data points showing what percentage of viewers are still watching at each point in the video. Also includes relative retention compared to similar-length videos on YouTube. Args: video_id: YouTube video ID start_date: Start date (YYYY-MM-DD). Defaults to 28 days ago. end_date: End date (YYYY-MM-DD). Defaults to today.
| Parameter | Type | Description |
|---|---|---|
video_id * | string | |
end_date | ||
start_date |
youtube_upload_video
Upload a video to YouTube. Costs 1,600 quota units. Video is uploaded as private by default. Args: file_path: Absolute path to the video file title: Video title (max 100 characters) description: Video description (max 5,000 characters) tags: List of tags category_id: YouTube category ID (default "22" = People & Blogs) privacy_status: "private", "public", or "unlisted" publish_at: ISO 8601 datetime to schedule publishing (requires privacy_status="private")
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
title * | string | |
category_id | string | |
description | string | |
privacy_status | string | |
publish_at | ||
tags |
youtube_update_video
Update metadata for an existing video. Only provided fields are updated; others remain unchanged. Args: video_id: YouTube video ID title: New title (max 100 characters) description: New description (max 5,000 characters) tags: New tags (replaces existing tags) category_id: New category ID privacy_status: "private", "public", or "unlisted" publish_at: ISO 8601 datetime to schedule publishing (requires privacy_status="private" — either passed explicitly here or already set on the video). made_for_kids: COPPA self-declara…
| Parameter | Type | Description |
|---|---|---|
video_id * | string | |
category_id | ||
description | ||
made_for_kids | ||
privacy_status | ||
publish_at | ||
tags | ||
title |
youtube_set_thumbnail
Upload a custom thumbnail for a video. Args: video_id: YouTube video ID file_path: Absolute path to the thumbnail image (JPEG, PNG, GIF, BMP; max 2MB)
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
video_id * | string |
youtube_delete_video
Delete a video. This action is irreversible. Args: video_id: YouTube video ID to delete
| Parameter | Type | Description |
|---|---|---|
video_id * | string |
youtube_list_playlists
List playlists for a channel. Args: channel_id: Channel ID to list playlists from mine: If True, list the authenticated user's playlists max_results: Number of playlists to return. Values above 50 are served by paging through results; pass 0 or a negative value to fetch every playlist.
| Parameter | Type | Description |
|---|---|---|
channel_id | ||
max_results | integer | |
mine | boolean |
youtube_create_playlist
Create a new playlist. Args: title: Playlist title description: Playlist description privacy_status: "private", "public", or "unlisted"
| Parameter | Type | Description |
|---|---|---|
title * | string | |
description | string | |
privacy_status | string |
youtube_update_playlist
Update metadata for an existing playlist. Only provided fields are updated; others remain unchanged. Args: playlist_id: Playlist ID to update title: New title description: New description privacy_status: "private", "public", or "unlisted"
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | |
description | ||
privacy_status | ||
title |
youtube_delete_playlist
Delete a playlist. This action is irreversible and does not delete the videos in it, only the playlist itself. Args: playlist_id: Playlist ID to delete
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string |
youtube_add_to_playlist
Add a video to a playlist. Args: playlist_id: Playlist ID to add the video to video_id: Video ID to add position: Position in the playlist (0-based). Defaults to end.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | |
video_id * | string | |
position |
youtube_remove_from_playlist
Remove a video from a playlist. Use youtube_list_playlists or the Data API to find the playlist_item_id. Args: playlist_item_id: The playlist item ID (not the video ID)
| Parameter | Type | Description |
|---|---|---|
playlist_item_id * | string |
youtube_list_comments
List top-level comments on a video. Args: video_id: YouTube video ID max_results: Number of comment threads to return. Values above 100 are served by paging through results; pass 0 or a negative value to fetch every top-level comment thread. order: Sort order: "relevance" or "time"
| Parameter | Type | Description |
|---|---|---|
video_id * | string | |
max_results | integer | |
order | string |
youtube_post_comment
Post a new top-level comment on a video. Args: video_id: YouTube video ID to comment on text: Comment text
| Parameter | Type | Description |
|---|---|---|
text * | string | |
video_id * | string |
youtube_reply_to_comment
Reply to an existing comment. Args: parent_id: The comment ID to reply to (from youtube_list_comments) text: Reply text
| Parameter | Type | Description |
|---|---|---|
parent_id * | string | |
text * | string |
youtube_delete_comment
Delete a comment. This action is irreversible. Works on both top-level comments and replies. Deleting a top-level comment also removes its replies. Args: comment_id: The comment ID to delete (from youtube_list_comments, youtube_post_comment, or youtube_reply_to_comment)
| Parameter | Type | Description |
|---|---|---|
comment_id * | string |
youtube_reporting_list_types
List available report types that can be scheduled. Common report types: - channel_basic_a3: User activity (views, watch time, subs) - channel_demographics_a1: Age/gender breakdown - channel_traffic_source_a3: Traffic sources - channel_device_os_a3: Device and OS breakdown - channel_combined_a3: Combined multi-dimension report
youtube_reporting_create_job
Schedule a reporting job. Reports will be generated daily. Once created, YouTube will start generating daily CSV reports for this report type. It may take 24-48 hours for the first report to appear. Args: report_type_id: Report type ID (from youtube_reporting_list_types) name: Optional human-readable name for the job
| Parameter | Type | Description |
|---|---|---|
report_type_id * | string | |
name |
youtube_reporting_list_jobs
List all active reporting jobs.
youtube_reporting_list_reports
List available reports for a job. Reports are generated daily and available for 60 days. Args: job_id: Job ID (from youtube_reporting_create_job or youtube_reporting_list_jobs)
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
youtube_reporting_download
Download a report CSV. Returns the CSV content as text. For large reports, the content may be truncated. Args: download_url: Download URL from youtube_reporting_list_reports
| Parameter | Type | Description |
|---|---|---|
download_url * | string |