Open editor
For developers

DesignCraft MCP: a layout app your agent can drive

Every menu item, tool gesture, panel control and dialog in DesignCraft runs a command. The command-line tool exposes those commands as a Model Context Protocol server, so an agent can create a document, lay out frames and text, apply styles, place images and look at the result as a PNG.

MCP needs the desktop app or CLI. The browser editor on this site can’t be driven by an agent; for images and copy in the browser, use the AI panel.

Two ways to run it

ModeWhat the agent drivesUse it for
Headless (mcp)An in-process engine with no window. It starts with an empty Letter document, or the sample magazine with --sampleBatch jobs, pipelines, servers
Connected (mcp --connect 7979)The running desktop app, through its local control channelWatching each step happen in the window, and tools that need the window

Get designcraft-cli

InstallWhere the CLI is
Windows (MSI)C:\Program Files\DesignCraft\designcraft-cli.exe by default, not on PATH
Linux (deb, rpm)/usr/bin/designcraft-cli
macOSThe separate designcraft-cli-0.6.0-macos-universal.zip release asset (the .app holds only the desktop app)
From sourcecargo build --release -p designcraft-cli

Set up with Claude Code

# Headless: an in-process engine, no window
claude mcp add designcraft -- designcraft-cli mcp

# Drive the running desktop app (start it first with a control port)
designcraft --control 7979
claude mcp add designcraft-app -- designcraft-cli mcp --connect 7979

Other MCP clients use the same command line in their JSON config:

{
  "mcpServers": {
    "designcraft": { "command": "/path/to/designcraft-cli", "args": ["mcp"] }
  }
}

What the agent gets

Coordinates are in points (1/72 inch) in spread space, with the page’s top-left corner at (0, 0) on a single-page spread. Text positions are UTF-8 byte offsets, so an accented letter counts as two.

Prompts to try

Without MCP: the CLI on its own

# Render every page of the sample magazine to PNG
designcraft-cli run --sample --all-pages out/

# List commands about footnotes, or describe one
designcraft-cli commands footnote
designcraft-cli describe xref.insert

# Run a script of commands and export the result
designcraft-cli script page.dcs --save page.designcraft --export page.pdf

FAQ

Can an AI agent control the browser version on this site?

No. The MCP server is part of designcraft-cli and drives either its own headless engine or the desktop app through a local control channel. The web build has no control channel, because a browser page can’t listen on a network port. In the browser, use the AI panel for images and copy instead.

Which agents work with it?

Any MCP client that can start a local stdio server: Claude Code, Claude Desktop, Cursor, VS Code agents and others. The project documents the Claude Code command; other clients take the same command and arguments in their JSON config.

Is the control port safe to leave open?

Turn it on only while you use it. It listens on 127.0.0.1 only and rejects anything that isn’t a JSON request line, so a web page can’t send it commands, but it has no authentication for programs on your own machine.

Source: DesignCraft’s MCP server, agents and control protocol docs. Flags can change between releases.