Skip to main content
Glama

MateAI YouTube MCP

Upload, schedule and analyze your YouTube channel just by asking Claude or Antigravity. Free. Runs on your computer. One sign-in, verified by Google.

Google OAuth: verified Release mategog/mateai-youtube-mcp MCP server License

Get started · What you can ask · Setup guide · All tools

Replay of real plugin output: a dry run, a wrong date caught by a warning, then a real scheduled upload.

Get started in 2 minutes

1. Install (in your terminal, with Claude Code):

claude plugin marketplace add mategog/mateai-youtube-mcp
claude plugin install yt-studio@mateai-youtube-mcp

2. Connect your channel. Type /yt-setup in Claude Code, pick your YouTube account in the browser and click Allow. To change channels later, type /yt-setup switch and pick another account; to sign out, type /yt-disconnect.

3. Ask. "Take a snapshot of my channel and show me the report."

That's it. No Google Cloud project, no API keys: the sign-in is verified by Google.

Antigravity

git clone https://github.com/mategog/mateai-youtube-mcp.git ~/.gemini/config/plugins/mateai-youtube
cd ~/.gemini/config/plugins/mateai-youtube && python3 yt_studio.py setup

Claude Desktop or any MCP client: clone the repo, run python3 yt_studio.py setup, then add this to your client's config:

{ "mcpServers": { "mateai-youtube": { "command": "python3", "args": ["/ABSOLUTE/PATH/TO/mateai-youtube-mcp/mcp_server.py"] } } }

Windows and Linux work too: see the setup guide.

Related MCP server: YouTube MCP

What you can ask

📤 Upload and schedule

"Upload short.mp4 with this cover, write the title and hashtags, and schedule it for Friday 18:00."

📉 Find where viewers leave

"Which of my last 5 Shorts had the highest swipe-away rate, and where did viewers drop off?"

✏️ Edit videos

"Change the title of my latest video and make it public."

💬 Handle comments

"Show me new comments on my last video and draft replies."

📊 See your channel at a glance

"Take a snapshot of my channel and show me the report." Or type /yt-dashboard for a live card above the prompt.

Why creators use it

  • 🛡️ Nothing goes live by surprise. Every upload, edit and comment can run as a dry run first. Deleting always asks you, and the confirmation box comes from the plugin, so the AI can't click "yes" for you. Use /yt-safety to choose what else asks first.

  • 🔒 Your data stays with you. It runs on your machine and talks only to Google. The author gets nothing. Privacy details

  • 💸 $0. It uses YouTube's free official APIs and the AI subscription you already have.

  • 🎬 Made for Shorts. Viewed vs. swiped away, average % viewed and full retention curves for every video.

TIP

Prefer a desktop app? MateAI Studio is built on this plugin, with the same one-click sign-in. Free during early access.

Learn more

  • 📘 Setup guide: every client and OS, your own Google client, sign out, troubleshooting

  • 🧰 Reference: all tools, safety limits, API quota, privacy, bundled skills and credits

  • 🎵 TikTok (experimental): compare Shorts with TikTok and send drafts to your TikTok inbox

Want your own API quota? Use your own Google Cloud client.

Support

If this saves you a monthly creator-tool fee, ⭐ star the repo so other creators can find it.

YouTube Channel Sponsor on GitHub Buy Me A Coffee

License

Free to use and modify for your own channels, including monetized ones. You may not resell it or run it as a paid service without a commercial license. Licensed under Apache 2.0 with Commons Clause (LICENSE): source-available, not OSI open source.

Available Tools

16 tools
cross_platform_shorts_tableA
Read-onlyIdempotent

Generate a GitHub-Flavored Markdown comparison table pairing YouTube Shorts with TikTok videos (matching normalized YouTube Short titles against TikTok title or video_description, while keeping unmatched videos from either platform) across official API metrics: Views, Likes, Comments, YouTube Avg % Viewed, and TikTok Shares.

Inputs: yt_handle, yt_force_public.

tiktok_channel_snapshotA
Idempotent

Fetch authenticated TikTok profile statistics (followers, total likes, video count) and recent videos (views, likes, comments, shares, duration, publish date, share URL) via the official TikTok Display API v2 (user.info.basic, user.info.profile, user.info.stats, video.list) and cache to tiktok_snapshot.json. Requires OAuth2 setup via python3 tiktok_studio.py setup.

Inputs: no named parameters.

tiktok_draft_statusA
Read-onlyIdempotent

Check where a video sent with tiktok_upload_draft stands, using its publishId (/v2/post/publish/status/fetch/). Returns state, fail_reason and a one-line plain meaning. Read-only.

Inputs: publish_id (required).

tiktok_upload_draftA

Upload a local MP4/MOV video file as an Inbox Draft to the creator's TikTok mobile app notifications via the official TikTok Content Posting API (/v2/post/publish/inbox/video/init/, which accepts source_info only). Builds and returns the ready-to-paste caption (from spec_path or title/hashtags, with #Shorts stripped) plus an AI-generated content label reminder so the creator can paste the caption and turn on TikTok's AI-generated toggle in the mobile app before publishing. A successful return means TikTok accepted the upload, not that the inbox notification arrived (see deliveryNote).

Inputs: video_path (required), title, hashtags, spec_path.

yt_channel_snapshotA
Idempotent

Fetch live YouTube channel statistics, recent long-form videos, and Shorts metrics, and write an updated local report.html dashboard and channel_snapshot.json cache on disk. When YouTube OAuth2 credentials are present (and force_public is false), queries YouTube Data API v3 (~3 quota units) and YouTube Analytics API v2 for private owner metrics (averageViewPercentage, swipedAwayRate, engagedViews, estimatedMinutesWatched, subscribersGained); public page scraping is opt-in only (force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1); without OAuth or opt-in it returns setup instructions. Overwrites report.html idempotently on each run.

Inputs: handle, force_public. Returns: mode, videos, channel, dashboardPath

yt_delete_videoA
Destructive

DANGEROUS — the server asks the user in a confirmation dialog before this runs. PERMANENTLY delete one of the channel's videos (videos.delete, ~50 quota units). Irreversible: views, watch hours and comments are lost. To merely hide a video use yt_update_video with privacy_status. Refuses unless confirm_title exactly equals the video's current title.

Inputs: video_id (required), confirm_title (required).

yt_get_safety_settingsA
Read-onlyIdempotent

Show which actions ask the user for a yes before they run, in plain words. Deleting a video and changing these settings always ask; the rest are the user's choice.

Inputs: no named parameters.

yt_list_commentsA
Read-onlyIdempotent

Read top-level comment threads on a video (commentThreads.list, ~1 quota unit): commentId, author, text, likes, publishedAt, replyCount and the first few replies. Single page, max 100. Use a returned commentId as yt_reply_comment's parent_id. Fails if comments are disabled.

Inputs: video_id (required), limit, order.

yt_list_videosA
Read-onlyIdempotent

List the authenticated channel's uploads (including private, unlisted and scheduled), newest first, with videoId, title, privacyStatus, publishAt, views and URL. Optional query is a case-insensitive substring match on title or description, applied locally. Costs ~2 quota units per 50 videos paged. Requires OAuth2.

Inputs: limit, query.

yt_post_commentA

Post a public top-level comment thread on a YouTube video or Short via YouTube Data API v3 (commentThreads.insert, costs ~50 daily quota units). Requires OAuth2 with youtube.force-ssl scope. Non-idempotent: each call publishes a new visible comment immediately under the authenticated channel identity and returns {commentId, videoId, text}. Fails if comments are disabled on the target video or the video is private. Built-in limits (not adjustable): at most 20 comments+replies per rolling hour and 100 per rolling 24 hours, and the same text at most 2 times per 24 hours.

Inputs: text (required), video_id (required), dry_run. Returns: text, videoId, commentId

yt_reply_commentA

Publish a public reply to a top-level comment (comments.insert, ~50 quota units) under the authenticated channel identity. parent_id must be a top-level commentId from yt_list_comments. Non-idempotent. Built-in limits (not adjustable): at most 20 comments+replies per rolling hour and 100 per rolling 24 hours, and the same text at most 2 times per 24 hours.

Inputs: text (required), parent_id (required).

yt_set_safety_settingsA
Idempotent

DANGEROUS — the server asks the user in a confirmation dialog before this runs. Choose which actions ask the user for a yes before they run. confirm is the full list of optional actions that should ask (an empty list means only the always-on ones ask). Deleting a video always asks and cannot be turned off. Use only with the user's explicit choice, normally via the /yt-safety command.

Inputs: confirm (required).

yt_shorts_experiment_tableA
Read-onlyIdempotent

Generate a GitHub-Flavored Markdown comparison table of the channel's YouTube Shorts ordered newest-first with columns for Publish Date, Title, Views, Viewed vs Swiped Away %, Average % Viewed, Engaged Views, and Subscribers Gained. Pulls live data from YouTube Data API v3 + YouTube Analytics API v2 when OAuth2 is configured (or public channel pages when unauthenticated, where private retention columns are shown as '—'). Returns a 'No Shorts found' notice if the channel has no Shorts.

Inputs: handle.

yt_update_videoA
Idempotent

Perform a partial, idempotent update on an existing YouTube video's metadata, visibility, schedule, or custom thumbnail in YouTube Studio via YouTube Data API v3 (videos.list + videos.update, costs ~51 quota units). Requires channel-owner OAuth2. Fetches current snippet/status first so omitted parameters (title, description, tags, privacy_status, publish_at) are preserved unchanged rather than cleared. Setting publish_at automatically forces privacy_status='private' as required by YouTube's scheduling API. When privacy_status or publish_at is set, contains_synthetic_media is required (true or false): YouTube can't read the current disclosure back and a status update may reset it. Title and description must not contain '<' or '>' (write 'over 75%', not '>75%'). Returns {videoId, studioUrl, updatedFields}.

Inputs: video_id (required), tags, title, dry_run, +5 more. Returns: videoId, studioUrl

yt_upload_draftA

Upload a local MP4/MOV video file to YouTube Studio via YouTube Data API v3 (videos.insert, costs ~1,600 daily quota units) and optionally attach a custom thumbnail (thumbnails.set) and top-level pinned comment (commentThreads.insert). Requires channel OAuth2 with youtube.force-ssl scope. Non-idempotent: each call creates a new YouTube video resource and returns {videoId, studioUrl, watchUrl, privacyStatus, publishAt}. Defaults to privacy_status='private' (unpublished draft); when publish_at (ISO 8601 future timestamp) is provided, privacy_status is forced to 'private' until YouTube automatically publishes the video at publish_at. Inline parameters (title, description, tags, hashtags, pinned_comment) override values parsed from spec_path.

Inputs: video_path (required), tags, title, dry_run, +12 more. Returns: A dry run returns dryRun=true and what would be sent, without videoId or URLs.

yt_video_detailsA
Read-onlyIdempotent

Fetch the owner's view of one video (title, description, tags, privacyStatus, publishAt; works for private and scheduled videos) plus owner-authorized YouTube Analytics retention diagnostics for a single 11-character video_id: 100-point elapsedVideoTimeRatio audience retention curve, exact MM:SS drop-off cliffs, relativeRetentionPerformance peer percentiles, and traffic source breakdown. Retention curve and traffic diagnostics require channel-owner OAuth2 (a studioDiagnosisError explains a missing scope). Public page metadata (title, views, likes) is scraped only when force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1. When words_or_script_path is provided, maps each retention drop-off cliff onto the exact spoken words at that timestamp.

Inputs: video_id (required), force_public, words_or_script_path. Returns: tags, title, videoId, publishAt, +3 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 16 tools

    Disambiguation4/5

    Most tools target clearly distinct resources and actions (upload vs update vs delete vs list video, post vs reply vs list comment). The main friction is among the three reporting/analytics tools — yt_channel_snapshot, yt_shorts_experiment_table, and cross_platform_shorts_table — which all fetch similar stats and differ mainly in output form, so an agent may pause on which to call. yt_list_videos vs yt_video_details is also an overlap point but descriptions differentiate list vs single-video scope.

    Naming Consistency4/5

    Consistent platform-prefix + verb_noun pattern (yt_upload_draft, yt_list_comments, tiktok_channel_snapshot, cross_platform_shorts_table). Minor deviations: noun-phrase names like yt_video_details and cross_platform_shorts_table lack a verb, and there are two 'draft' tools on different platforms with different semantics (upload_draft vs draft_status). Overall predictable and readable.

    Tool Count4/5

    16 tools covering two platforms plus cross-platform comparison is proportionate — roughly 12 YouTube, 3 TikTok, 1 cross-platform. Slightly top-heavy on YouTube reporting/analytics tools, but each earns a place. Not excessive for the stated dual-platform scope.

    Completeness4/5

    YouTube side has strong lifecycle coverage: upload, update metadata/schedule, delete with confirmation guard, list, details, comments (list/post/reply), analytics, and safety settings. Notable gaps: no comment deletion/moderation, no playlist or caption operations, and the TikTok side has no update/delete for posted videos (partly API-limited). Minor workaround gaps rather than dead ends.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers