Krita MCP server and AI assistant: AI agents (Claude, ChatGPT, Gemini, Cursor, ...) and an AI Chat inside Krita paint, edit and generate art, photos, animation and video, with ComfyUI, OpenAI, Gemini, free models and more
pip install kritapilot==1.0.5 Copy PIP instructions
Let AI create and edit art, photos, animation and video inside a running Krita. KritaPilot is a Krita MCP server for any MCP client - Claude, ChatGPT, Gemini, Cursor, VS Code Copilot, Codex and others - and an AI Chat inside Krita that works with 40+ AI providers, including free ones. (Formerly krita-mcp.)
The plugin updates itself from this project's GitHub releases: it tells you when a new version is out (or installs it automatically, if you choose), checks every download against GitHub's published checksum, and updates the KritaPilot server too.
An AI Bridge (MCP) panel inside Krita shows the status and a live activity log. From it you can make the AI read-only or pause it, undo AI edits, set the workspace and token, and copy a ready-made config for your AI client. Popups Krita opens while the AI works (such as "Missing Colour Profile") are cancelled and reported to the AI instead of blocking it. Logs… follows every command, chat step, setting change and error live, dated to the millisecond and with keys masked. If Krita ever freezes, the plugin records where in ~/.kritapilot/hang.log.
pip install kritapilot # PyPI pip install "git+https://github.com/jowinjohnchemban/kritapilot" # GitHub (latest main) kritapilot install # the plugin, into Krita pipx install kritapilot works too, and every release has the wheel and the plugin zip (in Krita: Tools ▸ Scripts ▸ Import Python Plugin from File…). (Not pip install krita-mcp: that is a different project.) Start Krita. kritapilot doctor checks every link - plugin, bridge, AI services - and says how to fix what is broken. Use it, either way: Inside Krita, free: open Settings ▸ Dockers ▸ AI Chat, keep the provider on Auto and type. Free models need no account; sign in to any provider in Services… for faster, stronger results. From your AI app: open Settings ▸ Dockers ▸ AI Bridge (MCP), pick your client and copy the snippet. For example, in Claude Code: claude mcp add krita -- kritapilot Ask: "Create a 1200×800 canvas, paint a sunset over mountains with real brushes, look at it and improve it." Details: installation · clients · AI Chat · the panel
kritapilot status # Krita, the plugin and the open documents kritapilot chat "paint a misty forest" # ask the AI Chat assistant from a terminal kritapilot snapshot canvas.png # save what the canvas shows kritapilot tools selection # the tools (here: those about selections) kritapilot call set_selection '{"kind": "all"}' # run any tool with JSON arguments kritapilot history # recent generated pictures kritapilot install # put the plugin into Krita and turn it on (Krita closed) kritapilot doctor # check every link to Krita and the AI services Command-line flags kritapilot [--transport {stdio,http}] [--host HOST] [--port PORT] [--agent [--agent-port N]] [--check-update | --update] [--version] Flag Default Meaning --transport stdio stdio for local clients (Claude Code/Desktop, Cursor, VS Code, Gemini CLI, Codex). http for clients that need a URL. --host 127.0.0.1 HTTP bind address. Binding anything other than loopback requires KRITAPILOT_HTTP_TOKEN. --port 8765 HTTP port (the endpoint is http://HOST:PORT/mcp). --agent Run the in-Krita assistant service for the AI Chat docker instead of an MCP server. The docker starts it by itself. --agent-port 5680 Port of that service (loopback only, bridge-token auth). Also KRITAPILOT_AGENT_PORT. --check-update Ask GitHub whether a newer release exists (prints JSON). --update Download, verify and install the newest release of the server. --version Print the version and exit. Environment variables:
Generative services are configured with more server variables (KRITAPILOT_COMFYUI_URL, KRITAPILOT_A1111_URL, KRITAPILOT_OPENAI_API_KEY, KRITAPILOT_GEMINI_API_KEY, KRITAPILOT_STABILITY_API_KEY, KRITAPILOT_REPLICATE_API_TOKEN, KRITAPILOT_FAL_KEY, KRITAPILOT_HEYGEN_API_KEY, KRITAPILOT_ANTHROPIC_API_KEY, KRITAPILOT_IMAGE_BACKEND, …). Cloud services are used only with a KRITAPILOT_… key, so a key that happens to be in your environment never uploads your art by surprise. See Connecting AI services.
The bridge listens on loopback only and requires a secret token. The AI can read and write files only in one workspace folder (~/KritaMCP by default). There is no code-execution tool. You can switch the AI to read-only or pause it from the panel at any time. Full details: security model.
The project is tested against Krita 5.3.4 on Windows. scripts/smoke_krita.py runs 56 end-to-end checks against a running Krita, including an undo matrix over every kind of edit and the Quick start's sunset prompt. scripts/paint_sunset.py paints the sunset with real brushes, looks at it, improves it and checks the result. The AI Chat has been run end to end against real Krita on Auto with only the free services (Pollinations, Kilo, AI Horde): a photoreal prompt was generated, compared and saved, with the switch to the next provider happening on the way. Unit tests run on Linux and Windows with PyQt5 and PyQt6 in CI. Krita 6 is covered by the PyQt6 unit tests but has not yet been run end to end.
Do I need a paid AI account? No. The AI Chat inside Krita works with free models and no account (Pollinations, Kilo Gateway, OVHcloud, LLM7), and AI Horde makes free pictures. They are slower and simpler than paid models; one paid provider (or a local model with Ollama) makes a big difference.
Do I need a GPU? No. Painting with Krita's brushes needs none, and cloud image models run elsewhere. If you have one, ComfyUI or AUTOMATIC1111 run image models locally for free.
Does it upload my artwork? Only to the services you set up, and only when a request uses them (for example, an image model reworking a region, or a snapshot shown to a chat model). Painting, editing and measuring happen in Krita on your computer. Cloud services are used only with keys you saved yourself.
Can the AI damage my files? It can read and write only inside one workspace folder, every edit is a separate undo step, it never overwrites your own layers unless asked, and you can switch it to read-only or pause it at any time.
Which Krita versions? Krita 5.3 is tested end to end on Windows; Linux and macOS use the same plugin. Krita 6 (PyQt6) is covered by the unit tests.
Where do I start? Follow the Quick start, then try the workflows. Something wrong? Open Logs… in the panel; it usually says why.
Bug reports, ideas, new skills and pull requests are welcome - see CONTRIBUTING.md. What changed recently is in the changelog. Security problems: SECURITY.md.
pip install -e .[test] PyQt6 QT_QPA_PLATFORM=offscreen pytest python scripts/smoke_krita.py # against a real running Krita with the plugin enabled See development.
Both files in this release have provenance metadata.
ai ai-agents animation art claude comfyui digital-painting generative-ai inpainting krita krita-ai krita-mcp krita-mcp-server krita-plugin llm mcp mcp-server model-context-protocol openrouter painting photo-editing stable-diffusion
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




