kata-mcp
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.
Kata
Cut, print, compose and review: an on-device design toolkit for people and agents.
Kata takes a photo and gives you a clean cutout of its subject, prints it in your brand's inks like a screen print, lays it out as a poster from a JSON scene, and reviews the result for the mistakes people notice: type running into the picture, a logo that sinks into its background, faces printed black, an elbow printed in the ground colour so it vanishes, a scanned paper texture putting a fold line through everything.
It runs on your machine and nothing is uploaded. The same engine works three ways: a command-line tool, a local web page, and an MCP server. Claude, Cursor or any MCP client can drive the whole workflow, and the design judgement ships with it as skills.
Kata is Swahili for "cut".
photo ─► segment ─► mask edits ─► print in brand inks ─► compose ─► review ─► export
BiRefNet, explicit, tonal / spot / line, JSON scene, collisions, legibility,
hints, undoable two-layer scenes resvg logo size, safe areas
cachedInstall
Windows: download kata-<version>-x86_64-pc-windows-msvc.zip from
Releases, unzip it, and run:
powershell -ExecutionPolicy Bypass -File install-windows.ps1That installs Kata to %LOCALAPPDATA%\Programs\Kata, adds kata to your PATH,
puts Kata in the Start menu (it opens the local web page), and registers
an uninstaller in Settings → Apps.
macOS and Linux: download the archive for your platform, unpack it, and put
the folder on your PATH. Every archive includes the ONNX Runtime library Kata
loads.
Then fetch a segmentation model once. Kata checks it against its SHA-256:
kata models download birefnet-lite-fp32 # 224 MB, the fast CPU choice
kata status # what Kata foundModel | Size | Notes |
| 224 MB | Fast on any CPU |
| 115 MB | Fast, needs fp16 support |
| 490 MB | Best edges, slowest |
Any BiRefNet-style .onnx file also works: pass --model path/to/model.onnx
or set KATA_MODEL=path.
Build from source
Needs Rust 1.85 or newer.
cargo build --release -p kata-cli -p kata-web
python scripts/fetch-onnxruntime.py target/release # ONNX Runtime beside the binaryRelated MCP server: mini-creative-toolkit
Command line
# A cutout. In a busy street, tell it where the subject is.
kata cut matatu.jpg --box 100,615,500,345 -o matatu-cut.png --mask matatu-mask.png
# Print it in brand inks: the street quiet, the matatu loud.
kata print matatu.jpg --mask matatu-mask.png \
--spec examples/print-subject.json --background-spec examples/print-street.json \
--ground "#F9ECDD" -o matatu-print.png
# Lay out a poster and review it. Exits with code 1 if the review finds errors.
kata compose examples/scene.example.json -o poster.png --target ig-portrait
# Checks and helpers
kata inspect --mask matatu-mask.png
kata palette logo.png
kata texture -o paper.png --size 1080x1350
kata texture --check scanned-paper.png
kata export poster.png --targets ig-square,ig-story,x-postThe first cut of a photo runs the model. After that the mask comes from a cache keyed by the image's bytes, the model and the hint, so iterating on a design is instant.
Agents (MCP)
claude mcp add kata -- kata mcp --allow "$PWD"For Claude Desktop, Cursor and other clients, see docs/mcp.md.
There are 13 tools: kata_status, kata_models_download, kata_segment,
kata_refine_mask, kata_cutout, kata_print, kata_palette, kata_brand,
kata_texture, kata_compose, kata_inspect, kata_view and kata_export.
Every output gets a short id (
art_3_cutout) that later calls can use instead of a path.kata_viewlets the agent zoom into any region, boost contrast to find hidden lines, or show transparency on a checkerboard. Looking closely is the step that matters most in design.The five skills are also served as resources, along with an example brand file and scene. There is one prompt,
poster.
Skills
skills/ holds the workflow as
Agent Skills:
kata-poster: from brief to posting plan. One concept per poster, copy in the audience's own words, layout, logo rules, series and cadence.
kata-cutout: trust the model's mask, and edit only what is wrong.
kata-print: choosing inks by role, tonal or spot, faces that stay readable.
kata-review: every check, what it means, and what to look at yourself.
kata-brand: building
brand.jsonfrom an app's theme, a logo and past designs.
To use them without the MCP server, copy them into .claude/skills/ (or your
agent's skills folder). Brand specifics live in a brand file, not in the
skills, so one Kata serves every project. See
examples/brand.example.json.
Documentation
docs/mcp.md: connecting agents, the tools, files and safety
docs/scene.md: the poster scene format and the review
docs/mask-ops.md: hints and mask edits
docs/print.md: print specs
How it's built
Crate | What it is |
| The algorithms: masks and edits, guided-filter matting, Lab colour, tonal and spot printing, line plates, paper, crease detection, inspections, export targets. No I/O; builds for WebAssembly. |
| ONNX Runtime (loaded at run time), checked model downloads, the mask cache, scene composition with resvg, and the review. |
| The MCP server: tools, resources, prompts, path sandbox and artifact ids. |
| The |
| A local web page for quick cutouts, served on loopback only. |
Kata looks for ONNX Runtime in this order: KATA_ORT_DYLIB, ORT_DYLIB_PATH,
next to the kata binary, a lib/ folder beside it, then Kata's data folder.
kata status prints every path it tried.
Privacy and safety
Images never leave your machine. The only network access is downloading a model you ask for, which is checked against the publisher's SHA-256.
The MCP server reads and writes only inside its work folder and the folders you pass with
--allow.The models (BiRefNet) are MIT licensed.
Licence
Dual-licensed under MIT or Apache-2.0, at your option.
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
Edit images over MCP with object removal, background removal, and guided generative edits.
Hosted MCP server for AI photo editing: nothing to install, no desktop photo editor needed.
Cutout, upscale, erase and restore photos over MCP. 10 free credits/day (60/month).
AI-cull, edit and export RAW photos locally with the imagic desktop app, from any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceLocal image processing MCP server providing background removal, stock media search, resize, format conversion, and collage creation.5MIT
- AlicenseAqualityBmaintenanceEnables local, CPU-only image and video manipulation—such as background removal, resizing, format conversion, thumbnails, GIF creation, and trimming—through an MCP server without API keys, GPU, or paid dependencies.8MIT
- FlicenseNot gradedqualityCmaintenanceEnables text-to-image generation, image editing, and local background removal through MCP tools exposed over HTTPS, with automatic model fallback and no client-side API key.-
- AlicenseBqualityBmaintenanceEnables local, offline batch image processing through MCP tools for resizing, converting, compressing, watermarking, and stripping EXIF metadata from files or folders.6MIT