Control Concat from a script

Anything the window can do to a project, a program can do through the API. Here is where that starts.

1 min read

Concat serves its API to scripts over JSON-RPC and to AI agents over MCP, so both can cut video with it too. A build from source adds a command-line tool, concat-cli. The developer docs are the reference. This page is the short version for people who have never opened them.

The ways in

TransportHow you reach it
JSON-RPC 2.0 linesIn every desktop release: the window's Settings › Automation page (the Scripts and apps switch) serves it over TCP while the editor is open. From source: concat-cli api and concat-cli serve
MCP over stdioIn every desktop release: an agent starts the app as concat --mcp. See MCP

JSON-RPC carries the API's methods, payloads and errors as they are; the MCP server turns the same API into tools.

Connect an AI agent

Point the agent at the Concat program with the one argument --mcp. For Claude Code on a Mac:

claude mcp add concat -- /Applications/Concat.app/Contents/MacOS/concat --mcp

The agent works on projects of its own, never the one on your screen. With Scripts and apps on in Settings › Automation it goes through the open window; otherwise it runs Concat's engine with no window. The MCP page has the path on every system and the configuration for other clients.

Five things to know

  1. Call version first. Its capabilities list says what this build serves.
  2. Projects are folders. Every method names a project by its folder path, and the folder must be open first.
  3. Edits are commands. edit.apply carries the window's own edit vocabulary, unchanged.
  4. Exports are jobs. export.run returns at once; progress comes as events; one export runs at a time.
  5. Errors have codes. Branch on code; show message to a person.

Ready for more? Start with the quick start, then the API overview.

Keep reading