YouTube Studio MCP
# 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](docs/setup.md)** · **[Try a worked topic-research example](docs/example.md)** · **[Credential-handling SOP](docs/credential-handling.md)**
## What you can ask
| Question | MCP tools | Access |
| --- | --- | --- |
| How did my channel perform last month? Which videos led by watch time? | `get_channel_analytics`, `get_top_videos` | Owner OAuth |
| Which search phrases actually brought viewers to my channel? Where else did viewers come from? | `get_search_terms`, `get_traffic_sources` | Owner OAuth |
| Where does viewing drop during a specific video? | `get_video_retention` | Owner OAuth |
| What has a channel published? What tags did the creator use? | `get_channel`, `list_channel_videos`, `get_videos` | Public API key or OAuth |
| Which videos cover this topic and what questions appear in their comments? | `search_videos`, `list_video_comments` | Public API key or OAuth |
| Is my authorization configured? How many API calls did this process make? | `connection_status` | 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](https://developers.google.com/youtube/analytics/channel_reports)
## 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](src/youtube_studio_mcp/skills) 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](https://support.google.com/youtube/answer/146402)
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](https://docs.astral.sh/uv/getting-started/installation/).
```sh
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 status
```
For personal reports, follow the [Google Cloud and Desktop OAuth tutorial](docs/setup.md). 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.
```sh
.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](https://developers.google.com/youtube/v3/determine_quota_cost)
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](docs/setup.md#troubleshooting-and-disconnecting) · [YouTube Terms of Service](https://www.youtube.com/t/terms) · [Google Privacy Policy](https://policies.google.com/privacy)
## Development
```sh
uv sync --frozen
uv run --frozen pytest
uv run --frozen youtube-studio-mcp status
```
The tests exercise Google response fixtures and a real MCP stdio connection. They run without channel credentials. [MIT license](LICENSE)
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.