Cavalry Bridge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cavalry BridgeShow me my Cavalry scene."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cavalry Bridge for Claude
Let Claude see, edit and preview your Cavalry scene: read layers and connections, change attributes with JavaScript, hook nodes together, switch Duplicator distributions, and render a frame to check the result.
English | Русский
Install (2 steps, no terminal)
Download
cavalry-claude-bridge.mcpbfrom the latest release and double-click it. Claude Desktop opens an install dialog: click Install. (Or: Claude Desktop → Settings → Extensions → drag the file in.)In Cavalry run Scripts → Stallion. The window should say
Listening on 127.0.0.1:8080.
Now ask Claude: "Show me my Cavalry scene." Claude asks for permission before each tool call.
You do not need to install Node.js or edit any config file: Claude Desktop ships its own Node.js, and the .mcpb contains the whole server in one file.
Related MCP server: cavalry-mcp
Requirements
What | Notes |
Cavalry with JavaScript scripting | Scripting is a Professional-licence feature in Cavalry; Starter licences can only run encrypted scripts (docs). |
Stallion running in Cavalry |
|
Claude Desktop (Windows or macOS) | Works with a free Claude account. macOS is untested by the author. |
What Claude can do
Tool | What it does |
| Snapshot of the scene: hierarchy, changed attributes, expressions, animation, connections between nodes. |
| Runs JavaScript in Cavalry and returns the result, |
| Connects two nodes. Creates missing array slots, replaces a taken input, and verifies the result (Cavalry's own |
| Changes a Duplicator's distribution (circle, fibonacci, grid, linear, ...). |
| Renders the current frame to a PNG so Claude can look at the result. |
| Searches the installed Cavalry API by name, so Claude does not guess function names. |
| Short, verified notes about the API and its pitfalls, by topic (see |
Try: "Put a Fibonacci duplicator on the circle and add a Random to the clone positions", "Which layers are connected to the Duplicator?", "Render the frame and tell me what looks off".
Spend fewer tokens
Name layers by id (
duplicator#1) when you can, so Claude does not need to search.Claude reads the API notes with
cavalry_helpon demand instead of you pasting them into the chat.Renders default to 50% size; ask for a bigger one only when you need detail.
Troubleshooting
Symptom | Fix |
"Cannot reach Cavalry at http://127.0.0.1:8080" | Start |
"Timeout: no response from Cavalry" | Scripting may be blocked by your licence, or the script is still running. |
Tools do not appear | Fully quit Claude Desktop (system tray → Quit) and start it again. |
| The API function exists but was called with the wrong number of arguments. Ask Claude to use |
Safety
Claude can run any JavaScript inside Cavalry, including deleting layers. This isn't limited to the scene: Cavalry's own scripting API can make outbound network requests, open arbitrary URLs or local file:// paths, and run its own HTTP server — all from your machine. Save your scene before letting it make big changes, and read the permission prompts. Stallion itself listens on 127.0.0.1 only; run it when you need it.
Use with other MCP clients (Claude Code, Cursor, ...)
The .mcpb is a zip file: unzip it and use server/index.js, or build from source (below).
{
"mcpServers": {
"cavalry": {
"command": "node",
"args": ["/absolute/path/to/server/index.js"],
"env": { "CAVALRY_PORT": "8080" }
}
}
}How it works
Claude Desktop ──stdio (MCP)──> server/index.js ──HTTP POST──> Stallion (in Cavalry, 127.0.0.1:8080)
^ │ runs the script, then
└──────── temp JSON file <──── api.writeToFile(result)Stallion accepts scripts but does not return their result, so every script is wrapped: it runs inside try/catch, captures console.log, and writes a JSON result file that the server reads back. Cavalry's API throws plain strings, which the wrapper turns into readable errors.
Build from source
git clone <this repo> && cd cavalry-claude-bridge
npm install
npm run build # type-check + bundle to server/index.js
npm test # end-to-end test against a fake Cavalry
npm run pack # dist/cavalry-claude-bridge.mcpbReleasing: bump version in manifest.json and package.json, then push a tag vX.Y.Z. The workflow builds, tests and attaches the .mcpb to a GitHub release.
The Cavalry API notes live in knowledge/api-notes.md (split into topics by ## headings and served by cavalry_help). Corrections are welcome: every line should be something you verified on a real scene.
Optional: extras/skill is a Claude Skill with the same notes, for plans that support Skills. The extension does not need it.
Credits
Stallion by scenery.io: the bridge inside Cavalry.
kacperchlebowicz/Cavalry-mcp: an earlier Cavalry MCP server (MIT) that this project started from.
Not affiliated with Scene Group (Cavalry) or Anthropic.
License
MIT, see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and run visual creative-production workflows from your AI agent.
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Turn Claude into a creative studio: DNA-locked characters, images, video, voiceover — 55 tools.
- tonpitOAuthcom.tonpit
Video production studio for AI agents: AI media, motion graphics as code, timeline and export.
Related MCP Servers
- FlicenseAqualityFmaintenanceEnables natural language control of Cavalry animation software for creating layers, setting attributes, keyframing, rendering frames, and more via an MCP server.2131-
- FlicenseBqualityCmaintenanceMCP server for driving Cavalry's 2D motion-graphics engine from LLMs, enabling scene creation and animation via natural language.283-
- FlicenseBqualityDmaintenanceEnables AI assistants to control Cavalry, a procedural 2D motion graphics application, through natural language commands for creating and animating scenes.182-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to control Cavalry motion graphics projects through its local JavaScript API, supporting scene and layer inspection, creation, editing, keyframing, expressions, saving, and rendering with validated structured results.MIT