krita-codex-mcp
Control Krita from OpenAI Codex through a secure local Model Context Protocol (MCP) server for Windows.
Install / Use
claude mcp add cyyprezz -- npx -y github:cyyprezz/krita-codex-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of krita-codex-mcp
krita-codex-mcp scores 78/100 on our quality scale, 1558th of 2,717 Development & Engineering skills we index.
Its MCP Server is 9.6 KB long, split into 7 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so krita-codex-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-27. Automated pattern scan on 2026-09-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
krita-codex-mcp compared with similar skills
All 4 of these similar skills score higher than krita-codex-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| krita-codex-mcp (this skill)by cyyprezz | 78 | 10 | 2mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 85.7k | 12d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.9k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.4k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install krita-codex-mcp?
- Run
claude mcp add cyyprezz -- npx -y github:cyyprezz/krita-codex-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does krita-codex-mcp work with?
- It is written for Claude Code, Claude Desktop and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is krita-codex-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is krita-codex-mcp still maintained?
- The repository was last updated about 2 months ago, so krita-codex-mcp is actively maintained.
Skill content
View source on GitHubKrita Codex MCP Server
<!-- mcp-name: io.github.cyyprezz/krita-codex-mcp -->Control Krita from OpenAI Codex through a secure local Model Context Protocol (MCP) server for Windows.
PyPI package · GitHub releases · Windows installation guide
A Windows-first local MCP server that lets Codex inspect and control Krita through a small,
authenticated bridge. The MCP process uses STDIO. The Krita Python plugin listens only on
127.0.0.1, validates a shared bearer token, and dispatches every Krita API call to Qt's main
thread.
This repository is a Windows-first integration with a capability-based runtime compatibility check. Krita 5.3.2.1 is a tested build, not a hard version requirement. The server deliberately exposes a small set of cohesive tools instead of a large collection of micro-tools:
| Tool | Purpose |
|---|---|
| krita_state | Active document, canvas/color space, recursive layer tree with UUIDs, active layer and current painting state |
| krita_preview | Whole-canvas or pixel-precise cropped PNG returned directly as MCP image content |
| krita_canvas | Sample colors; resize, scale, crop, rotate or flip; import editable raster layers |
| krita_edit | Create/refine/move selections; native copy, cut, paste, selection-to-layer, fill and clear |
| krita_document | Inspect runtime compatibility; list, create, open, activate, save and close documents |
| krita_layers | Read/edit the layer tree, safely reparent, and transform layers by stable UUID |
| krita_history | Read undo/redo state and execute bounded undo or redo steps |
| krita_brush | Read/set native brush state and search installed Krita presets |
| krita_paint_path | Pressure-aware line segments through Krita's native Node.paintLine API and active brush preset |
| krita_draw | Native preset-backed lines, open/closed paths, polygons, rectangles and ellipses |
| krita_color | KRA-backed project palettes, Krita palette swatches, color replacement and safe correction filters |
| krita_asset | Export layer PNGs plus Unity-oriented animation, tileset and named-region packages with direct previews |
| krita_save_export | Save KRA and export PNG beneath configured roots only |
Codex -> local STDIO MCP process -> authenticated 127.0.0.1 HTTP bridge
-> queued, timeout-aware Qt main-thread dispatch -> Krita Python API
The bridge has no arbitrary Python execution tool and no direct pixel painting fallback. Actual
painting, shapes, replacement fills and correction filters go through native Krita actions or
stroke APIs. If the running Krita build lacks a feature, krita_state and
krita_document(action="compatibility") report the affected tools. Calling that feature returns a
structured error; the bridge never silently switches to a different rendering backend.
Quick start
A first-time setup has two separate parts: the local bridge must be installed and enabled in Krita,
then Codex must be connected through either the marketplace plugin or a direct MCP configuration.
The codex plugin commands do not install or enable anything in Krita.
This requires a Windows Krita build that passes the live compatibility check and
uv/uvx on PATH.
- Close Krita, make sure the allowed directory already exists, and install the current release from PyPI:
uvx --from "krita-codex-mcp==0.2.0" `
krita-codex-install install `
--allowed-root "C:\Krita Work"
- In Krita, open Settings > Configure Krita > Python Plugin Manager and enable Krita Codex Bridge.
- Close and reopen Krita so the installed plugin and shared protocol package are loaded together.
- Run the same version's live check:
uvx --from "krita-codex-mcp==0.2.0" krita-codex-install check
- Require either
Ready for productive use.or the explicit limited-mode success message. - Choose exactly one Codex connection method below: the marketplace plugin or the direct MCP configuration.
Install the Codex plugin from GitHub
The repository includes a public, local-first Codex plugin. It bundles the guided krita-control
skill and starts the version-pinned PyPI MCP server through uvx; Krita and the authenticated bridge
continue to run only on the user's machine. Run these commands only after the Krita bridge has been
installed, enabled, restarted, and checked as described above. They register the GitHub marketplace
and install the Codex bundle; they do not modify the Krita installation or enable its Python plugin.
codex plugin marketplace add cyyprezz/krita-codex-mcp
codex plugin add krita-codex-mcp@krita-codex
Start a new Codex task after installation, then verify krita_state and krita_preview. Plugin users
should not also add a separate [mcp_servers.krita] block because the plugin already provides that
server. For later repository releases, run codex plugin marketplace upgrade krita-codex, rerun
codex plugin add krita-codex-mcp@krita-codex, and start another new Codex task.
Configure the MCP server directly
If you do not want to install the marketplace plugin, use this alternative only after the Krita
bridge has passed the live check. Preview the checkout-free, exactly version-pinned uvx Codex
block with krita-codex-install codex-config. Apply it only after explicit confirmation, restart
Codex, verify krita_state and krita_preview, and only then start normal work.
Install and update never close Krita. If the authenticated bridge is running, replacement is rejected before any installed files are changed and Krita must be closed manually. A busy local bridge port also stops the installer before replacement begins.
For a personal installation, use the user-level C:\Users\<you>\.codex\config.toml. This is the
recommended option because the server is then available to all local Codex tasks and Git
worktrees. The generated block uses uvx, has no checkout cwd, and pins the same exact
distribution version as the installed plugin. The installer only changes that file after showing
the full preview and receiving explicit confirmation. Unmarked or conflicting Krita entries are
never overwritten. Never commit personal configuration. See the
Windows installation guide for details.
The preflight checks local configuration, the complete installed hash manifest, wheel/plugin/ protocol versions, loopback port, authentication and the running Krita capability profile. The running plugin reports the distribution, protocol and Krita versions without adding an MCP tool. The check creates a disposable document, verifies a new paint layer, native drawing, Undo/Redo, transactional reparenting, direct PNG preview bytes and temporary KRA/PNG output beneath an allowed root. It restores the previously active document and removes every temporary file.
An unknown Krita version is accepted when all critical capabilities pass. Missing optional
features produce limited warnings naming the affected MCP tools; missing projection, persistence,
stable layer-tree or document-lifecycle APIs remain critical. The same structured report is
available to Codex through krita_state, so it can avoid unavailable operations.
Capabilities and Krita limits
The current release supports native preset-backed painting and shapes, persistent document and
layer editing, selections, color operations, KRA/PNG output, and Unity-oriented animation,
tileset and named-region packages. Preview and asset operations return PNG images directly to the
MCP caller. Re-export preserves Unity .meta sidecars for stable generated filenames.
The tested Krita 5.3.2.1 build imposes several safety limits. Other builds are evaluated at runtime and may report different available features:
- Free layer scale, rotate, shear and crop operations are not native Undo commands. The bridge
creates a hidden backup layer and blocks a second direct transform until the KRA is saved,
closed and reopened.
checkpoint_reopen=truecan perform that round trip automatically. - Transform masks are limited to three per open document. Same-session mask mutation/removal and mixing mask and direct transform backends are blocked until Krita restarts.
Node.paintLinerequires integerQPointvalues, so incoming canvas coordinates are rounded at the native API boundary.- PNG export temporarily enables Krita batch mode so no format dialog can block the local bridge.
Timeouts and production guardrails
Timeouts are operation-specific across Codex, the MCP BridgeClient, the local HTTP bridge and
Qt's main-thread dispatcher:
| Operation class | Dispatcher timeout | |---|---:| | Reads and normal edits | 30 seconds | | Document open and checkpoint save | 120 seconds | | KRA/PNG, layer, animation, tileset and region exports | 180 seconds |
The recommended Codex tool_timeout_sec is 210 seconds so the MCP client can receive the bridge's
structured result. If a timed-out Qt operation is already running, operation_may_complete=true
is preserved and later calls receive BRIDGE_BUSY until Krita actually finishes.
Keep allowed_roots as narrow as practical, keep ordinary versioned or manual KRA backups, and
do not treat the bridge timeout as cancellation. The bridge is local-only and binds exactly to
127.0.0.1.
See Windows installation, tool behavior and limits, security, and the GitHub releases.
License
Released under the MIT License. Copyright (c) 2026 Nicklas Desens.
Related Skills
Agent-Reach
85.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.1kOpen-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
