blender-iso-mcp
Generates turnkey game engine manifests, spritesheets, and collision data for Babylon.js, enabling direct integration of isometric assets into Babylon.js projects.
Provides procedural 2:1 dimetric isometric scene generation, NPR cel-shading, avatar turnaround rendering, and game engine asset exports by controlling Blender through a WebSocket bridge.
Generates turnkey game engine manifests, spritesheets, and collision data for Three.js, enabling direct integration of isometric assets into Three.js projects.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@blender-iso-mcp Build a modular isometric dungeon tileset with NPR shading"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
blender-iso-mcp
Model Context Protocol bridge for 2:1 dimetric isometric NPR assets and virtual rooms in Blender
Procedural 2:1 dimetric isometric scene generation, non-photorealistic NPR cel-shading, avatar turnaround rendering, and game engine integration for Blender.
Quickstart · Features · Archetypes · Components · Installation · Client Setup · Tools Reference · Viewer · Specifications · Security
Quickstart
Three steps: install dependencies, start the Blender bridge, and connect your client.
1. Install Dependencies and Build
# Using pnpm (recommended)
pnpm install && pnpm run build
# Or using standard npm
npm install && npm run build2. Start Blender in Background Mode
# macOS
/Applications/Blender.app/Contents/MacOS/Blender --background --python scripts/blender_bridge_server.py
# Linux
blender --background --python scripts/blender_bridge_server.py
# Windows
blender.exe --background --python scripts\blender_bridge_server.py3. Configure Your Client
{
"mcpServers": {
"blender-iso": {
"command": "node",
"args": [
"dist/presentation/mcp/server.js"
],
"env": {
"BLENDER_HOST": "127.0.0.1",
"BLENDER_PORT": "9876"
}
}
}
}{
"mcp.servers": {
"blender-iso": {
"command": "node",
"args": [
"dist/presentation/mcp/server.js"
]
}
}
}agy mcp add blender-iso node dist/presentation/mcp/server.js{
"mcp": {
"servers": {
"blender-iso": {
"command": "node",
"args": ["dist/presentation/mcp/server.js"]
}
}
}
}Note: Ensure Blender runs with the bridge addon active before issuing commands through your client.
Related MCP server: blender-asset-mcp
Table of Contents
Features
Capability | Description |
2:1 Dimetric Camera Rig | Calibrated Euler rotation |
Procedural Room Synthesis | Automated virtual social lounges with ergonomic furniture, multi-tier platforms, and capacity metrics. |
Stylized NPR Cel-Shading | Palette-indexed non-photorealistic materials with defined silhouette outlines and zero sampling noise. |
Multi-Angle Avatar Pipeline | Eight-direction character turnarounds rendered in subpixel dimetric projection. |
2D Lighting Pass Decomposition | Automated extraction of Albedo, Normal 2D, Depth Map, and Shadow Mask for dynamic runtime shaders. |
Turnkey Game Engine Manifests | Direct integration files for Phaser, PixiJS, Three.js, Babylon.js, Excalibur, and Godot 4 TileSets. |
Subpixel Collision Diamonds | Mathematically exact 2:1 collision polygon coordinates, interactive seat registries, and waypoints. |
Enterprise OWASP Hardening | Strict path traversal defenses, null-byte filtering, loopback network binding, and execution timeouts. |
Universal Isometric Game Archetypes
While virtual lounges and social rooms serve as comprehensive architectural stress tests (validating complex occlusions, multi-tiered $Z$ platforms, and seating collisions), blender-iso-mcp is architected as an engine-agnostic 2:1 dimetric asset and world pipeline. It natively caters to any game genre operating within the dimetric 2:1 projection plane:
graph LR
MCP["blender-iso-mcp<br/>Parametric Engine"] --> A["Dungeon Crawlers & ARPGs<br/>(Diablo / Torchlight / Hades 2D)"]
MCP --> B["Turn-Based Tactical RPGs<br/>(FF Tactics / Tactics Ogre)"]
MCP --> C["Tycoons & City Builders<br/>(SimCity 2000 / Theme Hospital)"]
MCP --> D["Survival & Isometric Sandbox<br/>(Project Zomboid style)"]
MCP --> E["Modular Props & Vehicles<br/>(8-Angle Turnarounds)"]1. ARPGs & Procedural Dungeon Crawlers (Diablo / Torchlight Style)
Stone Tileways & Catacombs: Generate modular dungeon floors, stone masonry walls, wall arches, and underground stairs with discrete collision polygons.
Dynamic 2D Lighting Normal-Maps: Using
blender_iso_bake_passes, each tile and dungeon prop exports Albedo, Normal Map, Depth, and Shadow Mask passes. Web and native engines (Godot 4, Phaser, PixiJS) can illuminate 2D dungeon corridors with dynamic real-time torch light.
2. Turn-Based Tactical RPGs (Final Fantasy Tactics / Tactics Ogre Style)
Discrete Stepped Elevation Grids: The
WorldBlueprintEntityparses elevations0through9($Z = \text{digit} \times 0.25$), generating stepped cliffs, plateaus, and cardinal ramp slopes (^, v, <, >).Subpixel Diamond Collision: Every tile quadrant exports its exact mathematical centroid and diamond vertices, allowing tactical game engines to compute jumping range, projectile trajectory arcs, and line-of-sight without manual mapping.
3. Tycoons & Management Sims (SimCity 2000 / RollerCoaster Tycoon / Theme Hospital)
Modular Building Units: Combine perimeter walls, interior dividers, staircases, and functional props (counters, desks, chairs, technical stations) to synthesize custom facilities.
Topographical Grids: Create continuous rolling terrain with stepped elevations and multi-layered infrastructure.
4. Survival & Isometric Sandbox (Project Zomboid Style)
Reinforced Enclosures: Generate boarded windows, modular barricades, perimeter fences, and doorways with exact anchor pivots.
8-Direction Character Pipelines: The
blender_iso_create_avatarandblender_iso_render_turnaroundtools generate full 8-angle turnaround spritesheets for players, NPCs, zombies, and vehicles.
5. Architectural Non-Goals (Scope Boundaries)
To ensure optimal performance and specialized fidelity, the project maintains strict boundaries:
No Runtime 3D Meshes: The system never exports heavy 3D geometry (GLTF/FBX) for runtime rendering; it produces optimized 2D spritesheets, atlas manifests, and collision coordinates.
No Photorealistic Ray-Tracing: Tailored for non-photorealistic stylized rendering (Cel-Shading, Toon, and Pixel Art) with zero sampling noise.
No Perspective Cameras: Operates strictly within the calibrated dimetric 2:1 orthographic camera rig ($\arctan(0.5) \approx 26.565^\circ$).
Components
TypeScript MCP Server (
server/presentation/mcp/server.ts) — A Model Context Protocol server exposing typed JSON-RPC tools over standard I/O.Native Blender Addon (
addon/__init__.py) — An asynchronous WebSocket server running inside Blender that executes parametric modeling and rendering.Domain Core (
server/domain/) — Pure business logic, 2:1 dimetric projection mathematics, immutable value objects, and collision diamond calculations.Infrastructure Storage and Exporters (
server/infrastructure/) — Multi-engine export adapters, safe path sanitization, and canonical directory resolution.Interactive Web Viewer (
examples/interactive-viewer/index.html) — A standalone HTML5 canvas application with real-time 2:1 depth sorting and click-to-walk navigation.
Installation
Supported Versions
Technology | Supported Version Range | Recommended | Details |
Blender |
|
| Native Extension System ( |
Node.js |
|
| Full native support for ES Modules, |
Package Manager |
|
|
|
MCP Client Runtime |
| Any system with | No package manager required at runtime. Claude Desktop, Cursor, and Antigravity execute |
Build Steps
Clone the repository and compile the TypeScript source files.
# Via SSH (recommended)
git clone git@github.com:fr4ncisx/blender-mcp.git
cd blender-mcp
# Or via HTTPS
git clone https://github.com/fr4ncisx/blender-mcp.git
cd blender-mcp
# With pnpm (recommended)
pnpm install
pnpm run build
# Or with standard npm
npm install
npm run buildConfiguration
The server resolves runtime parameters dynamically with zero required setup, following a deterministic four-tier precedence hierarchy:
$$\text{CLI Flags} \succ \text{Process Environment (MCP Client JSON)} \succ \text{Local \texttt{.env}} \succ \text{Zero-Config Defaults}$$
Precedence Hierarchy & Methods
CLI Flags (Highest Priority): Pass flags directly via the client
argsarray or terminal:"args": [ "dist/presentation/mcp/server.js", "--port=9880", "--host=127.0.0.1" ]Process Environment (MCP Client JSON): Injected per-process by your AI client (Claude Desktop, Cursor, VS Code) without polluting your host operating system:
"env": { "BLENDER_PORT": "9876", "BLENDER_HOST": "127.0.0.1" }Local
.envFile: Place a.envfile in the project root for local testing or custom deployment profiles:BLENDER_PORT=9876 BLENDER_HOST=127.0.0.1 BLENDER_TIMEOUT_MS=20000Zero-Config Auto-Detection (Default): If no configuration is provided, the server defaults to
127.0.0.1:9876and automatically discovers the Blender executable from systemPATHand standard installation directories across Windows, macOS, and Linux.
Configuration Reference
Option (CLI Flag) | Short Flag | Environment Variable | Default | Description |
|
|
|
| WebSocket port for bridge communication with Blender. |
|
|
|
| Loopback IP address for secure local WebSocket transport. |
|
|
| System Auto-Detect | Absolute path to the Blender executable (versions 3.6 LTS to 5.2+ LTS). |
|
|
| None | Shared secret token for WebSocket authentication when isolation is required. |
| None |
|
| Communication timeout in milliseconds to prevent hung client calls. |
Client Setup
Add the server definition to claude_desktop_config.json:
{
"mcpServers": {
"blender-iso": {
"command": "node",
"args": ["dist/presentation/mcp/server.js"],
"env": {
"BLENDER_HOST": "127.0.0.1",
"BLENDER_PORT": "9876"
}
}
}
}Configure the MCP server in Settings → Features → MCP:
Name:
blender-isoType:
commandCommand:
node dist/presentation/mcp/server.js
Register the server using the command-line interface:
agy mcp add blender-iso node dist/presentation/mcp/server.jsInstall the Model Context Protocol extension and add the entry to .vscode/settings.json:
{
"mcp.servers": {
"blender-iso": {
"command": "node",
"args": ["dist/presentation/mcp/server.js"]
}
}
}Tools Reference
The server exposes nine declarative tools through the Model Context Protocol:
Tool | Parameters | Description |
|
| Generates a complete virtual room diorama with furniture, lighting, and web engine integration manifests. |
|
| Generates a stylized humanoid voxel character with eight-direction turnaround sprite renders. |
|
| Produces an atomic 2:1 isometric asset catalog with collision diamonds and engine manifests. |
|
| Configures the dimetric camera rig, transparent background, and sun lighting in the active scene. |
|
| Generates parametric 3D isometric tile geometry based on standard dimetric grid templates. |
|
| Applies a cel-shaded non-photorealistic material with custom color bands and contour lines. |
|
| Renders multi-angle orthographic sprites and generates engine-ready texture atlas manifests. |
|
| Extracts 2D render passes including Albedo, Depth, Normal 2D, and Shadow Mask for runtime shaders. |
| None | Returns topological telemetry, bounding box dimensions, and object hierarchies from the active scene. |
Example Prompts
Intent | Prompt |
Build an Art Déco social lounge | "Build an Art Déco social lounge with an elevated bar platform, velvet couches, and a central staircase." |
Create a custom avatar | "Create an isometric humanoid avatar with brown hair, a teal shirt, and dark trousers in eight directions." |
Bake an asset catalog | "Bake an atomic isometric asset library with sixty-four pixel width tiles and collision manifests." |
Extract lighting passes | "Extract 2D normal and depth passes for the active room diorama." |
Interactive Viewer
The repository includes a playable HTML5 canvas client located in examples/interactive-viewer/index.html.
Open
examples/interactive-viewer/index.htmlin any modern web browser.Click any location on the diorama to navigate. The client converts screen coordinates into 2:1 dimetric grid cells using inverse projection.
Observe real-time depth sorting. The avatar walks behind elevated bar counters and in front of rear walls based on its scalar depth value.
Toggle between rendered scenes using the room selector menu in the header.
Mathematical Specifications
Dimetric 2:1 Projection
The system enforces true 2:1 dimetric projection without perspective distortion:
Camera Rotation: Euler angles $X = 60.0^\circ, Y = 0.0^\circ, Z = 45.0^\circ$.
Projection Slope: $\arctan(0.5) \approx 26.565^\circ$.
Orthographic Scale: $\text{scale} = \sqrt{2} \cdot \text{unit_size}$.
Tile Aspect Ratio: $\text{height} = \lfloor \text{width} / 2 \rfloor$.
Subpixel Collision Diamonds
For a tile with width $W$ and height $H$, the four diamond vertices are calculated in clockwise order:
$$\left(\frac{W}{2}, 0\right), \quad \left(W, \frac{H}{2}\right), \quad \left(\frac{W}{2}, H\right), \quad \left(0, \frac{H}{2}\right)$$
Dynamic Depth Sorting
Sorting order between overlapping isometric sprites uses screen vertical position adjusted for elevation:
$$\text{depth} = \text{screenY} + (\text{elevation} \cdot 1000)$$
Security & OWASP Hardening
Path Traversal Defense: All output directories and file paths pass through
SafePathSanitizer. Untrusted paths containing null bytes\0, directory traversal sequences.., or targets outside the project boundary trigger aSecurityError.Loopback Isolation: The Blender WebSocket bridge binds exclusively to
127.0.0.1. Remote network interfaces cannot access the socket server.Request Timeouts: Calls between the MCP server and Blender enforce a 15-second timeout, preventing denial of service lockups during long renders.
Troubleshooting
Problem | Fix |
Connection refused on port | Start Blender in background mode with the addon active before connecting your MCP client. |
Blender executable not found | Define |
Path traversal rejected with | Provide a relative path inside the repository root or update permitted roots in |
Transparent background renders black | Call |
Avatar sprite renders flipped | Verify that the target angle matches the cardinal order defined in |
Feedback
File bug reports and feature requests in the issue tracker.
Pull requests must pass the test suite with strict TypeScript compilation.
License
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for the full license text.
Disclaimer
This project is an independent open-source tool. Blender is a registered trademark of the Blender Foundation. This tool is not affiliated with or endorsed by the Blender Foundation.
Precision 2:1 dimetric assets for web games and virtual worlds.
Available Tools
10 toolsblender_iso_apply_npr_materialC
Applies stylized non-photorealistic pixel/toon shading and palette quantization to objects
Inputs: palette (required), targetObjectName (required), pixelSnap, outlineWidth, +2 more.
blender_iso_bake_2d_passesC
Bakes secondary 2D render passes (albedo, normal_2d, depth, shadow_mask) for isometric sprites
Inputs: passes (required), objectName (required), baseName, tileWidth, +1 more.
blender_iso_bake_assetsC
Bakes 2:1 dimetric isometric asset definitions, mathematical collision diamonds, and engine manifests
Inputs: tileWidth, archetypes, outputDirectory, manifestFileName.
blender_iso_build_roomC
Declaratively builds a production-grade 2:1 dimetric isometric virtual avatar lounge with fine-density tiles, translucent glass shaders, ergonomic furniture with suspended legs, 50+ avatar capacity, and exports for web game frameworks (Phaser, Pixi, ThreeJS, Babylon, Excalibur)
Inputs: depth, width, palette, tileSize, +5 more.
blender_iso_create_avatarC
Procedurally builds and renders a 2:1 dimetric NPR stylized humanoid avatar in Blender with customizable palette, beveled hair, layered clothing, and generates 8-direction turnaround sprites
Inputs: name, scale, baseName, hairColor, +8 more.
blender_iso_create_tileC
Generates 3D isometric tile geometry according to standard dimetric grid templates
Inputs: tileType (required), name, unitSize, unitHeight, +2 more.
blender_iso_inspect_sceneA
Inspects current Blender scene structure, objects, camera configuration, and active materials
Inputs: includeCameras, includeObjects, includeMaterials.
blender_iso_render_turnaroundC
Renders multi-angle isometric turnaround sprites and generates engine-ready atlas files
Inputs: objectName (required), baseName, tileWidth, directions, +2 more.
blender_iso_setup_sceneC
Configures Blender camera and scene for 2:1 dimetric isometric rendering
Inputs: unitSize, tileWidth, clearScene, colorManagement, +1 more.
blender_iso_synthesize_worldB
Synthesizes a full-scale 2:1 dimetric isometric world from a semantic ASCII or JSON blueprint grid with procedural geometry, stairs, furniture, collisions, and web manifests
Inputs: blueprint (required), name, seed, theme, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct stage of the isometric pipeline—scene setup, geometry creation, material application, rendering, and baking. Even seemingly similar tools like create_tile, build_room, and synthesize_world are clearly scoped to single tiles, rooms, and full worlds respectively.
All tools use the consistent blender_iso_ prefix followed by a clear verb_noun snake_case pattern. Minor variations like bake_2d_passes versus bake_assets still follow the same structural convention, so naming is highly predictable.
10 tools is within the optimal range and each covers a dedicated function in the asset-generation workflow. There are no redundant or filler tools, and the count matches the server's specialized Blender isometric purpose.
The set covers the full pipeline from scene configuration, geometry creation, NPR materials, rendering turnarounds, and baking passes and manifests. A minor gap is the absence of explicit update/cleanup operations, but inspect_scene provides read-only oversight and the core workflow has no dead ends.
Maintenance
Related MCP Connectors
AI game assets for agents: consistent sprites, 2D animations, tiles, maps, music and engine exports.
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Gamedev tools for AI agents: level design, renders, sprites, GLB optimizer. Pay per call with x402.
Generate game assets with AI for 2D games, including sprites, tilesets, and animations.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables AI agents to create style-locked game projects and generate sprites, animations, tiles, maps, music, 3D models, and VFX, then export engine-ready packages for Godot, Phaser, Unity, GameMaker, or RPG Maker MZ.MIT- AlicenseCqualityBmaintenanceEnables AI agents to build game assets in Blender by modeling, lighting, rendering previews to inspect and correct, validating against engine budgets, and exporting to GLB/FBX.126MIT
- AlicenseBqualityCmaintenanceEnables MCP-capable coding agents to act as a deterministic technical art director and multi-engine pipeline builder, locking AI-generated 2D/2.5D game assets to consistent camera angles, palettes, rigs, atlases, and exports across Blender, ComfyUI, UniRig, LibreSprite, Godot 4, Unity, and Unreal Engine 5.24MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create, paint, validate, and export isometric Tiled maps with rooms, corridors, doors, traps, chests, and spawns as .tmj files ready to open in Tiled.1MIT