
AI agents
Every menu item, tool and drag in FigCraft runs a command, and AI assistants can run the same commands. Any assistant that supports the Model Context Protocol (MCP) can create and edit layers, run menu commands, inspect the result and look at it as an image.
Get the command-line tool
Section titled “Get the command-line tool”Assistants talk to FigCraft through its command-line tool, figcraft-cli:
- Windows:
figcraft-cli.exeis next tofigcraft.exein the install folder or portable zip. - macOS: download
figcraft-cli-<ver>-macos-universal.zipfrom the release page. - Linux
.deb,.rpm,.pkg.tar.zst, tarball, and FreeBSD: it’s installed alongside the app. - AppImage: run it as
/path/to/FigCraft.AppImage cli, sofigcraft-cli mcpbecomes/path/to/FigCraft.AppImage cli mcp. - Flatpak: run it as
flatpak run --command=figcraft-cli ai.storyteller.figcraft.
If the assistant can’t find figcraft-cli, use its full path, for example C:\Users\you\AppData\Local\Programs\ArtCraft\FigCraft\figcraft-cli.exe. Desktop apps often need the full path even when your terminal doesn’t.
Connect your assistant
Section titled “Connect your assistant”Every assistant starts FigCraft with the same command: figcraft-cli mcp. FigCraft then works in the background, with no window.
Claude Code
Section titled “Claude Code”claude mcp add figcraft -- figcraft-cli mcpClaude Desktop
Section titled “Claude Desktop”Choose Settings › Developer › Edit Config, add FigCraft to claude_desktop_config.json, then restart Claude:
{ "mcpServers": { "figcraft": { "command": "figcraft-cli", "args": ["mcp"] } }}Other assistants
Section titled “Other assistants”Look for “MCP servers” in your assistant’s settings and add a local (stdio) server with the command figcraft-cli and the argument mcp.
Ask for a design
Section titled “Ask for a design”Once connected, ask in plain words, for example “Make a sign-in screen for a phone, with auto layout, and save it as signin.figcraft”. The assistant can also start from one of the built-in templates.
Watch it work in the app
Section titled “Watch it work in the app”To see the assistant’s changes as it makes them, start FigCraft with its control port open:
figcraft --control 7979Then use figcraft-cli mcp --attach 7979 as the assistant’s command. The assistant appears in the app like a person in a live session, with its own avatar, and FigCraft outlines the layers it just changed. The control port only accepts connections from your own computer.
Keep the assistant to certain folders
Section titled “Keep the assistant to certain folders”To stop a background assistant reading or writing files outside one folder, add a read folder and a write folder after figcraft-cli mcp:
figcraft-cli mcp --automation-read-root ~/Designs/project --automation-write-root ~/Designs/project/outIn a JSON config, put each flag and folder in args, with full paths, since ~ isn’t expanded there:
"args": ["mcp", "--automation-read-root", "/Users/you/Designs/project", "--automation-write-root", "/Users/you/Designs/project/out"]The assistant can then only open files inside the read folder, and only save inside the write folder. Leave out the write folder and it can’t save to disk at all.
These flags don’t go with --attach. To limit an assistant working in the app, start the app itself with them: figcraft --control 7979 --automation-read-root … --automation-write-root ….
From the command line
Section titled “From the command line”figcraft-cli also works on its own, without an assistant:
figcraft-cli render landing.figcraft -o landing.png --scale 2 # render a page as an imagefigcraft-cli export landing.figcraft -o out/ --format svg # export each top-level framefigcraft-cli convert design.fig design.figcraft # convert by file extensionfigcraft-cli commands --filter autoLayout # list commands and their parametersFor scripting FigCraft’s commands, see the developer documentation on GitHub.