Let your coding agent clip long videos into Shorts with AutoClip MCP
AutoClip is a local-first, MIT-licensed video clipper that ships an MCP server; you register it with one command, then ask your agent to turn a podcast, interview or stream recording into captioned vertical clips and publish kits.
TL;DR
AutoClip turns a video link, local file or live-stream replay into ready-to-post clips with captions, covers and publish text. Besides the desktop app it ships an MCP server (uvx autoclip-mcp), so Claude Code, Cursor, Codex or OpenCode can run the whole job from a prompt. Cutting and rendering run on your machine.
Why this repo matters
Repurposing a long podcast or stream into Shorts, Reels and TikTok clips usually means a subscription tool and an upload queue. The README positions AutoClip as the open-source OpusClip alternative: local-first, MIT-licensed, zero subscriptions, with the option of running fully offline using Ollama or LM Studio plus Whisper or SenseVoice. The MCP server reuses the same pipeline, rendering engine and model settings as the desktop app, which is what makes it useful to an agent.
Best practices
- Install the prerequisites first: the MCP guide lists Python 3.10+ (3.11 recommended),
uv(uvx) andffmpegon yourPATH. Callget_version(or runautoclip --version) to confirm the install. - Keep keys out of prompts. The guide says API keys are never passed in MCP tool arguments; AutoClip reads your saved desktop settings or the
AUTOCLIP_API_KEYenvironment variable. - Poll, do not block.
start_quick_outputreturns aproject_idimmediately;get_quick_output_statusreturnsprogress,stage,etaandpoll_after_sec. The bundled skill treatscompleted,partial,failed,interruptedandcancelledas terminal states, andunknownas "no such job". - Name your platforms. The guide lists
tiktok,youtube_shorts,instagram_reels,youtube_long(clips of at least 180 s),douyin,xiaohongshuandbilibili; the bundled skill defaults todouyinwhen none is given. - Pick a style explicitly. The CLI and MCP default to the classic style when you pass none, while the desktop import page defaults to editorial (per the skill), so pass
template: "editorial"if you want the desktop look. Calllist_stylesfirst and never invent ids. - Use an isolated data directory for experiments: set
AUTOCLIP_DATA_DIR=/path/to/demo-dataso agent runs stay out of your desktop library.
How-to
Where do I start?
1. Register the MCP server
"How do I connect my agent?" For Claude Code, one command from the guide:
claude mcp add autoclip -- uvx autoclip-mcp
For Cursor, Windsurf or any generic client, add this to your mcp.json:
{
"mcpServers": {
"autoclip": { "command": "uvx", "args": ["autoclip-mcp"] }
}
}
Next: check it works
Try it
Pick a 5-minute local video. Register the server, then ask your agent to call get_version and check_environment. Next, ask for one youtube_shorts clip with max_clips: 1 in an isolated AUTOCLIP_DATA_DIR. Report the stage and progress values you saw while polling and the path of the resulting video and cover.
Pitfalls
cancel_jobandlist_stylesappear only when themcp_v2_toolsfeature flag is on; the skill says not to passtemplatewhenlist_stylesis absent, and an unsupported id returnsinvalid_input.- A tool result of
unknownmeans the server has no such job. Do not report it as completed; project files alone never mean a job finished. - Zero clips from the legacy
clip_video/start_clip_jobtools usually means the scoring threshold was too high; the server instructions suggestmin_score=0.5there (start_quick_outputhas no such argument). - First-time transcription with local Whisper is slower, per the server instructions, and unsigned desktop builds need the launch-approval steps in the README (macOS and Windows).