> ## 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 서버

> autoclip-mcp를 통해 터미널이나 AI 에이전트(Claude Desktop, Claude Code, Cursor, Antigravity)에서 영상 클리핑을 자동화하세요.

**Claude Desktop**, **Claude Code**, **Cursor**, **Windsurf**, **Antigravity**를 자율적인 숏폼 영상 편집기로 활용해 보세요. AutoClip의 CLI와 MCP 서버는 데스크톱 앱과 완전히 동일한 로컬 우선 렌더링 엔진, 템플릿, AI 프로바이더 설정을 그대로 재사용합니다 — 구독료 없이 100% 로컬로 렌더링됩니다.

![AutoClip CLI 및 MCP 서버](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 서버 — 터미널과 AI 코딩 에이전트에서 클리핑 파이프라인 실행

## 설치 방법

**필수 요구 사항:** Python 3.10+(3.11 권장) 및 `PATH`에서 실행 가능한 `ffmpeg`.

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

> [tab] uvx (설치 없이 바로 실행)
>
> ```bash theme={null}
> uvx autoclip-mcp --help
> ```

> [tab] Claude Code 한 줄 명령
>
> ```bash theme={null}
> claude mcp add autoclip -- uvx autoclip-mcp
> ```

> [tab] 에이전트 스킬
>
> Claude Code, Cursor, Codex 또는 OpenCode용 공식 AutoClip 에이전트 스킬을 설치합니다:
>
> ```bash theme={null}
> npx skills add zhouxiaoka/autoclip
> ```

> [!WARNING]
>
> **오프라인 `.whl` 설치 참고:** PyPI 대신 다운로드한 wheel 파일을 수동으로 설치할 때는 원래의 PEP 427 파일 이름(예: `autoclip_mcp-1.6.4-py3-none-any.whl`)을 그대로 유지하세요. `.whl` 파일 이름을 바꾸거나 줄이면 `pip`가 `Invalid wheel filename` 오류를 발생시킵니다.

## 클라이언트 설정 (JSON)

**Claude Desktop**(`claude_desktop_config.json`), **Cursor**(`.cursor/mcp.json`) 또는 **Antigravity** MCP 설정에 AutoClip을 추가하세요:

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

`uvx` 대신 `pip install autoclip-mcp`로 전역 설치한 경우 `"command"`가 `autoclip-mcp`를 직접 가리키도록 설정하세요:

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

## 주요 MCP 도구

| 도구 | 용도 |
| :- | :- |
| `get_version` | 설치된 AutoClip 패키지 버전 및 런타임 환경 정보 반환 |
| `list_styles` | 내장된 모든 패키징 템플릿(`editorial`, `street`, `news`, `cinema`, `classic`)과 저장된 커스텀/복제 스타일 목록 반환 |
| `start_quick_output` | 로컬 영상 경로 또는 지원되는 HTTPS URL(YouTube / Bilibili)에서 비동기 클리핑 및 패키징 작업 시작 |
| `get_quick_output_status` | 작업의 `progress`, `stage`, `eta`, `poll_after_sec` 상태를 폴링하고 완료 시 최종 `video_path`, `cover_path`, `post`, `kit_path` 반환 |
| `cancel_job` | 이미 완료된 클립은 보존하면서 실행 중인 FFmpeg 렌더링 프로세스를 안전하게 종료 |

### `start_quick_output` 페이로드 예시

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

지원되는 플랫폼 ID: `tiktok`, `youtube_shorts`, `instagram_reels`, `youtube_long`, `douyin`, `xiaohongshu`, `bilibili`.

## 에이전트 프롬프트 예시

연결이 완료되면 AI 에이전트에게 자연어로 지시할 수 있습니다:

* *"`/Users/me/Videos/interview.mp4`를 `editorial` 템플릿을 사용해 세로형 TikTok과 YouTube Shorts 영상으로 클리핑하고 출력 폴더 경로를 알려줘."*
* *"사용 가능한 모든 AutoClip 스타일(`list_styles`)을 조회한 다음, 2번 클립을 `street` 스타일로 다시 렌더링해 줘."*
* *"이 YouTube 인터뷰 URL에 대해 영어 자막을 입힌 클리핑 작업을 시작하고 `get_quick_output_status`가 완료되면 보고해 줘."*

## 보안 및 격리된 실행

* **도구 인자에 API 키 포함 금지:** AutoClip은 데스크톱 앱에 저장된 프로바이더 설정이나 `AUTOCLIP_API_KEY` 환경 변수를 읽어 사용합니다.
* **격리된 데이터 디렉터리:** 자동화된 테스트나 일괄 에이전트 워크플로우를 실행할 때 메인 데스크톱 라이브러리와 분리하려면 `AUTOCLIP_DATA_DIR=/path/to/isolated-data`를 설정하세요.


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