kenshape-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.
kenshape-mcp
An MCP server that lets AI assistants such as Claude create low-poly 3D art for
Kenney Shape. The assistant draws on Kenney Shape's tile canvas, looks at
rendered previews of the extruded model, and saves .kenshape projects or exports GLB, OBJ, SVG and PNG files.

A rocket built with a single draw call. The preview shows the flat drawing, a 3D view, a side view and a top view.
Not affiliated with Kenney. This is an unofficial companion tool. It needs your own purchased copy of Kenney Shape: the tile shapes are read from your install when the server starts, and nothing from the program is included in this repository.
Features
Draws like a person would. Rectangles, lines, ellipses, flood fill, mirroring, and an ASCII
gridop that places detailed pixel art in one call.Covers every tile property. All 22 tile shapes and 4 rotations, per-tile depth (thickness), back-face color and back depth.
Shows its work. It renders a PNG preview sheet (drawing, 3D, side and top views) so the assistant can check the model and fix it.
Exports models. GLB (glTF 2.0) and OBJ+MTL with one material per palette color, plus SVG like Kenney Shape's vector export.
Produces real Kenney Shape projects. It saves
.kenshapefiles the program opens, and can launch Kenney Shape with a project for its other exporters (FBX, Collada, VOX, Minecraft, GIF).Builds models the way Kenney Shape does. Each tile is 1×1 unit and is extruded
depthunits around the center plane, scaled by the project's depth multiplier.
Related MCP server: Meshy MCP Server
Requirements
Node.js 18 or newer
Kenney Shape (Windows build tested), bought from kenney.nl
An MCP client: Claude Code, Claude Desktop, or any other client that supports stdio servers
Installation
git clone https://github.com/CuteTechGuy/kenshape-mcp.gitcd kenshape-mcpnpm installThen point the server at your copy of the program with KENSHAPE_EXE. If you clone this repository into the
Kenney Shape folder, next to Kenney Shape.exe, the server finds the program without it.
Variable | Default | Meaning |
|
| Path to |
|
| Default folder for saved projects and exports |
Claude Code
Add a .mcp.json to your project, or put the same block in your user settings:
{
"mcpServers": {
"kenshape": {
"command": "node",
"args": ["C:/path/to/kenshape-mcp/src/index.js"],
"env": {
"KENSHAPE_EXE": "C:/path/to/Kenney Shape/Kenney Shape.exe",
"KENSHAPE_DIR": "C:/path/to/output"
}
}
}
}Claude Desktop
Add the same kenshape entry under mcpServers in claude_desktop_config.json, then restart the app.
Usage
Ask your assistant for a model, for example:
Make a 16×16 treasure chest in Kenney Shape: dark wood, gold trim, a thick lid. Show me a preview, then export a GLB.
A typical session:
new_project: start a 16, 24, 32 or 64 tile canvas.list_shapes: optional; learn the tile shapes and their rotations.draw: lay out the art, usually with onegridop, thenround_cornersormirror.render_preview: look at the result and fix anything wrong.export_modelorsave_project: write.glb,.obj,.svg,.pngor.kenshape.
Tools
Tool | Description |
| The tile shapes, with ASCII pictures of each rotation |
| Create an empty project with an optional custom palette (up to 32 colors) |
| Load an existing |
| Run drawing operations (see below) |
| ASCII view of colors, depths or shapes |
| Title, depth multiplier, palette |
| PNG preview: a 2×2 sheet, or one view at any yaw and pitch |
| Save as |
| Export |
| Save the project and open it in Kenney Shape |
| Projects currently held in memory |
Drawing operations
Coordinates are tile positions: x points right, y points down, and (0, 0) is the top-left tile.
Op | Fields | Effect |
|
| Paint single tiles |
|
| Rectangle (filled by default) |
|
| Line between two tiles |
|
| Ellipse inside a bounding box |
|
| Flood-fill the connected area of the same color |
|
| ASCII art: each character maps to a brush; |
|
| Copy one half onto the other, with shapes mirrored correctly |
|
| Turn outer corners of filled areas into corner shapes |
|
| Move the whole canvas, wrapping at the edges |
|
| Swap one palette color for another |
| none | Empty the canvas |
Each op can also take brush fields: color (a palette index or #RRGGBB; -1 erases), shape (a name or index),
angle (0–3), depth (0–8), colorBack, depthBack and erase. A brush without color only changes tiles that
are already filled, which is how you paint depth or shapes onto existing art.
{
"op": "grid",
"rows": [
"..RR..",
".RWWR.",
".RWWR."
],
"legend": {
"R": { "color": 9, "depth": 4 },
"W": { "color": 15, "depth": 5, "shape": "cornerRounded", "angle": 0 }
}
}The tool reference covers every option, and the file format notes
describe .kenshape files. examples/rocket.mjs builds the rocket shown above.
How it works
src/assets.jsreads the shape definitions (names, mirror partners and outline paths) from your Kenney Shape install's Unity asset files when the server starts.src/geometry.jsturns each tile's outline into a polygon, triangulates it and extrudes it into a flat-shaded mesh. It skips walls hidden between neighboring tiles.src/render.jsis a small software rasterizer that writes PNGs with no native dependencies.src/export.jswrites GLB, OBJ+MTL and SVG files.
Exported models are centered on the origin, with +Y up and the front facing +Z, and one unit per tile.
Development
npm testThe smoke test starts the server over stdio, draws a model, exports every format and reloads the saved project. It needs a Kenney Shape install. See CHANGELOG.md for release notes.
License
MIT © İbrahim Alkan. Kenney Shape is © Kenney and has its own license; this project does not include or redistribute any part of it.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
This server cannot be deployed
Maintenance
Related MCP Connectors
Lets AI assistants draw: logos, posters, illustrations and scenes, as editable SVG and PNG.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Generate 3D models from images or text with AI, then retexture or convert them to STL, 3MF or OBJ.
Create, edit, render, save, and export voxel models with interactive 3D previews.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables creating, modifying, and managing MagicaVoxel .vox files through natural language, with tools for shape generation, patterns, color operations, and optional ML-powered suggestions.33MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, manage, and download 3D models, textures, images, rigged characters, and animations through natural conversation using the Meshy AI platform.23,798 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Blockbench for Minecraft 3D modeling, including project creation, cube placement, UV layout, and texture painting.GPL 3.0
- AlicenseAqualityDmaintenanceEnables AI assistants to procedurally generate, edit, quantize, and export 2D retro pixel art textures and tilesets for game development, with built-in palettes, dithering, and pixel-level manipulation tools.14MIT