mateai-youtube
An MCP server that lets an AI assistant run a YouTube channel end-to-end — and push drafts to TikTok — from plain-language requests.
Channel snapshot & dashboard: fetch live stats, recent long-form and Shorts metrics, and write a local
report.html+channel_snapshot.json(OAuth for private analytics, optional public scraping).Shorts analytics: generate a Markdown table of Shorts (views, viewed vs. swiped away, avg % viewed, engaged views, subscribers gained), plus a cross-platform Shorts vs. TikTok comparison table.
Retention diagnosis: per-video 100-point retention curve, exact drop-off cliffs, peer percentiles, traffic sources, and optional alignment of drop-offs to spoken words from a Whisper/JSON transcript.
Upload & schedule: upload MP4/MOV drafts with title, description, tags, hashtags, thumbnail, pinned comment, category, COPPA and synthetic-media flags; schedule future publication; dry-run previews.
Edit videos: partial, idempotent updates to title, description, tags, privacy status, schedule, and thumbnail.
Video library: list or search your own uploads, including private, unlisted and scheduled ones.
Comments: read threads, post top-level comments, and reply — with built-in rate limits.
Delete videos: permanent deletion gated behind a confirmation dialog and an exact-title match.
Safety controls: view and choose which actions require a yes-first confirmation.
TikTok (experimental): profile/video snapshot, send a video as an Inbox draft with a ready-to-paste caption, and check draft status.
Provides tools for interacting with YouTube APIs to fetch channel overviews, long-form video and Shorts statistics, inspect video metadata/metrics, update videos, and post comments.
Integrates with YouTube Studio Analytics and upload workflows to retrieve private metrics such as average percentage viewed, viewed vs. swiped away, engaged views, watch time, and subscribers gained, and to upload videos with thumbnails as private drafts with scheduling/update capabilities.
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., "@mateai-youtube Fetch the latest public channel snapshot and view performance data."
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.
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.
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-mcp2. 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 setupClaude 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 |
📉 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 |
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-safetyto 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.
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.
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 toolscross_platform_shorts_tableARead-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_snapshotAIdempotent
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_statusARead-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_snapshotAIdempotent
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_videoADestructive
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_settingsARead-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_commentsARead-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_videosARead-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_settingsAIdempotent
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_tableARead-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_videoAIdempotent
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_detailsARead-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
Scored across 16 tools
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.
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.
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.
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
Related MCP Connectors
Hosted MCP for YouTube Studio: uploads, metadata, playlists, comments, analytics, captions.
Real-time YouTube transcripts, comments, channels & video search MCP. Local npx or hosted OAuth.
Unofficial YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
Read-only Google Analytics 4 MCP server for AI assistants.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for YouTube creator-ops — video metadata, comments, playlists, channel analytics, plus a ComfyUI bridge for AI thumbnail generation.1570 npm1MIT
- AlicenseBqualityDmaintenanceLocal read-only MCP server for YouTube Data API v3 and YouTube Analytics API, enabling public video searches and OAuth-based private channel reads.9MIT
- AlicenseNot gradedqualityCmaintenanceA local, privacy-first MCP server providing direct access to official YouTube Data, Analytics, Reporting, and Live Streaming APIs for creators, enabling channel analysis, research, and guarded management operations.4MIT
- AlicenseNot gradedqualityDmaintenanceA local, read-only MCP server that provides Claude with private YouTube Analytics data—views, retention, traffic sources, demographics, revenue, and impressions/CTR—via authenticated Google APIs.MIT