Skip to main content

dcc-mcp-krita

DCC-MCP · KRITA

Typed document, layer, painting, save, and export automation for Krita.

Krita game-art workflow

Illustrative workflow generated with OpenAI ImageGen from the retained source in docs/images/sources; it is not a Krita screenshot or host-validation artifact.

The adapter combines an external DCC-MCP service with a small Krita Python extension. The extension accepts authenticated loopback JSON-lines requests, queues every LibKis call onto Krita's UI main thread, and exposes only a fixed typed command catalog. It never evaluates caller-provided Python or action IDs.

Part of the DCC-MCP host matrix

dcc-mcp-krita — Krita adapter with typed document, layer, painting, save, and export workflows.

It is one of 47 host adapters in the DCC-MCP catalog. Every adapter speaks the same MCP protocol and builds on the same core runtime contract; each one exposes the tools its own host needs on top of that.

This block is generated from the catalog entry in dcc-mcp-catalog.yml. Re-run the generator after changing the catalog.

Capabilities

  • discover the live bridge and list or inspect open documents;
  • create bounded RGBA/U8 documents or open supported files under allowed roots;
  • inspect layer hierarchy and create, activate, rename, lock, hide, fade, or delete paint layers;
  • write bounded typed-color rectangles directly to paint-layer pixels;
  • preserve layered work as .kra and export PNG, JPEG, WebP, or TIFF artifacts;
  • return artifact size and SHA-256 for downstream Blender, Godot, or engine import validation;
  • flatten or discard modified documents only with explicit typed confirmation.

The bundled krita-document-authoring Skill exposes 16 tools. Freehand brush simulation, arbitrary Python, generic menu actions, and unrestricted filesystem access are intentionally outside the contract.

Install

pip install dcc-mcp-krita
dcc-mcp-krita install --dcc-path /path/to/krita --yes

Restart Krita, open Settings → Configure Krita → Python Plugin Manager, and enable DCC MCP Krita. Configure allowed file roots before starting both Krita and the adapter:

$env:DCC_MCP_KRITA_ALLOWED_ROOTS = "C:\art\textures;D:\project\sprites"
krita.exe
dcc-mcp-krita

On POSIX systems, separate roots with : instead of ;. The bridge defaults to 127.0.0.1:3848; DCC_MCP_KRITA_BRIDGE_PORT changes it for both processes. The extension and adapter share a random token through the current user's ~/.dcc-mcp/krita-bridge-token; set DCC_MCP_KRITA_BRIDGE_TOKEN or DCC_MCP_KRITA_BRIDGE_TOKEN_FILE when deployment policy requires another secret source.

Inspect installation state without revealing the token:

dcc-mcp-krita status --dcc-path /path/to/krita --json
dcc-mcp-krita verify --dcc-path /path/to/krita --json

See the installation and lifecycle guide for platform paths, upgrade/uninstall, stable exit codes, recovery, and troubleshooting. The legacy dcc-mcp-krita-install and dcc-mcp-krita-doctor commands remain compatible.

Safety model

  • loopback-only authenticated transport with bounded requests and responses;
  • a bounded main-thread queue; socket workers never call Krita APIs;
  • workspace-root, suffix, file-size, pixel-count, layer-count, and timeout limits;
  • instance-scoped document and layer IDs instead of caller-provided expressions;
  • explicit overwrite, flatten, and discard opt-ins;
  • batch-mode export with bounded format options and artifact hashing;
  • staged extension installation with rollback if replacement fails.

See Architecture for the runtime and failure contracts.

Development

python -m pip install -e ".[dev]"
python -m pytest -q
python -m ruff check src tests tools bridge
python -m ruff format --check src tests tools bridge
python tools/lint_skills.py
python -m build
python -m twine check dist/*

The host implementation follows Krita's official Python plug-in guide and LibKis API.

Metadata

Release files for dcc-mcp-krita 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcc-mcp-krita 0.5.0
File Size Uploaded Provenance Actions
dcc_mcp_krita-0.5.0.tar.gz 59.7 kB With provenance Details for dcc_mcp_krita-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dcc-mcp-krita 0.5.0
File Interpreter ABI Platform Actions
dcc_mcp_krita-0.5.0-py3-none-any.whl Python 3 none any Details for dcc_mcp_krita-0.5.0-py3-none-any.whl

Total release size: 104.2 kB

Release files / dcc_mcp_krita-0.5.0.tar.gz

Download URL dcc_mcp_krita-0.5.0.tar.gz
Size 59.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8d616ec5dc9a665d8f41c04bdfd98f11512d319daebb8f709270c29426b0dd05
BLAKE2b-256 checksum
How to use checksums
ff25c753e6a8b7397dec62d511024ee12ba60f6ab13d252153c4d71197df1aa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / dcc_mcp_krita-0.5.0-py3-none-any.whl

Download URL dcc_mcp_krita-0.5.0-py3-none-any.whl
Size 44.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
496ff77a0acb4d7a6df7086704410c91c61f435829ea1f6f4caaea12bc23e932
BLAKE2b-256 checksum
How to use checksums
ab6135d4f93f0447c8fdcc5036f4d85aab96bd2153108d45ae294836e9dafe6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for dcc-mcp-krita 0.5.0

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dcc_mcp_krita-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page