loading…
Search for a command to run...
loading…
An MCP server that enables AI assistants to control Blender through 108 specialized tools for 3D modeling, animation, and rendering. It provides a secure, threa
An MCP server that enables AI assistants to control Blender through 108 specialized tools for 3D modeling, animation, and rendering. It provides a secure, thread-safe interface to execute validated operations in Blender using natural language commands.
The most intuitive and efficient MCP Server for Blender. Control Blender entirely through AI assistants like Claude — create 3D models, set up scenes, animate, render, and more, all through natural language.
blend-ai goes beyond tool exposure: it guides the LLM to produce professional 3D results through expert prompts, proven workflows, visual feedback, and mesh quality analysis.
This was created via Claude Code using the Haiku model and 20 random reference images. It took 5 minutes:

execute_blender_code blocks dangerous imports (os, subprocess, socket, etc.) and dangerous builtins (exec, eval, open) while allowing safe Blender operationsload_post handler and reset command127.0.0.1bpy. Nothing to pip install inside Blendergit clone https://github.com/HoldMyBeer-gg/blend-ai.git
cd blend-ai
uv pip install -e .
.zip fileBlender 4.0 / 4.1 users: Not supported. blend-ai ships as a Blender Extension, which requires Blender 4.2 (LTS) or later. Please upgrade Blender from blender.org/download.
If you're developing on blend-ai, symlink the addon folder into Blender's user extensions directory instead. Replace <ver> with your Blender version (e.g. 4.2, 5.1).
# macOS
ln -s "$(pwd)/addon" ~/Library/Application\ Support/Blender/<ver>/extensions/user_default/blend_ai
# Linux
ln -s "$(pwd)/addon" ~/.config/blender/<ver>/extensions/user_default/blend_ai
# Windows (run as admin)
mklink /D "%APPDATA%\Blender Foundation\Blender\<ver>\extensions\user_default\blend_ai" "%cd%\addon"
Then enable the extension in Blender preferences under Get Extensions > User.
blend-ai ships as a Blender Extension (blender_manifest.toml), installed under Edit > Preferences > Get Extensions. Python caches imported modules, so replacing files in-place without a restart can leave stale handlers registered.
blend_ai modules)..zip via the ▾ > Install from Disk... menu and enable it.For the developer symlink install, upgrading is just git pull followed by a full Blender restart — do not rely on reloading scripts, because the background TCP server thread survives reloads.
In Blender's 3D Viewport, open the N-panel (press N), find the blend-ai tab. Set your preferred port (default: 9876), then click Start Server.
claude mcp add blend-ai -- uv run --directory /path/to/blend-ai blend-ai
Replace /path/to/blend-ai with the actual path to your clone. Make sure Blender is running with the addon server started before using the tools.
Usage:
$ claude
> Create a red metallic sphere on a white plane with three-point lighting
> Add a subdivision surface modifier to the sphere and set it to level 3
> Analyze the mesh quality of the sphere and fix any issues
> Set up a turntable animation and render it to /tmp/turntable/
Add blend-ai to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"blend-ai": {
"command": "uv",
"args": ["run", "--directory", "/path/to/blend-ai", "blend-ai"]
}
}
}
Replace /path/to/blend-ai with the actual path to your clone.
Restart Claude Desktop. The Blender tools will appear in the tool list.
blend-ai is a standard MCP server using stdio transport. Any MCP-compatible client can connect by running the server directly:
uv run --directory /path/to/blend-ai blend-ai
# or: python -m blend_ai.server
The exact config location and format vary by client (typically JSON or TOML under ~/.<client>/). The command is uv and the args are ["run", "--directory", "/path/to/blend-ai", "blend-ai"].
The server communicates over stdin/stdout using the MCP protocol. It connects to Blender's addon over TCP on 127.0.0.1:9876 (or your configured port).
blend-ai includes 12 MCP prompts that guide the LLM toward professional-quality results:
| Prompt | What It Teaches |
|---|---|
blender_best_practices |
Bool Tool preference, mesh editing patterns, modifier workflow |
topology_best_practices |
Quad topology, edge flow, poles, n-gon cleanup, face density |
scale_reference_guide |
Real-world dimensions for 8 common objects, unit system setup |
lighting_principles |
Three-point lighting, HDRI, EEVEE vs Cycles, color temperature |
studio_lighting_setup |
6-step studio lighting workflow with specific energy values |
character_basemesh_workflow |
7-step character base mesh from cube with mirror + subdivision |
material_workflow_guide |
PBR materials, Principled BSDF recipes, texture color spaces |
auto_critique_workflow |
Visual feedback loop — when to screenshot, what to check, token budget |
product_shot_setup |
Professional product shot setup guide |
character_base_mesh |
Character modeling guide |
scene_cleanup |
Scene organization workflow |
animation_turntable |
Turntable animation setup |
| Domain | Tools | Highlights |
|---|---|---|
| Scene | 6 | Get scene info, set frame range, manage scenes, suggest helpful extensions |
| Objects | 14 | Create primitives, duplicate, parent, join, visibility, origin, convert, auto-smooth |
| Transforms | 6 | Position, rotation (euler/quat), scale, apply, snap |
| Modeling | 13 | Modifiers, booleans, subdivide, extrude, bevel, loop cut, bridge edge loops |
| Mesh Editing | 16 | Inset, fill, grid fill, mark seam/sharp, normals, dissolve, knife project, spin, crease |
| Mesh Quality | 1 | Analyze mesh defects: non-manifold, loose verts, zero-area faces, duplicates |
| Bool Tool | 4 | Auto union, difference, intersect, slice (via Blender's Bool Tool addon) |
| Materials | 15 | Principled BSDF, textures, blend modes, shader node graph (add/connect/remove nodes, including 5.1 Raycast node) |
| Lighting | 7 | Point/sun/spot/area lights, HDRIs, light rigs, shadows |
| Camera | 6 | Create, aim, DOF, viewport capture, active camera |
| Animation | 8 | Keyframes, interpolation, frame range, follow path |
| Rendering | 7 | Engine, resolution, samples, output format, render, EEVEE light path intensity |
| Curves | 10 | Bezier/NURBS/path, 3D text, convert, reverse, handle types, cyclic, subdivide |
| Sculpting | 8 | Brushes, remesh, multires, symmetry, dynamic topology, stroke_method |
| UV Mapping | 4 | Smart project, unwrap (ANGLE_BASED, CONFORMAL, SLIM), projection, pack islands |
| Physics | 9 | Rigid body, cloth, fluid, particles (velocity, rendering, delete), bake |
| Geometry Nodes | 5 | Create node trees, add/connect nodes, set inputs |
| Armature | 6 | Bones, constraints, auto weights, pose |
| Annotations | 5 | Annotation layers and strokes (5.1 Annotation API) |
| Collections | 4 | Create, move objects, visibility, delete |
| File I/O | 5 | Import/export (FBX, OBJ, glTF, USD, STL...), save/open |
| Viewport | 3 | Shading mode, overlays, focus on object |
| Screenshot | 1 | Fast viewport capture (OpenGL) or full render, base64 output |
| Code Exec | 1 | Sandboxed Python execution in Blender (dangerous imports blocked) |
AI Assistant <--stdio/MCP--> blend-ai server <--TCP socket--> Blender addon <--bpy--> Blender
src/blend_ai/): Python process using the mcp SDK. Exposes tools, resources, and prompts over stdio. Validates all inputs before forwarding to Blender.addon/): Runs a TCP socket server inside Blender on a background thread. Commands are queued and executed on the main thread via bpy.app.timers to respect Blender's threading model.bpy.app.handlers. During renders, the server immediately returns a "busy" status. Automatically recovers from crashed renders via load_post handler. Can be force-reset via MCP command.127.0.0.1 — never exposed to the network.execute_blender_code blocks 25 dangerous imports (os, subprocess, socket, shutil, sys, ctypes, importlib, pathlib, signal, multiprocessing, pickle, shelve, tempfile, http, urllib, ftplib, smtplib, xmlrpc, code, codeop, compileall, webbrowser, antigravity, turtle, tkinter) and removes dangerous builtins (__import__, exec, eval, compile, open, globals, locals, vars, input, breakpoint, exit, quit, help, memoryview). Safe Blender imports (bpy, bmesh, mathutils, math, json) are allowed.use_scripts_auto_execute to prevent script injection from imported files. File extensions are checked against allowlists.select_linked is available.# Install with dev dependencies
uv pip install -e ".[dev]"
# Run tests (1190 tests)
uv run --extra dev pytest
# Run tests with coverage
uv run --extra dev pytest --cov=blend_ai
# Lint
ruff check src/ tests/
# Format
ruff format src/ tests/
blend-ai/
├── src/blend_ai/ # MCP server
│ ├── server.py # FastMCP entry point
│ ├── connection.py # TCP client to Blender (with busy-retry)
│ ├── validators.py # Input validation
│ ├── tools/ # 24 tool modules (164 tools)
│ ├── resources/ # MCP resources (scene, objects, materials)
│ └── prompts/ # 12 expert prompt templates
├── addon/ # Blender addon (zero external deps)
│ ├── blender_manifest.toml # Blender 4.2+ Extension manifest
│ ├── __init__.py # bl_info (legacy fallback) + register/unregister
│ ├── server.py # TCP socket server (SO_KEEPALIVE)
│ ├── dispatcher.py # Command routing + allowlist
│ ├── thread_safety.py # Main-thread execution queue
│ ├── render_guard.py # Render state tracking + crash recovery
│ ├── ui_panel.py # N-panel UI (start/stop + port config)
│ └── handlers/ # 23 handler modules
└── tests/ # 1186 unit tests
AGPL-3.0-or-later. See LICENSE.
Copyright © 2026 jabberwock.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"blend-ai": {
"command": "npx",
"args": []
}
}
}