Publit.Si
YouTube

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, and coverSecond for 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

ToolWhat it does for YouTube
list_backlogFolders still missing on YouTube (missingOn=YOUTUBE), oldest first.
get_platform_rulesFormats short and video, the description limit (5,000 bytes) and the fields title, privacy, tags, category, madeForKids, syntheticMedia, notifySubscribers, firstComment and coverSecond.
get_posting_slotsFree posting times for your channel.
create_draftA YouTube draft with format: "short" or "video" and fields.title; the post text becomes the description.
update_draftChanges title, tags or time of a draft before you approve it.
get_post_performanceIn 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_statsOne video's numbers and their history since publication, as YouTube reported them.
list_commentsComments under your videos with any replies, unanswered first.

Set it up

  1. Connect your YouTube channel under Accounts in Publit.Si, with a free Google Cloud project.[2]
  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.
  3. 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.
  4. Ask your agent “List my Publit.Si projects”. It calls list_projects and names your projects.
Claude Code – Run once in the publitsi folder (Mac and Linux):
claude mcp add --scope user publitsi -- pnpm --silent --dir "$(pwd)" mcp
Claude Code – Windows (PowerShell, in the folder):
claude mcp add --scope user publitsi -- cmd /c pnpm --silent --dir "$PWD" mcp
Codex – Add Publit.Si's MCP server to ~/.codex/config.toml:
[mcp_servers.publitsi]
command = "pnpm"
args = ["--silent", "--dir", "/path/to/publitsi", "mcp"]
OpenCode – Add Publit.Si's MCP server to ~/.config/opencode/opencode.json:
{
  "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_backlog with missingOn=YOUTUBE and limit=5, get_platform_rules for YOUTUBE, then one create_draft per folder with format: "short", fields.title and backlogItem.
  • “Which of my Shorts this month got the most views, and how many hours were they watched?” → get_post_performance with days=30, then the youtube part: its videos most viewed first and the channel's watchHours.
  • “Fill my YouTube slots for the next 7 days.” → get_posting_slots with days=7, one folder from list_backlog per free slot, then one create_draft per slot with plannedFor set to the slot's time.

Limits

  • It never publishes. create_draft and update_draft only 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]
  • syntheticMedia sets YouTube's disclosure for realistic altered or generated content.[6]
  • watchedPercent needs 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.

Sources

  1. [1] Publit.Si docs: MCP tools: publit.si/docs/guide/mcp
  2. [2] Publit.Si docs: Connect YouTube: publit.si/docs/platforms/youtube
  3. [3] Publit.Si docs: Comments inbox: publit.si/docs/guide/comments
  4. [4] Publit.Si: Schedule YouTube Shorts and videos: publit.si/platforms/youtube
  5. [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. [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. [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“