mateai-youtube
This server lets an AI manage, analyze, and safely modify your own YouTube channel, with optional TikTok comparison/draft tools.
Fetch channel snapshots, recent long-form videos, Shorts metrics, and write a local
report.html/cache.Generate Markdown tables for Shorts experiments and YouTube-vs-TikTok comparisons.
Inspect a video’s metadata, 100-point retention curve, drop-off points, traffic sources, and optionally align drop-offs to spoken words.
Upload MP4/MOV drafts or scheduled videos with title, description, tags, hashtags, thumbnail, language, synthetic-media disclosure, and pinned comment; supports dry runs.
Update existing video metadata, privacy, schedule, thumbnail, and synthetic-media disclosure.
List/search your own videos, including private/unlisted/scheduled ones.
Read comments, post top-level comments, and reply to comments with built-in rate/duplicate limits.
Permanently delete a video only with exact-title confirmation.
View and configure which actions require confirmation, using dry runs and safety settings.
Fetch TikTok profile/video stats and send videos to a TikTok inbox draft (optional, experimental).
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 channel from Claude & Antigravity
mateai-youtube-mcp (installed as the yt-studio plugin) is a free, self-hosted MCP server that lets Claude Code, Claude Desktop and Google Antigravity upload, schedule and analyze videos on your own YouTube channel through Google's official YouTube Data and Analytics APIs. It runs on your computer, uses the AI subscription you already pay for, and costs $0.

Animated replay of real v0.5.0 output (re-created, not a live screen recording): a dry run, a wrong date caught by a warning, then a real scheduled upload.
Ask your AI things like:
"Upload
exports/short.mp4with this cover, write the title, description and hashtags, and schedule it for tomorrow 20:00 CET.""Which of my Shorts lost viewers in the first two seconds?"
Contents: Why this server · Quick start · Try it · Tools · Safety · Quota · Privacy · TikTok · Troubleshooting · License
Why this server
Built for Shorts. Viewed vs. swiped away, engaged views, average % viewed and 100-point retention curves per video, so you can see where viewers leave.
Upload and schedule in one sentence. Video, cover, title, description, hashtags, tags, language, synthetic-media disclosure, pinned comment and a future publish time.
Nothing goes live by surprise. Every write has a
dry_runpreview, deleting a video always asks first, and/yt-safetylets you add confirmations for uploads, edits and comments. The confirmation box is shown by the plugin, so the AI can't click "yes" for you. See Safety.One-command setup.
/yt-setupin Claude Code walks you through Google's sign-in and finds the file Google gives you.Runs only on your machine. Your login stays in a local file only you can read, and the author receives no data. See Privacy.
$0. Google's YouTube APIs are free within the daily quota, and hosted creator tools charge a monthly fee to wrap these same APIs.
TikTok side by side (optional, experimental). Compare each Short with the same video on TikTok, and send a Short to your TikTok inbox. Needs your own TikTok developer app in sandbox mode; see TikTok.
A full creator pipeline. The plugin bundles research, ideation, packaging and scripting skills next to the MCP tools. See Bundled skills.
Is it the right tool for you?
You want to… | This server |
Upload, schedule and edit videos on your own channel | Yes |
Diagnose Shorts retention and swipe-away rate | Yes |
Read and reply to comments on your videos | Yes |
Compare YouTube Shorts with TikTok | Experimental: needs your own TikTok sandbox app |
Get transcripts of other people's videos | No: use a transcript MCP server |
Manage playlists, bulk Reporting API exports, revenue or demographics | No: other YouTube MCP servers cover more of the API |
Related MCP server: YouTube MCP
Quick start
Claude Code (recommended)
claude plugin marketplace add mategog/mateai-youtube-mcp
claude plugin install yt-studio@mateai-youtube-mcpThen type /yt-setup in Claude Code to connect your channel (needs Claude Code 2.1.287 or newer). It takes about 3 minutes the first time; see Easy setup.
The plugin keeps its state (.venv, OAuth client, tokens, channel_snapshot.json, report.html) in ~/.claude/plugins/data/yt-studio-mateai-youtube-mcp/, which survives plugin updates.
Google Antigravity
Clone into your Antigravity plugins folder, restart Antigravity, then run the setup wizard from that folder:
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 and other MCP clients
Clone the repo, run python3 yt_studio.py setup once, then add the server to your client's config (claude_desktop_config.json for Claude Desktop):
{
"mcpServers": {
"mateai-youtube": {
"command": "python3",
"args": ["/ABSOLUTE/PATH/TO/mateai-youtube-mcp/mcp_server.py"]
}
}
}Any MCP client that runs local (stdio) servers can use this config. Only Claude Code, Claude Desktop and Antigravity are tested.
The plugin runs on Windows with the same commands; only Python needs one check first.
1. Make sure python3 works. Claude Code and Antigravity start the server as python3. Install Python 3.10 or newer from python.org/downloads (the Python install manager) or from the Microsoft Store; both add a python3 command. Then check it in PowerShell:
python3 --versionIt should print Python 3.x. If it opens the Microsoft Store or prints "Python was not found", you have the older python.org installer (it only adds python and py) or no Python yet: install Python with the install manager above, then open Settings > Apps > Advanced app settings > App execution aliases and make sure the Python aliases are on. Open a new PowerShell window and check again.
2a. Claude Code. Install from the marketplace, then run /yt-setup inside Claude Code, exactly as on macOS:
claude plugin marketplace add mategog/mateai-youtube-mcp
claude plugin install yt-studio@mateai-youtube-mcp/yt-setup opens the two Google pages in your default browser and finds the downloaded client_secret_*.json in your Downloads folder (or the project folder). The plugin's data folder is %USERPROFILE%\.claude\plugins\data\yt-studio-mateai-youtube-mcp.
On a Claude Code older than 2.1.287 (no /yt-setup), run the wizard by hand:
$env:MATEAI_YT_HOME = "$env:USERPROFILE\.claude\plugins\data\yt-studio-mateai-youtube-mcp"
$plugin = Get-ChildItem "$env:USERPROFILE\.claude\plugins\cache\mateai-youtube-mcp\yt-studio" -Directory |
Sort-Object { [version]$_.Name } | Select-Object -Last 1
python3 "$($plugin.FullName)\yt_studio.py" setupThe same $env:MATEAI_YT_HOME line works before python3 ...\tiktok_studio.py setup. Restart Claude Code afterwards.
2b. Antigravity. Clone into your Antigravity plugins folder and restart Antigravity:
git clone https://github.com/mategog/mateai-youtube-mcp.git "$env:USERPROFILE\.gemini\config\plugins\mateai-youtube"For the private Studio analytics, run the wizard from that folder: cd "$env:USERPROFILE\.gemini\config\plugins\mateai-youtube"; python3 yt_studio.py setup.
Standalone MCP config. Use forward slashes or doubled backslashes in JSON, for example "args": ["C:/Users/you/mateai-youtube-mcp/mcp_server.py"].
What differs from macOS
Login file privacy. macOS and Linux get
0600file permissions. Windows has no such modes (os.chmodonly toggles read-only), so the plugin doesn't pretend: your token and client file are protected by living in your own user profile folder, which Windows by default lets only you, SYSTEM and administrators read. Anyone with an administrator account on the PC can read them, as with any file in your profile.MateAI Studio login sharing (reusing the desktop app's YouTube login) is macOS-only for now; on Windows the plugin uses its own login from
/yt-setup.
/yt-setup auto-opening the Google pages is macOS and Windows only. On Linux, use the manual wizard (python3 yt_studio.py setup).
Rather skip the Google Cloud setup? MateAI Studio is a desktop app built on this plugin: you sign in to YouTube with one click, without creating your own Google Cloud project. It's free during early access, and the first testers are invited in small batches. Join the early-access list →
Try it
After setup, ask your AI:
"Take a snapshot of my channel and show me the report." (runs
yt_channel_snapshotand writesreport.html)"Which of my last 5 Shorts had the highest swipe-away rate, and where did viewers leave?"
"Do a dry run: upload
short.mp4withcover.png, title it '…', and schedule it for Friday 18:00 my time."
Tools
YouTube
Tool | What it does |
| Fetch channel overview, long-form uploads and Shorts stats, and update |
| Markdown table comparing Shorts retention, swipe-away rate and views. |
| Metadata, 100-point retention curve, drop-off points and traffic sources for an 11-character |
| Upload a local MP4/MOV + cover image with full Studio setup ( |
| Update title, description, tags, privacy status, schedule time, thumbnail or the |
| Post a top-level comment on a video. |
| List/search your uploads (private and unlisted included) to find video IDs. |
| Read top-level comment threads (with replies) on a video. |
| Reply publicly to a top-level comment. |
| Permanently delete a video; refuses unless you pass its exact title. |
| Show / choose which actions ask you first. Used by |
TikTok (optional and experimental, needs the TikTok setup)
Tool | What it does |
| Fetch your TikTok profile stats and recent videos (views, likes, comments, shares) through TikTok's official API. |
| Send a local MP4/MOV to your TikTok app inbox and return the caption to paste, plus a reminder to switch on TikTok's AI-generated label. It does not publish for you. |
| Markdown table that pairs each YouTube Short with the same video on TikTok (views, likes, comments, YouTube avg % viewed, TikTok shares). Videos that exist on only one platform get their own row. |
Dashboard: /yt-dashboard (Claude Code 2.1.287+). Shows or hides a channel card above the prompt: total views, subscribers, video count, and your latest five videos with a viewed-vs-swiped bar. Desktop, VS Code and mobile draw it as a card; the terminal shows a text version. It redraws whenever yt_channel_snapshot runs, so the standalone report.html is optional.
Safety: dry runs, confirmations and limits
Preview before anything goes live. yt_upload_draft, yt_update_video and yt_post_comment accept dry_run: true. They then upload, change and post nothing, need no sign-in, and return exactly what would be sent, with the schedule in your local time and a warning if publish_at is in the past or has no timezone. Ask your AI: "Do a dry run of this upload first."
Choose what asks first: /yt-safety. Claude always asks before deleting a video. Type /yt-safety to also be asked before uploading videos, changing a video's details, or posting and replying to comments. No files to edit, and you can run it again any time.
When an action asks first, the plugin itself shows a confirmation box with exactly what's about to happen, and nothing happens until you click yes. Claude can't answer that box for you, so text hidden in a viewer's comment can't approve a delete. This needs a client that shows MCP confirmation dialogs (Claude Code 2.1.76 or later). In a client that can't, deleting a video and changing these settings are refused (delete in YouTube Studio instead), and the other actions fall back to Claude asking you in chat, which the plugin can't check.
Built-in limits (always on, not adjustable). These back up the MateAI Terms of Service ban on spam-like commenting and protect the daily YouTube quota that all MateAI users share.
At most 20 comments and replies per hour and 100 per 24 hours (an upload's auto-posted comment counts too). The same text (ignoring case and spacing) can be posted at most twice in 24 hours, across all videos. When a limit is hit, nothing is posted and Claude is told when posting is allowed again. The count is kept in
comment_log.jsonnext tosafety.json(timestamps and a hash of the text, not the text itself).When YouTube reports the quota or rate limit is used up (
quotaExceeded/rateLimitExceeded), the plugin stops immediately with a clear message instead of retrying.
YouTube API quota
Your own Google Cloud project gets 10,000 free YouTube Data API units per day, reset at midnight Pacific time. What each action costs, per Google's quota table (checked 2026-11-08):
Action | Data API calls | Units |
Snapshot, list videos, video details, list comments |
| 1 per call |
Upload a video ( |
| Own bucket of 100 uploads/day, not the 10,000 units |
+ custom cover |
| 50, plus 1 per processing check (at most 60) |
+ pinned comment |
| 50 |
Edit a video ( |
| 51 (101 with a new cover) |
Post a comment / reply |
| 50 |
Delete a video |
| 51 |
Retention, swipe-away and other analytics come from the YouTube Analytics API, which isn't part of these 10,000 units.
Easy setup: /yt-setup
Type /yt-setup in Claude Code and it connects the plugin to your YouTube account. You do this once. Everything stays on your computer; only Google sees your sign-in.
You need: Claude Code 2.1.287 or newer, this plugin installed, and the Google account that owns your channel.
1. Type /yt-setup and read the answer.
It says | Meaning | You |
"Already connected." | Done. | Nothing |
"Found your Google client file. Opening your browser…" | It has the file it needs. | Go to step 3 |
"One manual step first… I opened two Google pages." | No client file yet. Google makes everyone create one. | Go to step 2 |
2. Make the Google client file (only if asked, about 3 minutes). No program can do this for you.
Page "Audience": click Add users under Test users, enter your YouTube email, Save.
Page "Create OAuth client": Application type = Desktop app (not "Web application"), any name, Create, then Download JSON.
Leave the file in
~/Downloadsand run/yt-setupagain.
3. Sign in (your browser opens). Pick your YouTube account. On "Google hasn't verified this app" click Advanced, then Go to … (unsafe); this is your own app. Tick every box, click Allow. Claude Code then shows "yt-setup: connected!" and the "YouTube: not connected" status hint disappears.
/yt-setup copies your client file into the plugin's data folder with 600 permissions (on Windows: your private user profile folder), never prints it, and never sees your Google password.
Manual setup wizard (any client)
Not using Claude Code 2.1.287+? Run the wizard:
python3 yt_studio.py setupBecause you run this for your own channel with the Google app in "Testing" mode, no Google app verification is needed (the cost: Google expires the sign-in every 7 days). The wizard:
Creates
.venvand installs Google's OAuth libraries if they aren't installed yet.Enables the YouTube APIs via
gcloudif you have thegcloudCLI, or opens the enablement pages.Opens the Test User and Create Desktop Client pages and watches
~/Downloads. When you click Download JSON, it movesclient_secret_*.jsonintogoogle_auth_secret/client_secret.json(0600,.gitignored), starts the YouTube sign-in and opens yourreport.htmldashboard.
For the Claude Code plugin on an older Claude Code, point the wizard at the plugin's data folder:
MATEAI_YT_HOME=~/.claude/plugins/data/yt-studio-mateai-youtube-mcp \
python3 ~/.claude/plugins/cache/mateai-youtube-mcp/yt-studio/<version>/yt_studio.py setupReplace <version> with your installed version (ls ~/.claude/plugins/cache/mateai-youtube-mcp/yt-studio/), or run the same command from any clone of this repo. Restart Claude Code afterwards.
Public mode (no login, opt-in)
Public stats for any channel work without API keys, but public page scraping is off by default. Opt in with --public, force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1:
git clone https://github.com/mategog/mateai-youtube-mcp.git
cd mateai-youtube-mcp
python3 yt_studio.py snapshot --public --handle @mateai-c6m
open report.html
# Markdown table for Shorts A/B style experiments
MATEAI_YT_PUBLIC_SCRAPE=1 python3 yt_studio.py experiment-table --handle @mateai-c6mFor your own channel, the official APIs above are the recommended default.
Privacy: what it runs, sends and fetches
Everything runs on your own computer. The author receives no data. Nothing is sent anywhere except to Google/YouTube (and to TikTok, only if you set up the optional TikTok connection), and to your Claude conversation, which is under Anthropic's own privacy terms (see PRIVACY.md).
The MCP server (mcp_server.py, started by Claude Code as python3 ${CLAUDE_PLUGIN_ROOT}/mcp_server.py):
Calls Google's YouTube Data API v3 and YouTube Analytics API v2 with the scopes you approve at sign-in: read-only analytics, and optionally upload, edit metadata and post comments.
Public mode (off by default): fetches public
youtube.comchannel and video pages only when you opt in with--public,force_public=trueorMATEAI_YT_PUBLIC_SCRAPE=1.yt_upload_draftreads the video and cover files whose paths you give it and uploads them to your channel.yt_update_videoandyt_post_commentchange your video or post a comment, only when called.Writes
channel_snapshot.jsonandreport.html(cached statistics for your own channel) to the plugin data folder.
The /yt-setup command (a Claude Code mod in hooks/):
Looks for a
client_secret*.jsonin the plugin data folder, your current project and~/Downloads(up to 5 folders deep), and copies a Desktop-app client into the data folder with600permissions. It never prints the file.Creates a Python virtual environment in the data folder and runs
pip install -r requirements.txt(from PyPI:google-api-python-client,google-auth-oauthlib,google-auth-httplib2).Opens two Google Cloud pages (macOS
open, Windowsrundll32 url.dll,FileProtocolHandler) and starts Google's sign-in in your browser. Your Google password is typed on Google's own page and never reaches this plugin.Reads your saved token only to check which permissions it holds.
Where your login lives: ~/.claude/plugins/data/yt-studio-mateai-youtube-mcp/ (client_secret.json and .tokens/token.json, both mode 600; on Windows %USERPROFILE%\.claude\plugins\data\yt-studio-mateai-youtube-mcp\, protected by your user profile folder). Delete that folder to remove it, and revoke access at https://myaccount.google.com/permissions.
With the MateAI Studio app (macOS): if you've connected YouTube in MateAI Studio, the plugin uses that login instead (read from the app's Keychain item dev.mateai.desktop, never changed), so one Connect covers both. The first time, macOS asks whether security may use that item: choose Always Allow. To keep a separate plugin login, set MATEAI_DESKTOP_LOGIN=off.
TikTok (optional, experimental)
Cross-post your Shorts and see how they do on both platforms. This uses TikTok's official, free developer API only: no cookies, no scraping. It never publishes for you; a video lands in your TikTok app inbox and you tap Post yourself. The YouTube tools work the same whether or not you set this up.
Experimental: you need your own TikTok developer app, in sandbox mode. Like the YouTube side, the plugin has no shared app: you create one at developers.tiktok.com. Without TikTok's app review, an app only works in its sandbox, and only for the TikTok accounts you add there as target users (your own account). Status today: stats (tiktok_channel_snapshot) are tested through a sandbox app; sending a draft to the inbox through a sandbox app is not tested yet.
"Send
exports/short.mp4to my TikTok inbox with the caption fromplanning/my-short-upload.md.""Show my YouTube Shorts next to the same videos on TikTok."
Connect TikTok (once)
Create an app at developers.tiktok.com and choose the Desktop platform.
Open the app's Sandbox (create one if there is none). Do the next steps in the sandbox.
Add the redirect URI
http://127.0.0.1:8765/callback/(exactly, with the trailing slash).Enable these scopes:
user.info.basic,user.info.profile,user.info.stats,video.list,video.upload.Under Target users, add the TikTok account you'll use. Only target users can sign in; any other account gets a
non_sandbox_targeterror.Click Apply changes. Edits in the sandbox don't take effect until you do.
Run the wizard. It asks for the sandbox's Client Key and Client Secret, opens TikTok's sign-in in your browser, and saves the token locally. Keep the wizard running until the sign-in finishes:
python3 tiktok_studio.py setupIf you installed the plugin, point it at the plugin's data folder first, the same way as for the YouTube wizard: MATEAI_YT_HOME=~/.claude/plugins/data/yt-studio-mateai-youtube-mcp python3 tiktok_studio.py setup.
Command line
python3 tiktok_studio.py snapshot # profile and recent videos
python3 tiktok_studio.py upload-draft --video exports/short.mp4 \
--spec planning/my-short-upload.md # send to your TikTok inbox
python3 tiktok_studio.py cross-table # YouTube Shorts vs TikTokGood to know
Drafts only, never public posts. Posting directly needs the
video.publishscope and TikTok's audit, and TikTok forces posts from unaudited apps to private. The plugin only sends drafts to your inbox (video.upload).Captions are pasted by hand. TikTok's inbox upload cannot take a caption.
tiktok_upload_draftbuilds one from your upload spec (title plus the#hashtagsin the description,#Shortsremoved) and returns it for you to paste in the app.Switch on the AI-generated label yourself. If your video uses a synthetic voice or AI visuals, turn on TikTok's AI-generated content toggle in the app before posting. The API cannot set it.
Matching is by title. The comparison table pairs a Short with a TikTok when the title (hashtags ignored) matches the TikTok title or description. Anything else shows up as its own row, with "—" for the missing platform.
Only official numbers. TikTok's API gives views, likes, comments and shares. Retention-style metrics exist for YouTube only.
Your data. The client file is
tiktok_auth_secret/tiktok_client.jsonand the login token is.tokens/tiktok_token.json, both owner-only (0600) and.gitignored. The cache istiktok_snapshot.json, and everytiktok_channel_snapshotcall also appends a counts row totiktok_history.jsonlso growth can be measured later. Details in PRIVACY.md.
Problem | Fix |
"No TikTok OAuth token found" | Run |
"TikTok refresh token expired" | Run |
Setup waits, then times out | The browser tab was closed. Rerun setup; it waits 5 minutes for the sign-in. |
Sign-in page rejects the redirect | The redirect URI in your TikTok sandbox must be exactly |
| Add your account under Target users, check the scopes, then click Apply changes in the sandbox and rerun setup. |
The wrong TikTok account got connected | The browser was already signed in to another TikTok account and used it without asking. Sign out of TikTok in the browser, then rerun setup. |
Channel handle is empty | The |
Troubleshooting
Problem | Fix |
It says the file is a "web" client | Create a new client and choose Desktop app. |
Browser shows "Access blocked" / 403 access_denied | Your email is not under Test users. Add it, then rerun |
"Login did not finish" | The tab was closed early or a box was not ticked. Rerun |
"yt-studio plugin is not installed" | Run |
"Could not install the Google libraries" | Install Python 3 (python.org) and check your internet connection. |
Nothing happens | Hooks may be off ( |
Asked to log in again after about a week, or "Your YouTube login expired" | Google expires sign-ins after 7 days for an app in "Testing" status with an external user type (Google's OAuth docs). Rerun |
Start over | Delete |
Bundled skills and credits
The plugin ships the MCP server together with a YouTube strategy and creator skill suite, so your AI can go from niche research and hook writing to live Studio scheduling:
Live YouTube Studio execution and analytics (the MCP tools above,
report.htmldashboard andsetupwizard): built by MateAI (@mateai-c6m).Production pipeline skills (
yt-research,yt-ideation,yt-brief,yt-packaging,yt-outline, plus the/yt-pipelinecommand andyt-scraper,channel-analyzer,idea-validatoragents): created by Jeremy Longshore (@jeremylongshore/ Intent Solutions) (@intentsolutionsio/youtube-strategy, MIT).14 creator sub-skills and playbooks (
audit,seo,script,hook,thumbnail,strategy,calendar,shorts,analyze,repurpose,monetize,competitor,metadata,ideate): created by Daniel Agrici (@AgriciDaniel) (claude-youtube, MIT).Chapters, comment replies and title lint (
yt-chapters,yt-comment,yt-title-lint): from Jake Schincariol (@Jakeschincariol) (youtube-agent-skill, MIT).yt-chaptersbuilds YouTube-valid chapters from an.srt/.vtt/Whisper transcript,yt-commenttriages comments and drafts replies, andyt-title-lintchecks a title and thumbnail as one pairing (renamed fromyt-package). All three only write drafts; publishing stays with you or the MCP tools. They read an optional voice profile at~/.claude/youtube/voice.md.
Support
If this saved you from paying for a monthly creator tool:
Star the repo so other creators can find it.
Sponsor on GitHub: github.com/sponsors/mategog
Subscribe on YouTube: MateAI (@mateai-c6m): real AI build-logs, measured costs, no hype.
Buy Mate a Coffee: buymeacoffee.com/mateai
License
Licensed under Apache License 2.0 with Commons Clause Restriction v1.0 (LICENSE). This is a source-available license, not an OSI open-source one; GitHub may label the repository "Apache-2.0" because of the base text.
Free for creators and developers: you may use, modify and share this tool for your own YouTube channels (including monetized channels).
No commercial resale or paid SaaS wrapping: you may not sell this software, bundle it into a paid product, or host it as a paid/managed MCP service without a commercial license from MateAI.
Available Tools
15 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_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 15 tools
Most tools are cleanly separated by resource+action: list/post/reply comments, upload/update/delete video, get/set safety settings. The analytics trio (yt_channel_snapshot, yt_shorts_experiment_table, cross_platform_shorts_table) all emit report-style output and require reading descriptions carefully to distinguish channel-level dashboard vs Shorts-only table vs YouTube-vs-TikTok comparison. The dual tiktok_upload_draft vs yt_upload_draft and the two channel_snapshot tools are distinguishable by prefix.
Consistent snake_case with a predictable platform prefix scheme (yt_, tiktok_, cross_platform_), which reads well as a set. Minor deviation: several tools are noun phrases rather than verb_noun (yt_channel_snapshot, yt_video_details, tiktok_channel_snapshot, yt_shorts_experiment_table, cross_platform_shorts_table), while others follow verb_noun (list_videos, upload_draft, delete_video).
15 tools is a reasonable, well-scoped surface for a YouTube channel management server with a TikTok cross-post extension. Each tool covers a distinct operation (listing, uploading, updating, deleting, commenting, analytics, safety config) with little redundancy, though the analytics/table generators push it slightly toward the heavy end.
Video lifecycle is fully covered (list, details, upload, update, delete) and comments support read, post and reply. Gaps remain: no comment moderation (delete/hold), no playlist or caption/subtitle management, and TikTok coverage stops at upload+dashboard with no posting analytics beyond the comparison table. These are workaround-able but noticeable for a full channel-management server.
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.
Read-only Google Analytics 4 MCP server for AI assistants.
Remote MCP server for AI.TV creators — delegate account operations to your AI agent over MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for YouTube creator-ops — video metadata, comments, playlists, channel analytics, plus a ComfyUI bridge for AI thumbnail generation.1564 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.3MIT
- 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.25 npmMIT