Open editor
For developers

VectorCraft MCP: a vector editor your agent can drive

Every menu item, tool gesture, panel and dialog in VectorCraft can be driven over a JSON control channel, and the command-line tool exposes that as an MCP server. An agent can draw shapes, run Pathfinder, set type, trace an image and export, the same way a person does with the mouse. The project’s own example artworks were built this way.

MCP needs the desktop app or the CLI. The browser editor on this site can’t be driven by an agent; for prompt-based artwork in the browser, use the AI SVG generator.

Two ways to run it

ModeHowWhat works
Headlessvectorcraft-cli mcp --headlessAn in-process engine with a CPU renderer. Everything except the tools that need the window (inspect_ui, type_text, open_panel, window screenshots).
Remotevectorcraft-cli mcp --connect 127.0.0.1:7979, with the app started as vectorcraft --control 7979Everything. Tool calls go to the running app, so you watch the document change live.

With no flag, the server tries 127.0.0.1:7979 and falls back to headless.

Set up with Claude Code

Get vectorcraft-cli: on macOS it is the separate vectorcraft-cli-0.9.0-macos-universal.zip release download; the Linux .deb and .rpm install it as /usr/bin/vectorcraft-cli; the Windows installer puts vectorcraft-cli.exe in C:\Program Files\VectorCraft\. Then register it, confined to one working folder:

claude mcp add vectorcraft -- /path/to/vectorcraft-cli mcp \
  --automation-read-root /work/project \
  --automation-write-root /work/project

Or add it to .mcp.json in your project:

{
  "mcpServers": {
    "vectorcraft": {
      "command": "/abs/path/to/vectorcraft-cli",
      "args": ["mcp",
        "--automation-read-root", "/work/project",
        "--automation-write-root", "/work/project/out"]
    }
  }
}

The two root flags imply headless mode. To confine a live app instead, start it with the same flags: vectorcraft --control 7979 --automation-read-root <dir> --automation-write-root <dir>, then connect as usual.

What the agent gets

Prompts to try

Without MCP: the CLI on its own

# Open, recolour and export in one command
vectorcraft-cli run --in in.svg \
  --cmd select.all --cmd paint.setFill --params '{"color":"#ff0000"}' \
  --export out.svg --export out.png --scale 2

# The command catalogue as JSON
vectorcraft-cli commands

FAQ

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

No. Browsers can’t listen on a network port, so the web build has no control channel. The MCP server is part of vectorcraft-cli and drives either its own headless engine or the desktop app. In the browser, use the AI panel for prompt-based SVG and image generation.

Which agents work with it?

Any MCP client that can launch 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.

Can the agent read or write files anywhere on my disk?

Not if you confine it. With --automation-read-root and --automation-write-root, every file the server reads must be inside the read folder and every file it writes inside the write folder; a root you leave out grants none of that access. Without either flag, file access is not restricted, so give the flags for real projects.

Source: VectorCraft’s MCP server documentation and control protocol. Flags can change between releases; check vectorcraft-cli mcp --help.