YouTube Shorts Agent
This MCP server lets agents prepare, validate, authorize, dry-run or live-upload YouTube Shorts, and verify channel status via the official YouTube Data API.
Get install/runtime guidance for MCP clients like Codex, Claude, Cursor, Hermes, and OpenClaw.
Check OAuth readiness, dry-run mode, and live-upload readiness without exposing token values.
Audit privacy/upload boundaries, OAuth scopes, synthetic media handling, and local file access.
Generate a Google OAuth authorization URL and store the PKCE verifier locally.
Upload one vertical video as a YouTube Short with title, caption, tags, privacy status, and
containsSyntheticMediasupport; dry-run is enabled by default.List recent videos from the configured YouTube channel for lightweight verification.
Return results as JSON or Markdown via
response_format.
Allows agents to upload YouTube Shorts videos via the YouTube Data API, with dry-run safety, OAuth readiness, and structured output for metadata and upload jobs.
Provides tools for uploading, validating, and managing YouTube Shorts videos, including synthetic media support and privacy audits.
Explicitly avoids automating YouTube Studio UI, focusing on API-based uploads.
ā If this agent-first tool helps your workflow, please star the repo. Stars make this tooling easier for other builders to discover and help Delx keep shipping open infrastructure. š§± Part of the Delx agent stack — 15 open-source MCP servers across body, reach and coordination.
Agent-first YouTube Shorts uploader for the YouTube Data API. It is designed for Codex, Claude, Cursor, Hermes, OpenClaw and any MCP client that needs a predictable upload workflow with dry-run safety, OAuth readiness checks and structured output.
Use it when an agent needs to prepare, validate or upload Shorts through the official API without touching YouTube Studio UI.
What Agents Get
youtube_agent_manifestfor install/runtime guidanceyoutube_connection_statusbefore upload attemptsyoutube_privacy_auditfor local token and media boundariesyoutube_oauth_authorize_urlwith local PKCE session storageyoutube_upload_shortwithcontainsSyntheticMediasupportyoutube_list_recent_videosfor lightweight post-upload checks
Related MCP server: TikTok Agent Publisher
Install
npm install -g youtube-shorts-agentOr run directly:
npm exec --yes --package=youtube-shorts-agent -- youtube-shorts-agent doctorCLI
youtube-shorts-agent manifest --client codex
youtube-shorts-agent doctor
youtube-shorts-agent privacy-audit
youtube-shorts-agent auth-url --redirect-uri http://localhost:8787/callback
youtube-shorts-agent upload-short --video ./short.mp4 --title "Launch title" --caption-file copy.txt
youtube-shorts-agent list-recent --max-results 10Dry-run is enabled by default. Set YOUTUBE_DRY_RUN=false only when doctor reports a complete OAuth setup and you intend to call the live API.
Optional cover draft
Prepare a local square cover draft with the cover recipe.
Preview offline, request a free quote, then let the operator approve that exact
purchase with --pay. The separate image kit verifies the WebP and safely resumes
the same payment authorization.
First Upload (dry-run walkthrough)
This is the full first-run path. Every step here is dry-run safe ā no credentials are required and nothing is sent to YouTube. The output below is captured verbatim from a real run.
1. Check readiness. With no OAuth configured, doctor confirms you are in dry-run mode:
youtube-shorts-agent doctor{
"ok": true,
"dry_run": true,
"configured": {
"client_credentials": "missing",
"access_token": "missing",
"refresh_token": "missing"
},
"missing_count": 3,
"ready_for_live_upload": false,
"next_steps": [
"Current mode is dry-run. Validate metadata and agent flow before live uploads."
]
}2. Prepare a Short and its caption.
printf 'Launching the agent-first Shorts uploader.\n#shorts #ai #agents' > copy.txt
# short.mp4 is your vertical 9:16 clip3. Run the upload in dry-run. No network call is made; the tool returns the exact job and result it would publish, so an agent can validate metadata before going live:
youtube-shorts-agent upload-short \
--video ./short.mp4 \
--title "Agent-first Shorts upload" \
--caption-file copy.txt \
--tags ai,agents \
--duration 24{
"ok": true,
"dry_run": true,
"job": {
"id": "youtube_1780082215631",
"platform": "youtube",
"status": "queued",
"createdAt": "2026-05-29T19:16:55.631Z",
"caption": "Launching the agent-first Shorts uploader.\n#shorts #ai #agents",
"targetUrl": "",
"mediaPaths": ["./short.mp4"],
"metadata": {
"title": "Agent-first Shorts upload",
"youtube_title": "Agent-first Shorts upload",
"youtube_tags": ["ai", "agents"],
"youtube_contains_synthetic_media": true,
"video_duration_sec": 24,
"video_aspect_ratio": "9:16"
}
},
"result": {
"provider": "youtube_official",
"platformPostId": "dryrun_1780082215631",
"releaseUrl": "https://www.youtube.com",
"raw": { "dryRun": true, "jobId": "youtube_1780082215631" }
}
}platformPostId is prefixed with dryrun_ and releaseUrl is the YouTube root ā both signal that nothing was uploaded. The id, createdAt and dryrun_* values vary per run.
4. Confirm the channel listing path (returns an empty list in dry-run):
youtube-shorts-agent list-recent --max-results 5{ "items": [] }Going live. Configure OAuth (youtube-shorts-agent auth-url --redirect-uri http://localhost:8787/callback, then exchange the callback code for tokens), set YOUTUBE_CLIENT_ID / YOUTUBE_CLIENT_SECRET / YOUTUBE_ACCESS_TOKEN / YOUTUBE_REFRESH_TOKEN in .env, re-run doctor until ready_for_live_upload is true, then set YOUTUBE_DRY_RUN=false and re-run the same upload-short command.
MCP
youtube-shorts-mcpHTTP (v2 stateless)
Default is stdio. Optional Streamable HTTP ā no session id, JSON responses, loopback only:
npx -y -p youtube-shorts-agent youtube-shorts-mcp --http
# GET http://127.0.0.1:3032/health
# POST http://127.0.0.1:3032/mcp (sessionless)Env: YOUTUBE_MCP_HOST, YOUTUBE_MCP_PORT, YOUTUBE_MCP_TRANSPORT=http.
Hermes-style config:
mcp_servers:
youtube_shorts:
command: npx
args: ["-y", "youtube-shorts-agent"]
sampling:
enabled: falseRecommended first calls:
youtube_connection_statusyoutube_privacy_audityoutube_upload_short
Agent Surfaces
Tool | Purpose |
| Install/runtime guidance for Codex, Claude, Cursor, Hermes and OpenClaw |
| OAuth and dry-run readiness without token values |
| Upload scope, synthetic media and local file boundaries |
| PKCE authorization URL with local session storage |
| Dry-run or live Shorts upload |
| Lightweight channel verification |
Copy-Paste Agent Prompt
Use youtube-shorts-agent. First call youtube_connection_status and youtube_privacy_audit.
If uploading AI-generated media, keep containsSyntheticMedia=true. Never print token values.Configuration
Copy .env.example to .env. Keep .env and .agent-data/ out of Git.
The upload tool sets containsSyntheticMedia=true by default for AI-generated or AI-edited videos. Override only when that is not true for the asset.
Safety Model
OAuth tokens are never returned by CLI or MCP tools.
PKCE verifier is stored locally in
.agent-data/.Live upload requires
YOUTUBE_DRY_RUN=false.The package uses the official YouTube Data API and does not automate Studio UI.
Development
npm install
npm test
npm run checkš§ Contact & Support
šØ support@delx.ai ā general questions, integration help, partnerships
š Bug reports / feature requests ā GitHub Issues
š¦ Updates ā @delx369 on X
š Site ā wellness.delx.ai
Available Tools
6 toolsyoutube_agent_manifestYouTube Shorts Agent ManifestCRead-onlyIdempotent
Machine-readable install, client, runtime and safety guidance for agents.
Inputs: client, response_format.
youtube_connection_statusYouTube Connection StatusARead-onlyIdempotent
Check dry-run mode, OAuth readiness and live upload readiness without exposing tokens.
Inputs: response_format.
youtube_list_recent_videosList Recent YouTube VideosBRead-onlyIdempotent
List recent videos from the configured YouTube channel.
Inputs: max_results, response_format.
youtube_oauth_authorize_urlYouTube OAuth Authorize URLB
Create a Google OAuth authorization URL and persist the PKCE verifier locally without returning it to the agent.
Inputs: redirect_uri (required), state, scopes, response_format.
youtube_privacy_auditYouTube Privacy AuditBRead-onlyIdempotent
Return OAuth scope, synthetic media and live-upload safety boundaries.
Inputs: response_format.
youtube_upload_shortUpload YouTube ShortA
Upload one vertical video as a YouTube Short. Dry-run is enabled by default; live mode requires YOUTUBE_DRY_RUN=false.
Inputs: title (required), video_path (required), tags, caption, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 6 tools
Each tool serves a clear, distinct purpose: manifest info, connection status, listing videos, OAuth URL generation, privacy audit, and upload. No functional overlap.
All tools follow the consistent pattern 'youtube_verb_noun', making it easy to predict tool behavior from names alone.
With 6 tools covering auth, status, listing, upload, and audit, the count is well-scoped for a YouTube Shorts agent without unnecessary bloat.
Core workflows (upload, list, OAuth, status check) are covered. Minor gaps like deletion or metadata editing are acceptable for a focused shorts agent.
Maintenance
Related MCP Connectors
Give AI agents a creator's video pipeline: Shorts, thumbnails and YouTube publishing.
Upload and schedule YouTube Shorts from your AI assistant.
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
AI agent for social media: finds videos, cuts captioned clips, posts to TikTok, Instagram, YouTube.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables automated posting of videos to YouTube Shorts and Instagram Reels with OAuth 2.0 authentication, file validation, and comprehensive video processing capabilities. Provides MCP-compatible tools for seamless social media video uploads through a FastAPI server.2-
- AlicenseAqualityCmaintenanceLocal-first TikTok Content Posting API for AI agents: OAuth checks, dry-run and live uploads.6102 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to publish and schedule short-form vertical videos across multiple social platforms, validate and normalize video files, generate platform-optimized metadata, and retrieve performance analytics.3MIT

Longwaveofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to turn long-form episodes into Shorts, thumbnails, show notes and a podcast RSS feed, then publish them to the creator's own YouTube channel using OAuth-based, credential-free access. It exposes a deny-by-default set of read, create and step-up-approved publish tools so agents can run a creator's clip pipeline end to end without holding API keys or Google credentials.1MIT