loading…
Search for a command to run...
loading…
MCP server that lets AI agents drive Inkscape — interactively alongside the GUI or headlessly from the CLI
MCP server that lets AI agents drive Inkscape — interactively alongside the GUI or headlessly from the CLI
Let your AI agent design, edit, and analyze vector graphics through Inkscape — live alongside a running Inkscape window, or headless from the command line.
With Inkscape MCP, your coding agent can do everything a designer does in Inkscape — sketch and reshape paths, apply effects and filters, render LaTeX equations, generate barcodes and QR codes, convert between formats, query and rewrite document structure — through plain conversation instead of menu clicks.
Pair it with a running Inkscape window and the agent works alongside you — it sees what you have selected, opens property dialogs on your behalf, applies edits that appear on the canvas in real time (each one a normal undo entry you can roll back), and rasterizes its own work to inspect and refine the result. Or run it headlessly to batch-convert artwork, automate exports, and build pipelines around vector assets — no GUI required. The full Inkscape feature surface, including its hundreds of bundled extensions, is reachable as tool calls.
inkscape_file, inkscape_vector, inkscape_analysis, inkscape_system, inkscape_extension, inkscape_gradient, inkscape_metadata, or inkscape_live — with an operation string that picks the actual behavior.InkscapeCliWrapper, which builds and runs an inkscape --actions=... (or --export-...) command. For live-canvas work it talks to a running Inkscape window over D-Bus and stages SVG fragments through the clipboard.No external network. Just the Inkscape binary, an optional running Inkscape window, and your local files.
Tested with Inkscape 1.4.4 on Ubuntu 24.04.
# 1. Install Inkscape + system headers for pycairo / pygobject
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt update
sudo apt install inkscape libcairo2-dev libgirepository-2.0-dev libgirepository1.0-dev \
pkg-config python3-dev xclip
# xclip stages SVG fragments for clipboard-based insert into the canvas.
# On Wayland substitute wl-clipboard for xclip — clipboard ops auto-detect.
# 2. Register with Claude Code (uvx fetches inkscape-mcp from PyPI on first run)
claude mcp add inkscape_mcp -s user -- uvx inkscape_mcp
claude mcp list | grep inkscape_mcp # → ✓ Connected
# 3. (Re)start Inkscape so it picks up the bundled extensions
# The MCP server auto-installs its inkex extensions to
# ~/.config/inkscape/extensions/inkscape_mcp/ on first boot. Inkscape only
# scans the extensions dir at startup, so close + reopen Inkscape once.
# Verify via:
# inkscape_system(operation="diagnostics") → bridge.needs_restart should be false
That's it. Ask the agent to convert an SVG, query an object's bounding box, run a boolean union — it'll pick the right tool.
# Plain pip into a venv
pip install inkscape-mcp
# uv into a project
uv add inkscape-mcp
The PyPI name is inkscape-mcp (hyphen). The Python import name is inkscape_mcp (underscore — PEP 8 / valid identifier). Both pip install inkscape-mcp and pip install inkscape_mcp resolve to the same project (PEP 503 name normalization).
The Claude Code entry the install command above creates looks like:
{
"mcpServers": {
"inkscape_mcp": {
"command": "uvx",
"args": ["inkscape_mcp"]
}
}
}
Pin a non-default Inkscape with INKSCAPE_BIN=/path/to/inkscape in the server env. Inspect from the agent via inkscape_system(operation="diagnostics") — it reports which value came from which source (env var, config file, default).
Editing the file you have open
Generating SVG content
Inspection & format conversion
Live-canvas workflows (Inkscape running)
hero"The agent picks the right tool. It can drive 1,073 of Inkscape's actions over D-Bus, fall back to headless CLI when the GUI isn't running, and run inkex extensions for things D-Bus doesn't cover.
inkscape_file — load, save, convert (PDF/PNG/EPS/PS/…), validate, batch convert.inkscape_vector — 47 ops covering boolean, tracing, path simplification, optimization, layer export, geometry mutation, barcodes, LPE chains, tile clones.inkscape_analysis — quality scoring, statistics, object lists, layer structure.inkscape_system — server status, diagnostics, extension discovery and execution.inkscape_extension — discover and invoke any installed inkex extension (headless or on the live canvas).inkscape_gradient — gradient-stop manipulation; linear↔radial conversion.inkscape_metadata — read/write Dublin-Core RDF metadata.inkscape_live — drive the running GUI over D-Bus: live edits, paste-in-place, XML edits, rasterize so the agent can see the canvas (preserves undo).Full operation list in docs/TOOLS.md.
--action-list and --help.If you like my work and found this useful, feel free to support me at buymeacoffee.com/aravindev.
MIT — see LICENSE. This project is a fork of upstream MIT-licensed work; attribution and lineage details are in NOTICE.md.
Выполни в терминале:
claude mcp add inkscape-mcp -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.