# CueFrame MCP video editing

> Give an agent CueFrame video tools over MCP: work with footage, add motion graphics and captions, preview the result and render an MP4.

## Connect

Use Node.js 24 or newer. Run the installer. It detects supported local agents, including Claude Code, Cursor and Codex, adds the hosted server and installs the agent skills:

```bash
npx -y cueframe install
```

To add the server by hand, use the hosted endpoint `https://api.cueframe.ai/v1/mcp`:

```bash
claude mcp add --transport http cueframe https://api.cueframe.ai/v1/mcp
```

No API key is needed. On first use a browser opens to sign in and authorize. Claude Desktop and ChatGPT add the same URL as a custom connector: see [MCP setup](https://docs.cueframe.ai/docs/setup#mcp). Headless clients can use an API key, and an autonomous agent can [pay per call](https://docs.cueframe.ai/docs/pay-per-call).

## Make a first video

Ask the agent for the outcome:

> Make a 9:16 clip from this interview. Follow the speaker, add word-timed captions, and render it: https://example.com/interview.mp4

Give the agent a direct link to the media file, or a local file to upload with `create_upload`. `import_media` downloads the bytes at the URL, so a video page such as a YouTube link will not import.

Tool by tool, the same job is `create_project`, `import_media`, `wait_job`, `get_media_context`, `new_composition`, `apply_composition`, `preview_frame`, `wait_job`, `create_render`, then `wait_job`. Each tool's schema lists its arguments, and the [quickstart](https://docs.cueframe.ai/docs/quickstart) walks through a full example.

## Before you author

- Call `get_account` before a metered call. Cloud previews, rendering and other paid operations spend one shared credit balance; check [pricing](https://cueframe.ai/pricing).
- Call `describe_composition_ops` for the operation list, then with a `type` for that operation's exact JSON Schema, before calling `apply_composition`.
- Pass `dry_run: true` in the `apply_composition` body to validate a batch without saving it.
- Pass the composition's latest `etag` as `if_match` on every saving `apply_composition`, starting with the one `new_composition` returns. Without it the call fails with 428 `precondition_required`.
- Long-running work returns an ID. Poll it with `wait_job`, or register a webhook.
- Errors carry a `code`, `category` and `retryable` flag. Read them before retrying.

## Keep the final say

Open the agent's project in the free [desktop editor](https://cueframe.ai/desktop) to adjust layers and timing by hand. MCP cloud processing uses credits; local desktop editing stays on your machine.

## More

- [CLI quickstart](https://cueframe.ai/cli.md)
- [API quickstart](https://cueframe.ai/api.md)
- [Documentation](https://docs.cueframe.ai/llms.txt)
