How aravindev/inkscape_mcp works
Inkscape MCP is an MCP server that lets an AI agent inspect, transform, export, and edit vector artwork through Inkscape. The principal workflow is agent request → server tool dispatch → headless CLI or live GUI operation → typed result. Its domain stages include file handling, analysis, vector/gradient/metadata editing, extension execution, and live-canvas control; configuration and platform discovery support those paths. The README documents these capabilities, while some implementation links below rely on its workflow description because the relevant source was not excerpted.
Main entry points: main.py MCP entry point · live.py Live canvas · cli_wrapper.py Inkscape CLI · extension_bridge.py Extension bridge
Components 21
MCP server
- MCP entry point
src/inkscape_mcp/main.py - Tool operations
src/inkscape_mcp/mcp_tool_types.py
Artwork tools
- File operations
src/inkscape_mcp/tools/file_operations.py - Analysis
src/inkscape_mcp/tools/analysis.py - Vector editing
src/inkscape_mcp/tools/vector_operations.py - Gradient editing
src/inkscape_mcp/tools/gradient.py - Metadata editing
src/inkscape_mcp/tools/metadata.py - Live canvas
src/inkscape_mcp/tools/live.py - Extension catalog
src/inkscape_mcp/tools/extension.py - System operations
src/inkscape_mcp/tools/system.py - SVG persistence
src/inkscape_mcp/tools/_svg_io.py
Inkscape execution
- Inkscape CLI
src/inkscape_mcp/cli_wrapper.py - D-Bus client
src/inkscape_mcp/dbus_client.py - gdbus client
src/inkscape_mcp/win_dbus_client.py - Extension bridge
src/inkscape_mcp/extension_bridge.py - Managed bus
src/inkscape_mcp/bus_manager.py - Bundled extensions
src/inkscape_mcp/plugins
Runtime support
- Configuration
src/inkscape_mcp/config.py - Platform discovery
src/inkscape_mcp/platform_support.py
Other components
- AI agent
- Inkscape
Connections 32
- AI agent → MCP entry point: calls tools
README.md - MCP entry point → File operations: dispatches
src/inkscape_mcp/main.py - MCP entry point → Vector editing: dispatches
src/inkscape_mcp/main.py - MCP entry point → Analysis: dispatches
README.md - MCP entry point → Live canvas: dispatches
README.md - MCP entry point → Extension catalog: dispatches
README.md - MCP entry point → Gradient editing: dispatches
README.md - MCP entry point → Metadata editing: dispatches
README.md - MCP entry point → System operations: dispatches
README.md - MCP entry point → Tool operations: uses operation types
src/inkscape_mcp/main.py - File operations → Inkscape CLI: runs commands
- Vector editing → Inkscape CLI: runs commands
src/inkscape_mcp/tools/vector_operations.py - Analysis → Inkscape CLI: queries Inkscape
- Gradient editing → SVG persistence: writes SVG
src/inkscape_mcp/tools/gradient.py - Metadata editing → SVG persistence: writes SVG
src/inkscape_mcp/tools/metadata.py - Vector editing → SVG persistence: writes SVG
src/inkscape_mcp/tools/vector_operations.py - Live canvas → D-Bus client: controls GUI
src/inkscape_mcp/tools/live.py - Live canvas → gdbus client: uses managed client
src/inkscape_mcp/tools/live.py - Live canvas → Extension bridge: invokes extensions
src/inkscape_mcp/tools/live.py - Live canvas → Managed bus: manages session
src/inkscape_mcp/tools/live.py - Extension catalog → Extension bridge: runs live extensions
src/inkscape_mcp/tools/extension.py - Extension bridge → D-Bus client: fires actions
src/inkscape_mcp/extension_bridge.py - Managed bus → Platform discovery: discovers platform
src/inkscape_mcp/bus_manager.py - gdbus client → Inkscape: sends D-Bus calls
src/inkscape_mcp/win_dbus_client.py - D-Bus client → Inkscape: sends D-Bus calls
src/inkscape_mcp/dbus_client.py - Inkscape CLI → Inkscape: executes operations
README.md - Extension bridge → Bundled extensions: installs extensions
src/inkscape_mcp/extension_bridge.py - MCP entry point → Configuration: loads settings
src/inkscape_mcp/main.py - MCP entry point → Inkscape CLI: configures wrapper
src/inkscape_mcp/main.py - Inkscape CLI → Platform discovery: uses platform support
src/inkscape_mcp/cli_wrapper.py - Live canvas → Platform discovery: resolves executable
src/inkscape_mcp/tools/live.py - System operations → Extension bridge: checks bridge
src/inkscape_mcp/tools/system.py