Installation¶
Everything below installs the same server; pick the path that matches your setup.
graph LR
Q["How do you want to run it?"] --> A["One command<br/>install.sh / install.ps1"]
Q --> B["From source<br/>uv sync"]
Q --> C["Container<br/>docker run"]
Q --> D["Release wheel<br/>pip install"]
A --> E["synfig-mcp doctor"]
B --> E
C --> E
D --> E
E --> F["Add to your MCP client"]
classDef ok fill:#e6f4ea,stroke:#34a853,color:#111
class E,F ok
1. One command (recommended)¶
Linux / macOS¶
curl -fsSL https://raw.githubusercontent.com/anusara-bemal/synfig-mcp/main/scripts/install.sh | bash
Windows (PowerShell)¶
The script
- checks for Python 3.12+,
- installs the server with
uv(falling back topip), - runs
synfig-mcp doctorand prints the result, - prints the ready-to-paste client configuration.
2. From source¶
git clone https://github.com/anusara-bemal/synfig-mcp.git
cd synfig-mcp/server
uv sync --all-extras
uv run poe check # format, lint, types, tests
cd ..
server/.venv/bin/synfig-mcp doctor # Linux / macOS
server\.venv\Scripts\synfig-mcp.exe doctor # Windows
3. Release wheel¶
4. Container¶
The image bundles the Synfig CLI, so headless rendering works out of the box.
docker run -i --rm \
-v "$PWD:/workspace" \
-e SYNFIG_MCP_WORKSPACE_ROOTS=/workspace \
ghcr.io/anusara-bemal/synfig-mcp:latest
# diagnostics inside the container
docker run --rm --entrypoint synfig-mcp ghcr.io/anusara-bemal/synfig-mcp:latest doctor
Live mode (patched Synfig Studio)¶
Headless mode needs nothing but the synfig CLI. Live mode additionally needs the
patched Studio, because the bridge is compiled into it:
- Download the bundle for your platform from the Releases page.
- Start
synfigstudio.exe(orsynfigstudio). - Enable Tools → MCP Bridge (the status line in the Tools menu shows
MCP Bridge: Active (127.0.0.1:<port> | Commit: …)). - Run
synfig-mcp doctor- the Bridge Connectivity line must turn green.
sequenceDiagram
participant U as You
participant S as Synfig Studio (patched)
participant M as synfig-mcp
U->>S: Start Studio, enable Tools -> MCP Bridge
S->>S: Write a session token to ~/.synfig/mcp_token (owner-only ACL)
U->>M: synfig-mcp doctor
M->>S: Probe 127.0.0.1:19998 with the token
S-->>M: Bridge ready
M-->>U: Bridge Connectivity: PASS
Client configuration¶
| Client | File |
|---|---|
| Claude Desktop | claude_desktop_config.json (%APPDATA%\Claude\ on Windows, ~/Library/Application Support/Claude/ on macOS) |
| Claude Code | claude mcp add synfig --env SYNFIG_MCP_PROFILE=all -- synfig-mcp |
| Cursor | ~/.cursor/mcp.json |
| VS Code | .vscode/mcp.json |
{
"mcpServers": {
"synfig": {
"command": "synfig-mcp",
"env": {
"SYNFIG_MCP_PROFILE": "all",
"SYNFIG_MCP_BACKEND": "auto"
}
}
}
}
Configuration¶
| Variable | Default | Purpose |
|---|---|---|
SYNFIG_MCP_PROFILE |
all |
Tool profile: all, core, anim, fx, rig, assets, review |
SYNFIG_MCP_BACKEND |
auto |
auto, live, headless |
SYNFIG_MCP_HOST |
127.0.0.1 |
Bridge host |
SYNFIG_MCP_PORT |
19998 |
Bridge port |
SYNFIG_MCP_TOKEN_PATH |
~/.synfig/mcp_token |
Bridge token location |
SYNFIG_MCP_WORKSPACE_ROOTS |
~/Documents/SynfigMCP |
Directories the server may read/write |
SYNFIG_MCP_CLI_PATH |
auto-discovered | Explicit path to the synfig binary |
Verifying the installation¶
graph TB
D["synfig-mcp doctor"] --> S["Studio binary"]
D --> B["Bridge connectivity"]
D --> W["Workspace roots"]
D --> A["Asset directory"]
D --> T["Tool surface + token budget"]
D --> C["Synfig CLI"]
D --> F["ffmpeg"]
D --> K["Token file ACL"]
S & B & W & A & T & C & F & K --> R["Doctor status: OK"]
classDef ok fill:#e6f4ea,stroke:#34a853,color:#111
class R ok
A green report means: the Studio is found, the bridge is reachable (or the headless fallback is active), the workspace is writable, the CLI and ffmpeg are present, and the token file has owner-only permissions.
For a full end-to-end check - the MCP server started as a client would start it, speaking the protocol over stdio and driving the running Studio:
It builds a scene, animates it, exports and links a value node, renders a frame, runs the visual review and undoes the last action. Exit code 0 means everything worked.
Licensing¶
- The server (
server/) is MIT licensed — © 2026 ABM and the synfig-mcp contributors. - The native bridge (
bridge/) is compiled into Synfig Studio and is a derivative work, therefore GPL-3.0 — seegpl-compliance.md.