Skip to main content
Glama
README.md
# Blender MCP Server

Give an MCP client access to Blender. Inspect the open scene, build and edit objects and materials, animate, render, export, and save a project through typed tools. The server runs over stdio and connects to an authenticated add-on in Blender.

![Midnight Observatory, a Cycles render with a copper-rimmed radio telescope and illuminated instrument platform](docs/images/observatory-render.jpg)

[Reproduce the Midnight Observatory scene](examples/demos/04_midnight_observatory.py) · [More demos](docs/demos/README.md)

## Get started

Install Python 3.10+ and Blender 3.6+. Clone the repository and run the commands from its root.

On macOS or Linux, run setup and start your client.

```sh
./scripts/setup.sh
./scripts/start.sh codex
```

Use `claude` for Claude Code or `none` to launch Blender by itself. Run `./scripts/stop.sh` to stop the launched Blender instance.

For a second Blender window, give it its own port. Each port has its own PID and log files, and `stop.sh` stops only that one:

```bash
BLENDER_MCP_PORT=9877 ./scripts/start.sh none
BLENDER_MCP_PORT=9877 ./scripts/stop.sh
```

Each MCP server process talks to one port, so a client that drives both windows needs one server entry per port.

On Windows, run setup, start, and status from PowerShell.

```powershell
.\scripts\windows.ps1 Setup
.\scripts\windows.ps1 Start
.\scripts\windows.ps1 Status
```

`Status` makes an authenticated `scene.get_info` call. Setup also writes `.venv/blender-mcp.json` for your client. See the [Windows client instructions](docs/setup.md#windows) for Claude Desktop, Codex, and alternative install paths.

For manual install, client configuration, and Docker, see [Setup](docs/setup.md). Check the [compatibility matrix](docs/compatibility.md) for the releases and platforms exercised by CI.

## Try it

Confirm that **3D Viewport → N → MCP** shows the bridge listening, then ask your client:

> Create a beveled copper cube on a dark plane. Set up a camera and a warm key light, render a preview, and save the scene to a new .blend file.

Start with `blender_scene_get_info` to inspect the scene and `blender_status` to check the connection. Use `blender_scene_execute_batch` for ordered edits and `blender_project_save` to persist them. The [tool reference](docs/tools.md) includes a batch example, modifier settings, and project lifecycle details.

![The Midnight Observatory project open in Blender with the MCP Bridge panel visible](docs/images/observatory-viewport.jpg)

## Modeling guidance

Packaged [guides and staged workflows](docs/knowledge.md) help a model choose a technique, such as lofted forms for a creature, layered rust on metal or softboxes for a product, and check each stage with diagnostics and rendered views. They work offline.

For shapes that stacked primitives cannot make well, [mesh modeling recipes](docs/mesh-recipes.md) sweep horns and limbs, loft loops, extrude hard-surface parts and run bevels and booleans with input checks.

[Character recipes](docs/character-recipes.md) build an original humanoid base mesh in six presets, edit its proportions, rig and weight it, test it in poses and fit armor to it. [UV, baking and material recipes](docs/texturing-recipes.md) unwrap and inspect UVs, bake normal, AO and color maps, and build layered procedural materials with edge wear, dirt and painted masks. [Game readiness](docs/game-readiness.md) checks assets against mobile, PC and character budgets and makes LODs, and [sculpting through data](docs/sculpting.md) covers displacement, remeshing and template fitting. [Asset benchmarks](docs/benchmarks.md#asset-and-lighting-quality) measure the results.

![Six humanoid presets built by humanoid-base-mesh](docs/images/humanoid-presets.png)

## Small-context clients

By default the server advertises every tool. If that list does not fit your model's context window, start the server with `--profile compact`: it advertises 15 tools (5.9 KB of schemas instead of 66.8 KB), pages listings and bounds long responses, and the model finds and runs other actions on demand, at the cost of extra calls. A smaller list is not automatically better, and the full list has grown large: about 10,700 tokens for the model in our [small-model benchmark](docs/benchmarks.md), too big for an 8,192-token window. See [Tool profiles](docs/profiles.md) for client configurations.

## Policy and recovery

The add-on listens on loopback and authenticates requests using a private token. A shared policy file can restrict commands, paths, and execution budgets. Headless Blender requires explicit opt-in. Python scripts run with the permissions of the Blender process, so only enable script execution for trusted code.

If a command times out after starting, inspect the scene before retrying a mutation. `blender_status` checks that Blender's main thread can answer. See [Policy and recovery](docs/policy.md) for setup, headless migration, timeouts, and error codes.

## Development

```sh
python -m pip install -e '.[dev]'
pytest
BLENDER_MCP_INTEGRATION=1 pytest tests/integration --no-cov
```

[Contributing](CONTRIBUTING.md) · [Architecture](docs/architecture.md) · [MIT license](LICENSE)

TDQS

B3.2/5.0

Scored across 79 tools

Disambiguation3/5

Most tools target clearly distinct resource/action pairs, but several clusters overlap: blender_material_assign vs. blender_material_slot_replace/append, blender_view_capture vs. blender_material_preview, and blender_project_get_info vs. blender_scene_get_info all require reading descriptions carefully to choose correctly. The large surface also makes related-but-different tools (camera_create/update, light_create/update, rig_apply vs. world_set) easy to misselect.

Naming Consistency4/5

The dominant pattern is blender_<domain>_<verb_noun> (e.g., blender_object_translate, blender_material_set_color, blender_camera_create), which is predictable and readable. A few outliers like blender_workflow, blender_status, blender_python_exec, and blender_scene_list_objects deviate slightly but remain understandable.

Tool Count2/5

At 79 tools this surface is far beyond a well-scoped set, with many specialized operations (slot append/replace/remove, shader graph inspect/edit, rig apply/remove, recipe/guide tools) that could be consolidated. The broad Blender domain justifies breadth, but the count is heavy enough to overwhelm tool selection.

Completeness4/5

Coverage is strong across object lifecycle, transforms, modifiers, materials/shaders, lighting, cameras, rendering, export, animation keyframes, collections, history, and async jobs. Notable gaps remain in mesh-level editing, rigging/armature and constraint tools, and some animation controls (shape keys, drivers), but agents can work around them with Python execution.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues