> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autoclip.tv/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI & MCP Server

> Automate video clipping from your terminal or AI agents (Claude Desktop, Claude Code, Cursor, Antigravity) via autoclip-mcp.

Turn **Claude Desktop**, **Claude Code**, **Cursor**, **Windsurf**, or **Antigravity** into an autonomous short-form video editor. AutoClip's CLI and MCP server reuse the exact same local-first rendering engine, templates, and AI provider settings as the desktop app — zero subscriptions, 100% local rendering.

![AutoClip CLI and MCP Server](https://mintcdn.com/auto-clip/mqMkpyKoj_HdWISu/images/feature-cli.png?fit=max\&auto=format\&n=mqMkpyKoj_HdWISu\&q=85\&s=5951fb58b373038f11f620b6904f9637)

AutoClip CLI & MCP Server — trigger clipping pipelines from terminals and AI coding agents

## Installation

**Requirements:** Python 3.10+ (3.11 recommended) and `ffmpeg` available on your `PATH`.

> [tab] pip (Standard)
>
> ```bash theme={null}
> pip install autoclip-mcp
> autoclip --version
> ```

> [tab] uvx (Zero-Install)
>
> ```bash theme={null}
> uvx autoclip-mcp --help
> ```

> [tab] Claude Code 1-Liner
>
> ```bash theme={null}
> claude mcp add autoclip -- uvx autoclip-mcp
> ```

> [tab] Agent Skill
>
> Install the official AutoClip agent skill for Claude Code, Cursor, Codex, or OpenCode:
>
> ```bash theme={null}
> npx skills add zhouxiaoka/autoclip
> ```

> [!WARNING]
>
> **Offline `.whl` Installation Note:** If you install a downloaded wheel file manually instead of from PyPI, keep the exact original PEP 427 filename (for example `autoclip_mcp-1.6.4-py3-none-any.whl`). Renaming or shortening the `.whl` filename will cause `pip` to reject it with `Invalid wheel filename`.

## Client Configuration (JSON)

Add AutoClip to **Claude Desktop** (`claude_desktop_config.json`), **Cursor** (`.cursor/mcp.json`), or **Antigravity** MCP configuration:

```json theme={null}
{
  "mcpServers": {
    "autoclip": {
      "command": "uvx",
      "args": ["autoclip-mcp"]
    }
  }
}
```

If you installed globally with `pip install autoclip-mcp` instead of `uvx`, point `"command"` directly to `autoclip-mcp`:

```json theme={null}
{
  "mcpServers": {
    "autoclip": {
      "command": "autoclip-mcp"
    }
  }
}
```

## Key MCP Tools

| Tool | Purpose |
| :- | :- |
| `get_version` | Returns the installed AutoClip package version and runtime environment details |
| `list_styles` | Lists all built-in packaging templates (`editorial`, `street`, `news`, `cinema`, `classic`) plus saved custom/cloned styles |
| `start_quick_output` | Launches an asynchronous clipping and packaging job from a local video path or supported HTTPS URL (YouTube / Bilibili) |
| `get_quick_output_status` | Polls job `progress`, `stage`, `eta`, and `poll_after_sec`, returning final `video_path`, `cover_path`, `post`, and `kit_path` when complete |
| `cancel_job` | Safely terminates active FFmpeg render processes while preserving any clips already completed |

### Example `start_quick_output` Payload

```json theme={null}
{
  "source": "/absolute/path/podcast.mp4",
  "srt_path": "/absolute/path/podcast.srt",
  "platforms": ["tiktok", "youtube_shorts"],
  "portrait_style": "podcast",
  "template": "editorial"
}
```

Supported platform IDs: `tiktok`, `youtube_shorts`, `instagram_reels`, `youtube_long`, `douyin`, `xiaohongshu`, `bilibili`.

## Example Agent Prompts

Once connected, prompt your AI agent in natural language:

* *"Clip `/Users/me/Videos/interview.mp4` into vertical TikTok and YouTube Shorts using the `editorial` template and give me the output folder."*
* *"List all available AutoClip styles (`list_styles`), then re-render clip #2 in `street` style."*
* *"Start a clipping job on this YouTube interview URL with burned-in English captions and report back when `get_quick_output_status` finishes."*

## Security & Isolated Runs

* **No API keys in tool arguments:** AutoClip reads your saved desktop provider configuration or the `AUTOCLIP_API_KEY` environment variable.
* **Isolated data directory:** Set `AUTOCLIP_DATA_DIR=/path/to/isolated-data` when running automated tests or batch agent workflows so they stay separate from your main desktop library.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.