# YouTube MCP server for AI agents

Connect ChatGPT, Claude, Claude Code, Cursor or Codex to YouTube via MCP. Upload videos and Shorts, set thumbnails, assign playlists and manage comments.

Automate YouTube channel operations directly from your AI assistant. PostSyncer’s MCP server offers 118 tools in one list (your client decides which of them it shows) so agents can inspect channel playlists, upload videos and Shorts up to 500 MB with custom thumbnails, hold spam comments for review and track views.

**MCP server:** https://postsyncer.com/mcp · **REST API:** https://postsyncer.com/api/v1 · **Docs:** https://postsyncer.com/docs/platforms/youtube

## Example YouTube agent prompt

Prompt: “Check our YouTube channel playlists, watch our new espresso pour video to draft SEO-friendly title and tags, and save an unlisted draft in the Tutorials playlist.”

- `list-workspaces`: Halden Coffee (#4815)

- `get-account`: YouTube Halden Coffee (#16241) · 6 playlists loaded

- `analyze-video`: Extracted pour steps, timestamps and 3 visual hooks

- `create-post`: Saved draft #81450 with playlist Tutorials

Saved unlisted YouTube draft #81450 titled “How to Pour a Clean Rosetta” with tags, a description, a custom cover thumbnail and playlist Tutorials selected. Nothing is scheduled yet: tell me when it should go out.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create-post",
    "arguments": {
      "workspace_id": 4815,
      "schedule_type": "draft",
      "content": [
        {
          "text": "Two-minute breakdown of milk texture and pitcher height for a clean rosetta.",
          "media": [5120],
          "cover_image": {
            "thumbnail": "https://cdn.postsyncer.com/examples/rosetta-cover.jpg"
          }
        }
      ],
      "accounts": [
        {
          "id": 16241,
          "settings": {
            "video_type": "video",
            "title": "How to Pour a Clean Rosetta",
            "privacyStatus": "unlisted",
            "tags": [
              "latte art",
              "espresso",
              "coffee"
            ],
            "playlist_id": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf",
            "language": "en",
            "containsSyntheticMedia": false
          }
        }
      ]
    }
  }
}
```

## Quick start

1. **Connect your MCP client.** Install the official ChatGPT app or Claude plugin, or point Claude Code, OpenClaw, Cursor, Codex or Gemini CLI at https://postsyncer.com/mcp.

2. **Authorize your YouTube channel.** Connect your channel inside PostSyncer with upload, playlist and comment permissions, then sign in from your AI client via OAuth or a scoped Bearer key.

3. **Draft metadata, assign playlists and moderate comments.** Ask your agent to analyze footage, pick the right playlist, schedule Shorts or long-form videos with custom thumbnails and manage viewer comments.

## MCP tools for YouTube

Verified PostSyncer MCP tools for YouTube channels — covering playlist lookup, AI video inspection, video uploads up to 500 MB, comment review queues and channel analytics.

- `get-account` (`accounts:read`): Read a YouTube channel’s playlists array (up to 500 playlists with id, title and video_count).

- `analyze-video` (`media:read`): Watch a YouTube video or library clip of up to 10 minutes with AI to draft titles, chapters and tags (paid plans; costs AI credits by length).

- `create-media-upload-link` (`media:create`): Create a short-lived upload link for an MP4, MOV or WebM video up to 500 MB that your chat client can’t pass directly.

- `create-post` (`posts:create / schedule / publish`): Schedule or draft one YouTube video or Short with thumbnail, tags, playlist_id and disclosures.

- `delete-post` (`posts:delete`, destructive): Cancel a scheduled upload or remove an already-published video on YouTube.

- `list-comments` (`comments:read`): Read YouTube comments synced on schedule or via sync-comments-from-platforms.

- `hide-comment` (`comments:update`, destructive): Hold a YouTube comment for review, or pass hidden: false to publish it again.

- `get-analytics-post` (`analytics:read`): Fetch impressions, likes, comments and shares for a published YouTube video.

## Agent workflows on YouTube

Creator and video-team YouTube tasks that save hours every week through PostSyncer MCP.

### Watch footage and generate metadata automatically

Prompt: “Use analyze-video on our newest upload in the library, write a 90-character title, timestamped description and under-500-char tags, and save an unlisted YouTube draft.”

Tools: `list-media`, `analyze-video`, `get-account`, `create-post`. On paid plans, analyze-video watches up to 10 minutes of footage for AI credits, so you skip manual scrubbing while your metadata stays inside YouTube’s byte and tag ceilings.

### Cross-post a vertical clip as a YouTube Short

Prompt: “Take our 45-second vertical pour clip and schedule it as a YouTube Short for Friday at 3 PM in the Espresso Tips playlist with notifySubscribers turned off.”

Tools: `get-account`, `list-media`, `create-post`. Queues a quiet Short upload with playlist assignment and custom cover_image.thumbnail without notifying subscribers.

### Hold spam comments for review and answer viewer questions

Prompt: “Sync comments on our latest YouTube tutorial, hold promotional link spam for review, and reply to questions about our grinder settings.”

Tools: `list-posts`, `sync-comments-from-platforms`, `list-comments`, `hide-comment`, `create-comment`. Uses YouTube’s reversible hold-for-review state for questionable comments and posts text replies directly from the channel.

### Audit YouTube disclosure fields across scheduled drafts

Prompt: “List all upcoming YouTube drafts this month and verify every one has language, privacyStatus and containsSyntheticMedia set correctly.”

Tools: `list-posts`, `get-post`, `update-post`. Catches missing disclosures, uncategorized playlists or overly long tags before scheduled videos go live.

## Zero-error YouTube titles, UTF-8 byte descriptions and tag math

YouTube’s Data API rejects uploads over tiny formatting slips: a single < or > in a description, a tag list whose multi-word space quotes push it past 500 characters, or an unsupported language code. When an AI agent publishes through PostSyncer’s MCP server, PostSyncer validates YouTube’s exact tag calculation and language list up front, strips forbidden angle brackets and trims multi-byte UTF-8 descriptions safely at character boundaries.

To pick a playlist accurately instead of guessing IDs, your agent calls get-account (which returns up to 500 playlists with id, title and privacy_status; list-accounts omits them to stay fast) and passes the verified playlist_id into create-post.

## Getting large YouTube videos from AI chat clients into PostSyncer

Long-form YouTube videos often run to hundreds of megabytes, and PostSyncer takes MP4, MOV or WebM files up to 500 MB each. Because chat windows cannot pass files that big into tool JSON, your agent calls upload-media-from-url for hosted links, upload-media-file for a file attached in ChatGPT, or create-media-upload-link to make a short-lived browser or curl upload link, then reads back the finished library ID via get-media-upload-link.

Attach a custom thumbnail image via cover_image.thumbnail (URL or library ID) — remember YouTube requires an image file rather than a video frame timestamp.

## Hold-for-review moderation, first comments and honest limits

On YouTube, hide-comment places a comment into held-for-review status and passing hidden: false publishes it again. Calling delete-comment removes your own channel comment or permanently rejects someone else’s comment. Both actions carry destructive annotations so MCP clients ask before running them.

Remember that YouTube first comments and comment replies are text only (passing media on a first comment returns 422), and PostSyncer uploads your video at the scheduled time rather than configuring a native YouTube Premiere.

Related pages: [YouTube REST API](https://postsyncer.com/youtube-api), [YouTube scheduler](https://postsyncer.com/youtube-scheduler), [MCP server overview](https://postsyncer.com/mcp-social-media).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### Can an AI agent upload YouTube Shorts and long-form videos via MCP?

Yes. Pass an MP4, MOV or WebM video up to 500 MB (from your library, a public URL or an upload link) into create-post. Square or vertical videos up to 3 minutes publish as YouTube Shorts automatically.

### How does my agent know which YouTube playlists exist?

The agent calls get-account on your YouTube account ID, which returns up to 500 channel playlists with their IDs, titles and privacy statuses, then passes playlist_id to create-post.

### Can my AI agent watch a video before writing the YouTube title and description?

Yes, on paid plans. The analyze-video MCP tool watches up to 10 minutes of a library video or public video URL so the agent can write grounded titles, descriptions and tags. Each watch costs AI credits by length, about 2 for a one-minute video.

### Can my agent set YouTube custom thumbnails and AI disclosures?

Yes. Pass cover_image.thumbnail for custom artwork and set containsSyntheticMedia, hasPaidProductPlacement and selfDeclaredMadeForKids inside accounts[].settings.

### How does comment moderation work on YouTube MCP?

hide-comment holds a comment for review (and hidden: false republishes it), create-comment posts text replies as your channel, and delete-comment removes your comment or permanently rejects another viewer’s comment.

### Does YouTube MCP work on the Free plan?

Yes. YouTube publishing, playlists and 7-day analytics work on Free within your plan’s monthly posts. analyze-video and extended analytics history require a paid plan.

---

Page: https://postsyncer.com/youtube-mcp · Updated 2026-11-27
