Krita MCP
Provides tools for painting and drawing in Krita, including brush strokes with pressure, layers, masks, selections, blend modes, filters, soft blur, procedural marks, pixel art, SVG, realism/lighting effects, posed figures, depth/atmosphere, and export to PNG/JPG/KRA, with each tool call as a single undo step.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Krita MCP
Lets Claude (or any MCP client) paint in Krita: Krita's brush engine with pressure, clean tapered ink, pencil and charcoal grain, gradient fills, SVG, blend modes, clipping, masks, shaped selections, soft blur, procedural marks (scatter, hatching), pixel art, layers, filters, and export to PNG/JPG/KRA. Every tool call is a single undo step.

Painted entirely through the MCP's tools by examples/scifi_soldier.py: a projected low-angle hallway, the soldier built from depth-ordered parts, separate clipped shading, key and rim light layers, emissive glow with bloom, light beams, haze, dust, vignette, color grade and grain. All of it stays as editable layers in the saved .kra.
Realism tools (v0.3)
Paint parts flat, then let the server compute the light:

render_formbuilds a height field from each flat-colored part and lights it: rounded, dome or beveled volume, key, fill and sky light, ambient occlusion, specular highlights, rim light, environment reflections on metal, and a warm glow at the shadow edge for skin and leaves. Materials: matte, plastic, metal, painted_metal, skin, cloth, stone, wood, glass, leaf.Organic shapes:
tube(a spine with a radius at each point, for limbs, fingers, tentacles, branches) andblob(rocks, clouds, muscles) work inpaint,selectandadd_mask.cast_shadowgrounds objects with a projected shadow that's sharp at the contact point and softer farther away.textureadds grime, rust, scratches, stone, cell, fabric, grain and cloud patterns.painterlyrepaints with brush strokes that follow the forms, coarse to fine, with bristle texture:

Natural lines:
draw_strokes(natural=0.5)adds wobble, pressure and overshoot;passes=3gives a sketchy look.
The soldier scene again, with render_form on the hallway and armor, texture, and a 45% painterly layer (python examples/scifi_soldier.py all out real):

The same soldier drawn as line art (examples/scifi_soldier_drawn.py), produced on the first run:

Line-art drawing is built into draw_strokes, so it works on the first try:

"outline": a stroke can be a shape's contour. Atube(a spine with a radius at each point) gives limbs and fingers natural tapering contours;blob, rounded-corner polygons and smooth paths cover the rest."fill": an outline carries its color.fill_line_artthen colors every enclosed area that lies mostly inside it, even when seams or parts in front split it into pieces. No seed coordinates needed."occlude": a part in front erases the lines behind it exactly up to its own contour. No hand-sized erasers, so no stubs or gaps."joins": seams and panel lines get solid ends that snap onto the contour they meet, so areas close for coloring.fill_line_art(debug_view=true)shows every enclosed area in its own color, with the seeds marked, if something still leaks.edge_lightadds rim or kicker light only on the edges that face the light.
The heavy image work (numpy, SciPy, Pillow) runs in the MCP server, so the Krita plugin stays lightweight. The installer sets these up for you.
Related MCP server: krita6-mcp
Posed figures (v0.4)
draw_figure draws a human figure from a pose: a few numbers for stance, twist, lean and head turn, plus where the hands and feet go. Elbows and knees are solved automatically (two-bone IK). Arms and legs are single anatomical contours through the joints (calf bulge, forearm swell, thigh tapering to the knee). Armor, clothing and gear are attached to bones, so they follow any pose. sketch_pose draws a quick stick skeleton to check a pose first.

The soldier, posed and armored through bone attachments, with the rifle placed by his hands:

Depth: making things part of the scene (v0.4)
Every document has a depth buffer. add_depth writes the environment's 3D polygons into it, and draw_figure writes the figure's depth automatically. These tools use it:
atmosphere: haze by real distance.depth_of_field: focus and blur by distance.ambient_occlusion: contact darkness where things meet.scene_light: the environment's own 3D lamps light each figure by position, with falloff.figure_shadow: a cast shadow computed from the 3D pose and a lamp, plus contact shadows.integrate_subject: background light wraps over a figure's edges, and its colors shift toward the scene's palette.show_depth: look at the depth buffer to check it.
draw_figure also scales line weight by distance and, by default, draws each contour in a darker shade of the color it outlines instead of black.
Two simple characters at different depths in the same hallway, lit by the same lamps, from one run of examples/depth_demo.py:

Where this stands next to image generators
Diffusion models (the image generators in ChatGPT, Gemini and others) are still far ahead at photorealism, painterly texture and natural anatomy. This MCP is good at different things:
Exact control: composition, perspective and proportions come from numbers, so a revision changes only what you asked for.
Editable output: a layered
.krafile with separate light, shade and glow layers, so you or Claude can keep working on it.Precise graphics: clean text, logos, game UI, diagrams, technical shapes, and true pixel art.
Consistency: the same character or asset can be redrawn from a script, so a series stays on-model.
A strong workflow is to combine them: use a generated image as a reference with place_image, then build a clean, layered, controllable version on top.
How it works
Claude ──MCP (stdio)──> server.py ──JSON over 127.0.0.1:9877──> Krita plugin (krita_mcp) ──> Krita's Python APIplugin/krita_mcpis a Krita Python plugin. It opens a small socket server inside Krita, on this computer only (127.0.0.1). Commands run on Krita's main thread, so they use Krita's own brush engine, layers and undo history.server.pyis the MCP server. It turns tool calls into commands for the plugin. It's plain Python; the installer sets it up in its own environment.
Install
Works on Windows, macOS and Linux. You need Krita 5.2 or newer (tested on 5.3.4) and Python 3.10 or newer. Nothing else: no uv, no manual pip.
Close Krita, then run the installer from this folder:
OS | Command |
Windows | double-click |
macOS |
|
Linux |
|
It does everything in one go:
copies the plugin into Krita's
pykritafolder;turns it on in Krita's settings (the old settings file is kept as
kritarc.before-krita-mcp);creates a private Python environment in
.venvhere and installs the server's packages into it (mcp,numpy,scipy,pillow). Nothing is installed system-wide;registers the server with Claude Code if the
claudecommand exists, and prints the config snippet for Claude Desktop or any other MCP client.
Then start Krita and restart Claude. To check the plugin is running, use Tools › Scripts › Krita MCP (Claude): status in Krita.
Options: --plugin-only (just the plugin, if you run the server yourself), --no-register (don't touch Claude Code's config), --dry-run (show what would happen).
OS | Plugin folder ( | Krita settings ( |
Windows |
|
|
macOS |
|
|
Linux |
|
|
Linux (Flatpak) |
|
|
By hand: copy plugin/krita_mcp/ and plugin/kritapykrita_krita_mcp.desktop into the plugin folder, start Krita, enable Krita MCP (Claude) in Settings › Configure Krita › Python Plugin Manager, and restart Krita. Then run the server any of these ways:
pip install -r requirements.txt && python server.py # plain Python
uv run server.py # uv reads the dependencies from server.py itselfClaude Code: claude mcp add krita -s user -- python /path/to/krita-mcp/server.py
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"krita": { "command": "/path/to/krita-mcp/.venv/bin/python", "args": ["/path/to/krita-mcp/server.py"] }
}
}On Windows the Python inside the environment is .venv\Scripts\python.exe.
launch_krita finds Krita in its usual places: Program Files on Windows, /Applications or ~/Applications on macOS, and on Linux the krita command, Flatpak, Snap, or an AppImage in ~/Applications, ~/Downloads, ~/bin or ~/.local/bin. Anywhere else, set KRITA_PATH.
Optional environment variables:
Variable | Default | What it does |
|
| Port the bridge uses. Set it for both Krita and the server. |
| found automatically | Path to the Krita program, used by |
Tools
Area | Tools |
General |
|
Documents |
|
Layers |
|
Brushes |
|
Painting |
|
Rendering |
|
Procedural |
|
Selection & masks |
|
Figures |
|
Depth |
|
Realism |
|
Other |
|
Coordinates are document pixels with the origin at the top left. Stroke points can be [x, y] or [x, y, pressure]:
{"strokes": [{"points": [[100, 300, 0.1], [250, 200, 1.0], [400, 300, 0.1]]}],
"preset": "Ink-3 Gpen", "size": 16, "color": "#24323f"}How the painting works
Krita's scripting API can paint brush strokes but can't do gradients, variable-width ink or blend-mode compositing, and its raw pixel writes can't be undone. The plugin handles this as follows:
Brush strokes are painted with your real brush presets into a hidden scratch document. They then land on your layer in one step, so a 200-segment pressure stroke is still one undo step and one even opacity.
Ink, gradients, SVG and fills are rendered with Qt's painter, then committed through a temporary layer that is merged down. Merges are undoable, and the commit applies the blend mode, the selection, clipping and blur.
undoreads Krita's undo history to count how many steps a call made, and undoes all of them.
Development
tools/smoke_test.py [out_dir]draws a simple test scene and exports PNG, KRA and alookimage.tools/feature_test.py [out_dir]checks gradients, blur, clipping, selections, ink engines, masks and whole-call undo.tools/realism_test.py [out_dir]makes the realism study above (forms, materials, shadows, textures, natural lines, painterly).examples/scifi_soldier.py [stage] [out_dir]paints the picture at the top.tools/restart_krita.pyrestarts Krita so a changed plugin loads cleanly. This discards unsaved changes in open documents.tools/dev_reload.pyhot-reloads the plugin without a restart. It's faster but can leave old code wired in, so restart Krita if anything behaves oddly.
Security
The bridge listens only on 127.0.0.1, but it has no authentication. Any program on your computer can send it commands, including execute_python, which runs arbitrary Python inside Krita. Only enable the plugin on a computer you trust.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Generate AI images and videos from any compatible MCP client.
- Wireflow MCP serverDeprecatedai.wireflow
Connect Claude or any MCP client to Wireflow, the AI canvas for image, video and audio workflows. List, build, inspect and run your workflows and published apps, browse templates, check models, prices and credits, edit a video node's timeline, and plan or schedule social posts. Drafts and edits cost no credits; run tools spend the user's credits.
Generate and edit images and generate videos with Nanobananana's remote MCP server.
Generate and edit images, video, voice and music from any MCP client. 50 tools, 46 models.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to directly control a local Krita instance by inspecting real canvas previews, managing documents and layers, importing and masking generated images, inpainting, painting with the brush engine, checkpointing, and exporting KRA/PNG files.MIT
- AlicenseAqualityBmaintenanceEnables an AI assistant to inspect and edit a live Krita 6 desktop session, create and modify documents and layers, paint with native brushes, and receive inline PNG previews.561MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI clients to control a running Krita instance, allowing them to create canvases, paint strokes, draw shapes, export images, and perform other painting tasks.MIT
- AlicenseNot gradedqualityBmaintenanceEnables LLM-driven painting agents to control Krita through MCP tools, iteratively reconstructing a target image by observing canvas snapshots, diff heatmaps, and session state. It exposes observation, drawing, brush, color, layer, selection, vector, filter, document I/O, and session tools for closed-loop artwork generation.1MIT