Set up MCP Pro for Krita with Claude Code or Cursor
MCP Pro for Krita has two parts: the MCP server krita-mcp, a Python program your AI client starts, and the Krita plugin MCP Pro for Krita Bridge, a regular Krita Python plugin that runs the commands inside Krita. This guide installs both and connects Claude Code, Cursor or Claude Desktop. It follows INSTALL.md from the download and takes about ten minutes.
Requirements
- Krita 5.3.x or 6.0.x. Verified: Krita 5.3.5 and 6.0.5 (official portable builds) on Windows 11. The installer builds are the same program. macOS and Linux are untested.
- Python 3.10 or later for the server (
python --version). The plugin itself runs on Krita's embedded Python. - An MCP client: Claude Code, Cursor, Claude Desktop, Windsurf, Cline, or another client that can start a local stdio server.
Unzip the download to a permanent place, for example C:\tools\mcp-pro-for-krita or ~/tools/mcp-pro-for-krita. The AI client runs the server from there.
mcp-pro-for-krita-v1.0.0/
server/ MCP server (Python package)
plugin/pykrita/ Krita plugin (GPL-3.0-or-later)
krita_mcp_bridge-v1.0.0.zip the plugin, for Krita's importer
scripts/ plugin install scripts
examples/ scripted use without an AI client
README.md INSTALL.md CHANGELOG.md SECURITY.md
LICENSE LICENSE-GPL-3.0.txt
1. Install the MCP server
Create a virtual environment in the unpacked folder and install the package into it:
python -m venv .venv
.venv\Scripts\pip install .
.venv\Scripts\krita-mcp --version
macOS and Linux:
python3 -m venv .venv
.venv/bin/pip install .
.venv/bin/krita-mcp --version
This also installs krita-cli, a small command-line client for checking the connection.
2. Install the Krita plugin
From inside Krita (any OS)
- Tools > Scripts > Import Python Plugin from File... and pick
krita_mcp_bridge-v1.0.0.zipfrom the package folder. Confirm the question about enabling it. - Settings > Configure Krita > Python Plugin Manager: make sure MCP Pro for Krita Bridge is ticked.
- Restart Krita.
With the install script
Close Krita first (it rewrites its settings file when it exits), then:
powershell -ExecutionPolicy Bypass -File scripts\install_plugin.ps1
It copies the plugin into %APPDATA%\krita\pykrita\ (or the resource folder you configured in Krita) and enables it. macOS and Linux (untested): bash scripts/install_plugin.sh, which uses ~/Library/Application Support/krita/pykrita or ~/.local/share/krita/pykrita.
3a. Connect Claude Code
Use the absolute path of krita-mcp in your virtual environment:
claude mcp add krita -- C:/tools/mcp-pro-for-krita/.venv/Scripts/krita-mcp.exe --mode default
On macOS and Linux the path ends in .venv/bin/krita-mcp. Run claude mcp list to see the entry.
3b. Connect Cursor, Claude Desktop and others
Cursor reads ~/.cursor/mcp.json (or .cursor/mcp.json in a project), Claude Desktop reads claude_desktop_config.json; Windsurf, Cline and most other clients use the same shape:
{
"mcpServers": {
"krita": {
"command": "C:/tools/mcp-pro-for-krita/.venv/Scripts/krita-mcp.exe",
"args": ["--mode", "default"]
}
}
}
Restart the client after editing the file. Forward slashes work in Windows paths.
4. Check the connection
- Start Krita. The plugin writes
~/.krita_mcp_pro/bridge.json(port, token, process id). .venv\Scripts\krita-cli statusprints Krita's version and the bridge info.- In your AI client, ask: "Call krita_connect." The answer lists Krita's version, the open documents and the bridge version.
Krita and the AI client can start in any order. Krita may stay minimized while the AI works.
5. Pick a mode
--mode default registers 147 tools. If your client caps the number of tools (often about 100) or gets slow, use --mode lite (94 tools) or --mode minimal (42). --no-execute-arbitrary removes execute_python from any mode. See lite mode and tool caps.
6. First prompts
- "Make a 16 px pixel-art tileset with the Endesga 32 palette and show me."
- "Clean up this layer stack and give the layers sensible names. Dry run first."
- "Paint a sunset sky gradient, add a tapered brush-stroke horizon and the title 'Dusk' in white, then show me the canvas."
- "Export every group as a sprite sheet with JSON into D:/game/sprites."
Then read on: pixel art and tilesets, painting with brushes.
Updating and uninstalling
To update, run pip install . again from the new folder, install the new plugin by either route, and restart Krita. krita_connect shows the bridge version. To uninstall, run scripts\install_plugin.ps1 -Uninstall (or untick and delete pykrita/krita_mcp_bridge*), delete the .venv, remove the server entry from your client, and optionally delete ~/.krita_mcp_pro.
Troubleshooting
- "Cannot reach the Krita bridge": Krita is not running, the plugin is not ticked in the Python Plugin Manager, or Krita was started before the plugin was installed. Restart Krita.
- Port in use: the bridge moves to 60082-60090 by itself. If you pinned
KRITA_MCP_PORT, pass the same--porttokrita-mcp. - Timeouts, or Krita does not react: a modal dialog is probably open (for example file recovery after a crash).
krita_connectreports it inmodal_dialog. Close it and retry. - The plugin is greyed out: that Krita build has Python disabled. Use an official build from krita.org.
Get MCP Pro for Krita
$15 once on itch.io, free updates.