# AutoClip MCP & AI Agent Guide **English** · [简体中文](CLI_AND_MCP.md) · [日本語](MCP.ja.md) · [한국어](MCP.ko.md) · [Español](MCP.es.md) · [Deutsch](MCP.de.md) Turn Claude Code, Cursor, Windsurf, OpenCode, or any MCP-compatible AI agent into an autonomous short-form video editor. AutoClip's MCP server reuses the exact same local-first pipeline, rendering engine, and model settings as the desktop app — zero subscriptions, no paywall, 100% local rendering. --- ## 1-Line Setup ### Claude Code ```bash claude mcp add autoclip -- uvx autoclip-mcp ``` ### Agent Skill (Claude Code / Cursor / Codex / OpenCode) ```bash npx skills add zhouxiaoka/autoclip ``` The repository also ships an agent-agnostic [plugin marketplace](../.agents/plugins/marketplace.json) that registers the `autoclip` and `template-cloner` skills plus an [`.mcp.json`](../.mcp.json) that starts `uvx autoclip-mcp` and forwards `AUTOCLIP_API_KEY`. Codex: `codex plugin marketplace add zhouxiaoka/autoclip`, then `codex plugin add autoclip@autoclip` (the bundled config sets `startup_timeout_sec` to 120 for the first `uvx` download). Claude Code: `/plugin marketplace add zhouxiaoka/autoclip`, then install the `autoclip` plugin. ### Cursor / Windsurf / Generic MCP Client (`mcp.json`) ```json { "mcpServers": { "autoclip": { "command": "uvx", "args": ["autoclip-mcp"] } } } ``` > **Requirements:** Python 3.10+ (3.11 recommended), `uv` (`uvx`), and `ffmpeg` in your `PATH`. Run `autoclip --version` or call MCP `get_version` to check the installed version. --- ## Example Prompts for Your AI Agent Once connected, just ask your agent in natural language: - *"Clip `/path/to/podcast.mp4` into vertical TikTok and YouTube Shorts using the `editorial` style, and export ready-to-post kits."* - *"Download this YouTube interview URL, generate 9:16 Reels with burned-in English captions, and give me the output folder."* - *"List all available AutoClip editing styles (`list_styles`) and re-render clip #2 in `street` style."* --- ## Core MCP Tools | Tool | Purpose | | :--- | :--- | | `get_version` | Return the installed AutoClip package version | | `list_styles` | List available packaging styles (`editorial`, `street`, `news`, `cinema`, `classic`, plus cloud templates) | | `start_quick_output` | Start an async clipping + packaging job (accepts local path or HTTPS YouTube/Bilibili URL) | | `list_recordings` | Read-only scan of OBS / local recording folders (`directory`, `limit`, `since_hours`) sorted newest-first | | `get_quick_output_status` | Poll `progress`, `stage`, `eta`, `poll_after_sec`, and retrieve final `video_path`, `cover_path`, `post`, and `kit_path` | | `cancel_job` | Safely terminate an active job's FFmpeg processes and keep any already-completed clips | ### One-Click Cursor Install & Built-in MCP Prompt Recipes - **Cursor One-Click MCP Install**: [Add AutoClip to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=autoclip&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJhdXRvY2xpcC1tY3AiXX0=) (also ships `.cursor/rules/autoclip.mdc` for repo-aware workflows). - **Built-in MCP Prompts** (available via `/` in Claude Code, Cursor, Codex, and Antigravity): - `clip_obs_gaming_highlights` — Scan last night's OBS recording (`list_recordings`) → detect wipes/screams (`goal: "highlight"`, `replay_source: "obs"`) → export `N` vertical Shorts with punchy captions - `clip_podcast_to_shorts` — Repurpose a podcast/interview link or file into multi-platform publish kits - `clip_zero_api_key` — Zero-API-key workflow (`prepare_media` → host Agent plans clips → `render_from_plan`) - `clone_viral_style` — Clone a reference clip's visual template and render with it - `batch_repurpose_folder` — Serially repurpose a folder of recordings into a summary table - Full one-sentence recipes: [`skills/autoclip/references/recipes.md`](../skills/autoclip/references/recipes.md). ### Example `start_quick_output` Payload (OBS Gaming Highlights) ```json { "source": "/absolute/path/obs_3h_stream.mkv", "platforms": ["youtube_shorts"], "goal": "highlight", "replay_source": "obs", "max_clips": 5, "portrait_layout": "crop", "template": "street", "instruction": "Find all team wipes and screaming reactions with punchy highlight captions" } ``` Supported platform IDs: `tiktok`, `youtube_shorts`, `instagram_reels`, `youtube_long` (≥180s), `douyin`, `xiaohongshu`, `bilibili`. --- ## Keys, Privacy & Local Models - **API keys are never passed in MCP tool arguments.** AutoClip reads your saved desktop settings or the `AUTOCLIP_API_KEY` environment variable. - **100% offline mode:** configure **Ollama** or **LM Studio** plus local **Whisper / SenseVoice** in AutoClip Settings — no cloud key required. - **Isolated data directory:** set `AUTOCLIP_DATA_DIR=/path/to/demo-data` to keep agent runs separate from your main desktop library. For full CLI flags and architecture details, see [CLI & MCP Reference (ZH)](CLI_AND_MCP.md) and [OpenCode Guide](OPENCODE.en.md).