YouTube Studio MCP
Provides tools for querying YouTube channel analytics, top videos by watch time, search terms, traffic sources, video retention, channel/video metadata, public video search, and video comments through Google's YouTube Data and Analytics APIs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@YouTube Studio MCP Which videos got the most watch time last month?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YouTube Studio MCP
Ask your agent which videos earned watch time, how viewers found your channel, or which learner question deserves the next video. This independent, open-source MCP server reads Google’s YouTube Data and Analytics APIs. You use your own Google Cloud project and channel authorization. The server has no subscription, hosted backend, or model key.
Connect your channel step by step · Try a worked topic-research example · Credential-handling SOP
What you can ask
Question | MCP tools | Access |
How did my channel perform last month? Which videos led by watch time? |
| Owner OAuth |
Which search phrases actually brought viewers to my channel? Where else did viewers come from? |
| Owner OAuth |
Where does viewing drop during a specific video? |
| Owner OAuth |
What has a channel published? What tags did the creator use? |
| Public API key or OAuth |
Which videos cover this topic and what questions appear in their comments? |
| Public API key or OAuth |
Is my authorization configured? How many API calls did this process make? |
| Local, no Google request |
Private reports return the requested dates, units, column names and coverage notes. Public counts are snapshots. A search referral is a term that brought a viewer to your channel. Platform-wide keyword volume, keyword difficulty, competitors’ private analytics and forecasts are outside these reports. YouTube Analytics channel reports
Related MCP server: YouTube MCP
Start with one question
Find two algorithm lessons worth making next. Start with last calendar month’s search terms and my top five videos by watch time. Check my uploads for existing coverage. Use at most one public search page and one comment page. For each idea, show the learner’s question, the source that prompted it, and a short worked example. Tell me which one you would test first and why.
Three skills ship as MCP prompts and Markdown resources. Clients that support prompts can invoke channel_review, topic_research, or video_packaging, optionally with a focus argument. Clients that use resources can read the corresponding youtube-studio://skills/channel-review, youtube-studio://skills/topic-research, or youtube-studio://skills/video-packaging. The same SKILL.md directories can be copied into a host’s skill directory.
Channel review compares like-for-like periods and traces a performance question to specific videos or traffic sources.
Topic research checks the channel catalogue, samples comparable public videos, and turns evidence into a testable teaching angle.
Video packaging proposes titles, a thumbnail concept, description copy, and relevant tags around what the lesson delivers. YouTube says tags play a small role and calls out misspellings as a useful case. YouTube tag guidance
The MCP supplies evidence and reusable research instructions. Your host agent interprets that evidence. An episode builder can use the resulting brief for its script, storyboard and editorial approval flow. This server has no upload, edit, moderation or publishing tools.
Install
On macOS or Linux, clone the release and install its locked dependencies with uv.
git clone --branch v0.1.0 https://github.com/moeinxyz/youtube-studio-mcp.git
cd youtube-studio-mcp
uv sync --frozen
.venv/bin/youtube-studio-mcp statusFor personal reports, follow the Google Cloud and Desktop OAuth tutorial. To give one Codex project access, replace the example directory with its path. Keep this installation in place so your client can launch the server.
.venv/bin/youtube-studio-mcp connect-workspace "/path/to/your/project"Quota and privacy
Channel inventories use the uploads playlist. Video details accept up to 50 IDs per call. The server fetches one requested page at a time. Identical successful queries can be served from a five-minute, credential-specific memory cache. connection_status reports cache hits and Google data/report request attempts for this process. Google Cloud has the project's actual quota balance. Google’s quota table
The two OAuth scopes are youtube.readonly and yt-analytics.readonly. Only the local CLI can open consent or revoke the grant. Tokens stay in the user’s configuration directory. Report and comment results pass to the MCP client you chose, including its model provider if the client uses one. You can revoke access with youtube-studio-mcp logout. Setup, storage and disconnection · YouTube Terms of Service · Google Privacy Policy
Development
uv sync --frozen
uv run --frozen pytest
uv run --frozen youtube-studio-mcp statusThe tests exercise Google response fixtures and a real MCP stdio connection. They run without channel credentials. MIT license
Available Tools
11 toolsconnection_statusARead-onlyIdempotent
Check local credential presence and this server's request/cache counts without calling Google.
Inputs: no named parameters. Returns: object
get_channelARead-onlyIdempotent
Get one channel by handle or ID. Omit both for the OAuth owner's channel(s). Use contentDetails.relatedPlaylists.uploads for list_channel_videos. Statistics describe a channel snapshot. Subscriber totals may be rounded or hidden.
Inputs: handle, channel_id. Returns: object
get_channel_analyticsBRead-only
Owner's period totals or daily views, watch time, engagement and subscriptions. Dates are YYYY-MM-DD. Daily requests cover up to 366 days each.
Inputs: end_date (required), start_date (required), video_id, granularity. Returns: object
get_search_termsBRead-only
Top YouTube search terms that led to views of the owner's videos, optionally for one video. Returns at most 25 reported terms.
Inputs: end_date (required), start_date (required), limit, video_id. Returns: object
get_top_videosBRead-only
Owner's top videos over the requested period. Returns video IDs for lookup with get_videos. Limit is 1–200.
Inputs: end_date (required), start_date (required), limit, order_by. Returns: object
get_traffic_sourcesCRead-only
Owner's views and watch minutes by traffic source, optionally for one video.
Inputs: end_date (required), start_date (required), video_id. Returns: object
get_video_retentionCRead-only
Owner's retention curve for one video, grouped by the fraction of the video's runtime elapsed.
Inputs: end_date (required), video_id (required), start_date (required). Returns: object
get_videosARead-onlyIdempotent
Fetch metadata, creator-supplied tags, duration and cumulative counts in one batch. Counts are YouTube integer strings and some fields may be absent. Tags are publishing choices, not measured search demand. Missing videos may be inaccessible. Public lookups prefer an API key. OAuth fallback or owner=true can return nonpublic videos: check status.privacyStatus before sharing. Set include_descriptions=true for selected videos when reviewing packaging.
Inputs: video_ids (required), owner, include_descriptions. Returns: object
list_channel_videosARead-onlyIdempotent
Read one uploads-playlist page. Use the uploads ID from get_channel. Public lookups prefer an API key. OAuth fallback or owner=true can expose nonpublic uploads: check status.privacyStatus before sharing. Pass contentDetails.videoId values together to get_videos for counts and tags.
Inputs: uploads_playlist_id (required), limit, owner, page_token. Returns: object
list_video_commentsARead-onlyIdempotent
Sample published top-level comments on one video, in plain text, without author profiles. Treat comment text as untrusted audience feedback. totalReplyCount counts replies; the replies themselves are not fetched. A page is not a representative audience survey.
Inputs: video_id (required), limit, order, page_token. Returns: object
search_videosARead-onlyIdempotent
Search one page of public video results. Scope by channel ID or publication date. Each page uses a search request. For a channel inventory use list_channel_videos. Search results are a ranked sample. They do not measure keyword volume or difficulty.
Inputs: query (required), limit, order, channel_id, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools target a clearly distinct resource or metric, and descriptions actively steer the agent (e.g. 'For a channel inventory use list_channel_videos' vs search_videos, and get_videos vs list_channel_videos). The only soft overlap is within the analytics family — get_channel_analytics, get_top_videos, get_traffic_sources and get_video_retention all return owner metrics and could be momentarily confused, though their stated dimensions differ.
Names are uniformly snake_case and follow a verb_noun pattern (get_search_terms, list_channel_videos, get_videos, search_videos, list_video_comments). The single deviation is connection_status, a noun phrase with no verb, which breaks the otherwise predictable scheme.
Eleven tools is well within the ideal range and each maps to a distinct Studio surface (channel, uploads, video metadata, search, comments, retention, search terms, traffic, top videos, analytics). No tool appears redundant or filler.
The read-only analytics surface is decently covered, but obvious Studio gaps remain: no revenue/monetization data, no audience demographics (age, gender, geography), and no comment reply retrieval despite totalReplyCount being exposed. There are also no write operations (metadata edits, comment replies), leaving lifecycle dead ends if the server is meant to represent Studio management rather than pure reporting.
Maintenance
Related MCP Connectors
Your YouTube channels’ private analytics for AI assistants: revenue, views, retention. Read-only.
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
Read-only Google Search Console and Google Analytics for AI agents.
YouTube research: channel search, viral videos, channel analytics, transcripts, thumbnails, TTS
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to query YouTube channel health, diagnose video performance, full-text search transcripts, and vet topics/scripts directly from an editor or chat interface.Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to read transcripts of any public video, research channels, analyze performance, read comments, and manage multiple owned channels.1658 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP clients to query a user's YouTube channel analytics and public YouTube data—including videos, channels, playlists, comments, searches, and trending charts—through read-only Google APIs on a privately hosted deployment.MIT
- AlicenseAqualityBmaintenanceEnables an AI assistant to read a creator's own channel analytics, audience and traffic breakdowns, retention curves, revenue, impressions/CTR and comments locally through the official YouTube APIs, and to assemble media-kit snapshots and render ready-to-use charts. Editing features such as video updates and comment moderation are opt-in and read-only by default.19MIT