DCC-MCP
Provides an MCP bridge into a running Krita window, allowing agents to open documents, create canvases, inspect document and layer trees, add/delete/modify layers, apply filters, trigger Krita actions, browse Krita resources, save/export artwork in various formats, and optionally run Python inside Krita.
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.
DCC-MCP
One MCP server for DCC programs. The core knows nothing about any program: each program is a plugin in plugins/, and new operations and recipes are added as files, without touching the core.
The first plugin drives Krita through a small bridge that runs inside an open Krita window. Tested with Krita 5.3.2.1 and 5.3.4.1 on Windows.
MCP client ──stdio──> dcc_mcp (core) ──> plugins/krita/backend.py ──TCP 127.0.0.1──> dccmcp_bridge (inside Krita) ──> Krita Python APIWhat the core gives every plugin:
Assets with versions.
import_assetcopies a file intowork/<name>/v001_.... Every operation that writes produces the next version (v002_krita.kra,v003_krita.png...) and a log entry inasset.json. Older versions stay; passname@v002to work from one.Recipes. A YAML list of steps that run in order, with parameters and
on_fail: stop | warn.Sessions. Starts the program or attaches to a running one, notices when it is gone and restarts it on the next call.
A fixed tool list. The model sees about ten tools. New operations are reached through
run_operation, so the list does not grow with every plugin.
Why a core?
A core pays off when you use more than one program, or the same steps again and again. For one program used now and then, a plain MCP server for that program is simpler.
What it buys you:
Pipelines across programs. One recipe can run a mesh through a sculpting tool, a UV tool and a painting tool. Each step reads the asset's latest version and writes the next one, so the model does not pass file paths between separate servers.
The same result every time. A recipe is a fixed list of steps with parameters, so twenty files get the same treatment instead of whatever the model improvises for each.
History you can roll back. The original is never overwritten; every step is a new version with its parameters and metrics in the log.
Plumbing written once. Parameter checks, restarting a crashed program, refusing a second call while one runs, and readable errors live in the core, so a new plugin is a connection plus thin operations.
What it costs:
One process. A broken plugin or recipe can stop the server for every program.
One more step for the model. Most operations go through
run_operation, so the model has to look them up withlist_operationsanddescribe_operationfirst.One Python for all plugins. If one program's library needs an older Python, every plugin runs on it.
Disk space. Each version is a full copy of the file.
Related MCP server: Krita MCP Server
Requirements
Python 3.11 or newer
Krita 5.x with Python plugins enabled (the default build has them)
An MCP client, for example Claude Desktop
Install
git clone https://github.com/alexviunvtn-tech/dcc-mcp
cd dcc-mcp
python -m pip install mcp pyyaml jsonschema pytest
python -m pytestPut the bridge into Krita. Close Krita first, then:
python -m plugins.krita.installThis copies the bridge to Krita's pykrita folder and enables it in kritarc (the old file is kept as kritarc.bak). If the bridge does not answer after Krita starts, enable DCC-MCP Bridge in Settings → Configure Krita → Python Plugin Manager and restart Krita.
Check dcc_mcp.toml: [krita] exe must point to your Krita binary.
Connect to Claude Desktop
Add to mcpServers in claude_desktop_config.json:
"dcc-mcp": {
"command": "C:\\Path\\To\\python.exe",
"args": ["C:\\Path\\To\\dcc-mcp\\run_server.py"]
}Use the full path to the Python you installed the packages into. Restart the client completely.
First run
start_session(backend="krita")— starts Krita, or attaches to the one already open.import_asset(name="test", path="C:\\images\\any.png"), thenkrita_open(asset="test")— the file opens in the window; the reply has its layer tree.run_operation(key="krita.layer", asset="test", params={"action": "add", "name": "Ink"})— a new layer on top.krita_save(asset="test", params={"format": "png"})—work/test/v002_krita.png.asset_history(asset="test")— versions and the log of steps.
Or as a recipe: run_recipe(name="krita_export", asset="test") opens the asset and saves a layered .kra and a flat .png. The recipe lives in plugins/krita/examples/; copy it into recipes/ to use it (every recipe in recipes/ is checked at startup, so a recipe for a disabled plugin would stop the server).
Tools
list_operations, describe_operation, run_operation, list_recipes, run_recipe, start_session, stop_session, session_status, import_asset, asset_history, plus a plugin's most used operations as their own tools (krita_open, krita_action, krita_save).
Krita operations
Key | What it does |
| Open an asset version in the window and make it the working document |
| New canvas: size, color model, depth, profile, resolution |
| Document properties, selection and the layer tree |
| Add (paint, group, vector, filter, fill), delete, rename, move, duplicate, merge down, set opacity/blend/visibility/locks, activate |
| Apply a filter with its settings to a layer or the selection |
| Trigger any menu command or tool by its action name |
| What this Krita has: actions, filters, brush presets, color models, profiles |
| Save the next version: |
| Any Python inside Krita with the full API. Off unless |
For a new canvas with nothing to import, import plugins/krita/blank.png (1×1) as the asset, run krita.new, then krita.save on that asset.
Security
The bridge listens on
127.0.0.1only, on a port the OS picks. Every request must carry a token that Krita writes tokrita/dccmcp_bridge.jsonin your user profile; it changes on every Krita start.krita.pythonruns any code the model sends. It is off by default; turn it on indcc_mcp.tomlonly if you want that.Asset names are checked so files stay inside the work folder.
Extending
Operation: a file in
plugins/<program>/ops/withSPEC = OpSpec(...)and one line in the plugin'sregister. For Krita, the logic goes into acmd_<name>method ofbridge/dccmcp_bridge/commands.pyand the op only forwards (forward("<name>")); run the installer again afterwards. Try the idea throughkrita.pythonfirst.Recipe: a file in
recipes/<name>.yaml, seeplugins/krita/examples/krita_export.yaml.Program: a folder
plugins/<name>/with a backend that followsdcc_mcp/contract.pyand aregister(registry, cfg)function, then the name inpluginsindcc_mcp.toml. Plugins may import only the core, never each other;tests/test_architecture.pychecks this.
Limits
Krita works only with an open window (
live); there is no headless mode yet.The model gets JSON back, not a picture of the canvas.
Windows is the tested platform. The code has Linux paths for the bridge and installer, but they are untested.
License
Apache License 2.0, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP for C2PA intake verifier MCP, structured receipts, audit logs, and reviewer-ready evidenc
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
AutoRender's MCP server for media assets, transformations, delivery, and workflow automation.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables 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
- 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.MIT
- AlicenseNot gradedqualityCmaintenanceLets MCP clients such as Claude, Cursor or VS Code drive a locally installed image editor from plain-language requests, opening files, building and managing layers, making selections, applying adjustments and filters, and exporting the finished result. It exposes 65 tools covering layers, documents, adjustments, selections, filters, undo/redo state and export formats like PNG, PSD and WebP.5MIT