v1.0.0 · Krita 5.3.5 + 6.0.5 verified

Let your AI work in Krita

MCP Pro for Krita connects Claude Code, Cursor and other MCP clients to Krita, the free painting program. The AI paints with Krita's own brushes, draws pixel art, sorts and cleans up layer stacks, builds animations and exports sprite sheets, and looks at the canvas after each step. 148 tools, one undo step per command.

Buy once, free updates. Verified on Krita 5.3.5 and 6.0.5, Windows 11.
Tileset.kra· 128×64 · 16 px tilesget_canvas_preview
A 16 px pixel-art tileset in Krita: starter tiles, a checker grid and an Endesga 32 palette row
recipe_pixel_tileset output: starter tiles (grass, dirt, stone, water, sand, brick, wood, snow) snapped to Endesga 32, a checker cell grid, the palette row. Unretouched.
148
MCP tools
2
Krita versions verified
1
undo step per command
$15
once, updates included

How it works

Two parts: a Python MCP server that your AI client starts, and a regular Krita Python plugin that runs each command on Krita's GUI thread with Krita's own scripting API.

MCP client  --stdio-->  krita-mcp (Python MCP server, proprietary)
                              |
                              |  HTTP JSON on 127.0.0.1:60081, per-session token
                              v
       Krita plugin "MCP Pro for Krita Bridge" (Python, GPL-3.0-or-later)
       -> every command runs on Krita's GUI thread
       -> Krita's Python API + Qt for pixel work, MCP undo journal, audit log

The plugin opens a localhost-only HTTP bridge inside Krita with a per-session token; commands run in the open document, so you watch the canvas change and can keep painting by hand. Every command is logged. Krita can stay minimized. The plugin works on Krita 5.3 (PyQt5) and 6.0 (PyQt6) from the same files.

What the AI can do in Krita

Grouped by area. Tool names are the ones your AI client sees.

Sees its own work

Canvas, region, animation-frame, layer and brush/gradient/pattern previews come back to the model as images. Small pixel art is upscaled with hard edges.

get_canvas_preview get_layer_preview get_resource_preview

Painting

Real Krita brush strokes with any preset, size, opacity and pressure curve (taper, pen, per-point); lines, rectangles, ellipses, polygons and SVG paths; bucket, selection and gradient fills; editable text and vector shapes.

paint_stroke draw_path draw_ellipse fill_bucket fill_gradient add_text add_vector_shapes

Pixel art

Sprites from text rows with a palette legend (and back with get_pixels), exact pixels, hard-edged lines, rectangles and ellipses, 1-px outlines, mirror symmetry.

set_pixel_rows get_pixels put_pixels draw_pixel_line pixel_outline mirror_pixels

Colour and palettes

Foreground and background colours, colour picker, built-in pixel palettes (PICO-8, Sweetie 16, Endesga 32, Game Boy), extract, save as .gpl, hue-shifted colour ramps, palette remap with ordered dither, colour spaces.

generate_color_ramp extract_palette apply_palette replace_color convert_color_space

Layers

Paint, group, vector, fill, filter, clone and file layers; masks; blending, opacity, clipping, locks, colour labels; move, merge, flatten, group, solo; find and batch rename.

create_layer add_mask set_layer_properties group_layers find_layers batch_rename_layers

Selections

Rectangle, ellipse and polygon selections, magic wand, layer alpha, grow, shrink, feather and border; clear, copy to a new layer, crop to selection.

select_rect select_by_color select_layer_alpha modify_selection selection_to_layer

Filters and adjustments

Any Krita filter by id with its config, plus shortcuts for HSV, blur, sharpen and levels. Non-destructive filter layers and filter masks too.

apply_filter get_filter_config adjust_hsv blur_layer adjust_levels

Canvas, transforms and view

Resize, crop, trim, scale, rotate, flip and shear the image or one layer, offset with wrap-around for seamless tiles, align, guides, zoom and rotate the view.

resize_canvas trim_canvas scale_layer offset_layer align_layer set_guides set_view

Export

Any Krita format, one file per layer or group (trimmed, offsets reported), sprite sheets with JSON, icon size sets, animation frames, animated GIF without ffmpeg.

export_image export_layers export_sprite_sheet export_multiple_sizes export_gif

Animation

Frame rate and range, keyframes, turn a layer stack into frames, import image sequences, onion skins.

set_animation_settings add_keyframe frames_from_layers import_frames set_onion_skin

Documents, templates, checks

Create, open, save, duplicate and close; metadata and resolution; 8 templates (pixel sprite, sprite animation, tileset, A4 illustration, comic page, game icon, 1080p concept, social square); lint before export.

create_document create_from_template validate_document save_document_as

Brushes and resources

List and preview presets, gradients and patterns; pick a preset and set size, opacity, flow, rotation and blending; add reference images.

list_resources set_brush_preset set_brush_settings set_gradient add_reference_image

Recipes

Pixel tileset, layer-stack clean-up, group sprite sheets and character turnarounds in one call each.

recipe_pixel_tileset recipe_clean_layers recipe_group_sprite_sheets recipe_turnaround

Undo, history and safety

One MCP undo step per command, history, any Krita action by id (dialog and quit actions blocked), optional execute_python, audit log.

undo redo get_history trigger_action execute_python get_audit_log

One-call recipes

Common jobs in a single tool call, each one undo step. The pictures are the real output from the live test run on Krita 6.0.5.

Tileset with grass, dirt, stone, water, sand, brick, wood and snow tiles and an Endesga 32 palette row

A pixel-art tileset, ready to paint

Tile-grid guides, a locked checker Cells layer, a Tiles group (Base, Details, Shading in multiply), a palette swatch row, the pixel brush, and a row of procedurally generated starter tiles snapped to the palette.

recipe_pixel_tileset(tile_size=16, columns=8, rows=3,
                     palette="endesga32")
Four pose layers of a small pixel character, scattered on the canvasThe resulting turnaround animation, cycling front, three-quarter, side and back

A character turnaround from pose layers

Front, three-quarter, side and back drawn on separate layers become one animated layer: aligned on a common baseline, one keyframe per view, fps set, plus a GIF and a sprite sheet.

recipe_turnaround(layers=["front", "three_quarter",
                  "side", "back"], fps=4, align="bottom",
                  export_dir="D:/game/hero", gif_scale=6)
Idle sprite sheet: three frames of an orange pixel ballRun sprite sheet: four frames of a green pixel ball

Every group becomes a sprite sheet

Groups such as idle and run are exported as their own sprite sheet PNG with frame-rect JSON (and a GIF if you ask); frames are the group's layers, trimmed to a common box so they stay aligned.

recipe_group_sprite_sheets(directory="D:/game/sprites",
                           gif=True, scale=4, padding=2)
Canvas after the clean-up: a red ellipse top-left and a blue stroke at the bottom

Clean up a messy layer stack

Deletes empty layers and groups, renames default-named layers after their content, trims and de-duplicates names. dry_run reports first; the whole clean-up is one undo step. In the test, Paint Layer 1 became red shape top-left, three empty layers and an empty group were removed.

recipe_clean_layers(dry_run=True)   # report
recipe_clean_layers()               # apply, one undo step

Demo

Screen recordings of the AI working in Krita.

Demo video coming soon: a pixel-art tileset from one prompt
Demo video coming soon: cleaning up and exporting a layer stack

Modes and tool caps

Some clients cap or slow down with 100+ tools. Pick a mode when you register the server; --no-execute-arbitrary removes execute_python from any of them.

ModeToolsFor
minimal42create, paint, pixel art, preview, export, recipes, undo; the smallest context
lite94everyday work; stays under the ~100-tool cap of some clients
default147everything except the plugin-development tool
full148everything, plus reload_bridge

Supported clients

Any MCP client that can start a local stdio server. Configs for the first three are in the setup guide.

Claude Codeclaude mcp add krita -- <path>/.venv/Scripts/krita-mcp.exe
Cursor~/.cursor/mcp.json or a project .cursor/mcp.json
Claude Desktopclaude_desktop_config.json
Other stdio MCP clientsSame command and arguments; not individually tested. Add --mode lite for tool caps.

Install outline

About ten minutes. Full instructions ship in the download (INSTALL.md); the setup guide walks through every step.

Install the MCP server (Python 3.10+)

python -m venv .venv
.venv\Scripts\pip install .

macOS / Linux: python3 -m venv .venv and .venv/bin/pip install .

Install the Krita plugin and restart Krita

In Krita: Tools > Scripts > Import Python Plugin from File... with krita_mcp_bridge-v1.0.0.zip, then tick MCP Pro for Krita Bridge in the Python Plugin Manager. Or, with Krita closed:

powershell -ExecutionPolicy Bypass -File scripts\install_plugin.ps1

Register the server with your AI client

claude mcp add krita -- C:/tools/mcp-pro-for-krita/.venv/Scripts/krita-mcp.exe

Start Krita and ask

Try "Call krita_connect, then make a 16 px pixel-art tileset with the Endesga 32 palette and show me."

What to expect in 1.0.0

  • Verified live on Krita 5.3.5 and 6.0.5 on Windows 11: every tool called, pixel-level checks, undo/redo round-trips for 27 modifying tools. macOS and Linux have install scripts but are untested.
  • Krita must be running with the plugin enabled; tools default to the active document and layer.
  • Pixel tools need 8-bit RGBA layers (convert_color_space fixes that); brush, filter and transform tools work in any colour space.
  • MCP undo is separate from Krita's Ctrl+Z. Pressure-varying strokes appear as several entries in Krita's own history (MCP undo still reverts them as one).
  • Keyframe tools briefly show the Timeline docker if it is hidden. Reference images can be added but not listed or removed (no Krita API). New palettes appear in Krita's Palette docker after a restart.
  • Text uses Krita's SVG text; font fallback depends on the fonts installed on your system.
  • All later updates are free for buyers.

FAQ

What is MCP Pro for Krita?
An MCP (Model Context Protocol) server plus a Krita Python plugin. Together they let an AI client such as Claude Code or Cursor work in Krita: create documents, organise and clean up layer stacks, paint with Krita's own brushes, draw pixel art, select, adjust colours and palettes, transform, animate, and batch-export. Version 1.0.0 has 148 tools.
Does the AI generate images, or does it paint in Krita?
It works in Krita. Strokes are made with real Krita brush presets, shapes and fills land on real layers, and the result is an ordinary .kra (or PSD, ORA, PNG ...) that you keep editing by hand. No image-generation model is involved: the AI decides where to paint, Krita does the painting.
Which Krita versions and operating systems are supported?
Krita 5.3.x and 6.0.x. Live verification was done on Krita 5.3.5 and 6.0.5 (official portable builds) on Windows 11: every tool was called at least once, with pixel-level checks and undo/redo round-trips. macOS and Linux have an install script but are untested so far. The MCP server needs Python 3.10 or later; the plugin runs on Krita's own Python.
Which AI clients work?
Any MCP client that can start a local stdio server. Configs for Claude Code, Cursor and Claude Desktop are in the setup guide; Windsurf, Cline and others use the same command but have not been individually tested. For clients with a tool cap, start the server with --mode lite (94 tools) or --mode minimal (42 tools).
Can the AI see what it painted?
Yes. get_canvas_preview returns the canvas (or a region, or an animation frame) as an image, and get_layer_preview shows one layer on its own. Small pixel art is upscaled with hard edges so the model can read individual pixels. The AI looks after each step and corrects what is off.
Can I undo what the AI did?
Yes. Every modifying command is one step in an MCP undo journal, so the undo and redo tools revert or replay exactly one command, even for changes Krita's own history does not record. The journal is separate from Krita's Ctrl+Z; if you undo by hand in Krita between MCP commands, undo stops and tells you instead of guessing.
Is it good for pixel art?
It was built with pixel art in mind: sprites drawn from text rows with a palette legend, exact pixels, hard-edged lines and shapes, outlines, mirroring, colour ramps, palette remapping with optional ordered dither, and built-in palettes (PICO-8, Sweetie 16, Endesga 32, Game Boy). The pixel tools need 8-bit RGBA layers; brush, filter and transform tools work in any colour space.
Is it safe to run?
The plugin listens on 127.0.0.1 only and requires a per-session token; requests from web pages (an Origin header) and non-loopback Host headers are refused. Nothing is sent to the internet; your AI client talks to its own model provider as usual. Every command is written to an audit log. execute_python (arbitrary Python inside Krita) can be removed from the server with --no-execute-arbitrary and refused inside Krita by a config switch.
What is the licence? Is it open source?
Partly. The Krita plugin runs inside Krita and uses Krita's GPL Python API, so it is licensed GPL-3.0-or-later: its full source ships as Python, with the GPL text in the plugin folder, and you may study, modify and share it under the GPL. The MCP server (krita-mcp) is proprietary: it is a separate program that talks to the plugin as JSON over HTTP on localhost and does not load or link Krita or the plugin. What you buy is the server and the ready-to-use package.
Krita is free. Why is this paid?
Krita is free software made by the Krita Foundation and its community, and it stays free. MCP Pro for Krita is a separate, independent add-on that connects AI clients to it. If Krita is useful to you, consider supporting its development at krita.org as well.
How much is it, and is there a subscription?
$15 USD, paid once on itch.io. No subscription; later updates are included. Launch sale until Dec 2: 30% off ($10.50).
v1.0.0
$15 USD, once

Buy once on itch.io. Every later update is included.

Buy MCP Pro for Krita
  • MCP server with 148 tools in 14 areas
  • Four modes: minimal 42, lite 94, default 147, full 148
  • Krita plugin for Krita 5.3 and 6.0 (GPL-3.0-or-later, full source)
  • Recipes: tilesets, layer clean-up, sprite sheets, turnarounds
  • Install scripts, setup instructions and example prompts
  • Free updates; licence terms are in the download