Skip to main content
Glama
YouTube Studio MCP
by moeinxyz

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?

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

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 status

For 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 status

The tests exercise Google response fixtures and a real MCP stdio connection. They run without channel credentials. MIT license

Available Tools

11 tools
connection_statusA
Read-onlyIdempotent

Check local credential presence and this server's request/cache counts without calling Google.

Inputs: no named parameters. Returns: object

get_channelA
Read-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_analyticsB
Read-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_termsB
Read-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_videosB
Read-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_sourcesC
Read-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_retentionC
Read-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_videosA
Read-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_videosA
Read-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_commentsA
Read-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_videosA
Read-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

    A3.6/5.0

    Scored across 11 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityNo data
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to read transcripts of any public video, research channels, analyze performance, read comments, and manage multiple owned channels.
      16
      58 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      19
      MIT