A YouTube MCP server for Shorts, titles and watch time
Publit.Si's MCP server lets Claude Code, Codex, Cursor or OpenCode plan your YouTube channel on your own computer: Shorts and videos with title, tags, category and privacy, and the numbers that matter for Shorts, such as how much of a video people watched. You approve each draft; Publit.Si uploads it ahead with its publish time.
What your agent does for YouTube
- Drafts Shorts (portrait or square, up to 3 minutes) and videos from backlog folders still missing on YouTube.
- Writes the title (max. 100 characters; empty = the first line of the text) and the description: the post text becomes the description.
- Sets YouTube's fields:
privacy,tags,category,madeForKids,syntheticMedia,notifySubscribers,firstComment, andcoverSecondfor long videos. - Reads every video's views, likes and comments and, from YouTube Analytics,
watchedPercent, the average view time and the followers it brought, as YouTube reports them. - Reads the comments under your videos, unanswered first.[3]
The tools for YouTube
| Tool | What it does for YouTube |
|---|---|
list_backlog | Folders still missing on YouTube (missingOn=YOUTUBE), oldest first. |
get_platform_rules | Formats short and video, the description limit (5,000 bytes) and the fields title, privacy, tags, category, madeForKids, syntheticMedia, notifySubscribers, firstComment and coverSecond. |
get_posting_slots | Free posting times for your channel. |
create_draft | A YouTube draft with format: "short" or "video" and fields.title; the post text becomes the description. |
update_draft | Changes title, tags or time of a draft before you approve it. |
get_post_performance | In its own youtube part: each video's views, likes, comments, watchedPercent, avgViewSec and followersGained, most viewed first, and per channel the period's sums and hours watched. |
get_post_stats | One video's numbers and their history since publication, as YouTube reported them. |
list_comments | Comments under your videos with any replies, unanswered first. |
Set it up
- Connect your YouTube channel under Accounts in Publit.Si, with a free Google Cloud project.[2]
- Connect Publit.Si's MCP server once in your agent with the lines below. Publit.Si → Settings → MCP for Claude Code, Codex, Cursor & OpenCode shows them with your real path.
- Cursor: Publit.Si → Settings → MCP for Claude Code, Codex, Cursor & OpenCode shows the block for ~/.cursor/mcp.json with your real path. Paste it there.
- Ask your agent “List my Publit.Si projects”. It calls
list_projectsand names your projects.
claude mcp add --scope user publitsi -- pnpm --silent --dir "$(pwd)" mcpclaude mcp add --scope user publitsi -- cmd /c pnpm --silent --dir "$PWD" mcp[mcp_servers.publitsi]
command = "pnpm"
args = ["--silent", "--dir", "/path/to/publitsi", "mcp"]{
"mcp": {
"publitsi": { "type": "local", "command": ["pnpm", "--silent", "--dir", "/path/to/publitsi", "mcp"], "enabled": true }
}
}Example prompts
- “Draft the next five Shorts that aren't on YouTube yet, with titles under 60 characters.” →
list_backlogwithmissingOn=YOUTUBEandlimit=5,get_platform_rulesfor YOUTUBE, then onecreate_draftper folder withformat: "short",fields.titleandbacklogItem. - “Which of my Shorts this month got the most views, and how many hours were they watched?” →
get_post_performancewithdays=30, then theyoutubepart: its videos most viewed first and the channel'swatchHours. - “Fill my YouTube slots for the next 7 days.” →
get_posting_slotswithdays=7, one folder fromlist_backlogper free slot, then onecreate_draftper slot withplannedForset to the slot's time.
Limits
- It never publishes.
create_draftandupdate_draftonly make drafts, and you approve each one under Queue › Review. The MCP server your coding agent connects to has no tool that schedules or publishes.[1] - Publit.Si uploads each approved video ahead with its publish time, and YouTube publishes it on its own, even while your computer is off.[4]
- A title has at most 100 characters.[5]
syntheticMediasets YouTube's disclosure for realistic altered or generated content.[6]watchedPercentneeds the YouTube Analytics API turned on in your Google Cloud project and runs a few days behind.coverSecond, the frame for the thumbnail, applies to long videos only.- No score, rating or best times for YouTube, and its numbers aren't added into the totals of other platforms: YouTube's developer policies don't allow metrics derived from its data.[7]
Questions
Can the agent post to YouTube on its own?
No. It creates drafts, and you approve each one under Queue › Review. Then Publit.Si uploads it with its publish time.
Does my computer have to be on when a video goes live?
No. Videos are uploaded ahead with their publish time, and YouTube publishes them itself. Your computer only needs to be on for the upload.
Can my agent see how much of a Short people watched?
Yes, once the YouTube Analytics API is turned on in your Google Cloud project: get_post_performance then returns watchedPercent, the average view time and the followers a video brought, in its youtube part.
Related
Sources
- [1] Publit.Si docs: MCP tools: publit.si/docs/guide/mcp
- [2] Publit.Si docs: Connect YouTube: publit.si/docs/platforms/youtube
- [3] Publit.Si docs: Comments inbox: publit.si/docs/guide/comments
- [4] Publit.Si: Schedule YouTube Shorts and videos: publit.si/platforms/youtube
- [5] YouTube Data API: Videos: https://developers.google.com/youtube/v3/docs/videos, checked November 17, 2026
„The property value has a maximum length of 100 characters and may contain all valid UTF-8 characters“
- [6] YouTube Data API: Videos: https://developers.google.com/youtube/v3/docs/videos, checked November 17, 2026
„this property allows the channel owner to disclose that a video contains realistic“
- [7] YouTube API Services: Developer Policies: https://developers.google.com/youtube/terms/developer-policies, checked November 17, 2026
„create new or derived data or metrics“