zhouxiaoka/autoclip · 20.4k stars · Intermediate · 15 min · 2026-12-02

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) and ffmpeg on your PATH. Call get_version (or run autoclip --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_KEY environment variable.
  • Poll, do not block. start_quick_output returns a project_id immediately; get_quick_output_status returns progress, stage, eta and poll_after_sec. The bundled skill treats completed, partial, failed, interrupted and cancelled as terminal states, and unknown as "no such job".
  • Name your platforms. The guide lists tiktok, youtube_shorts, instagram_reels, youtube_long (clips of at least 180 s), douyin, xiaohongshu and bilibili; the bundled skill defaults to douyin when 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. Call list_styles first and never invent ids.
  • Use an isolated data directory for experiments: set AUTOCLIP_DATA_DIR=/path/to/demo-data so 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_job and list_styles appear only when the mcp_v2_tools feature flag is on; the skill says not to pass template when list_styles is absent, and an unsupported id returns invalid_input.
  • A tool result of unknown means 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_job tools usually means the scoring threshold was too high; the server instructions suggest min_score=0.5 there (start_quick_output has 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).

Next steps