Blender MCP Server
Controls Blender from any AI assistant, enabling creation and manipulation of 3D objects, materials, rendering, scene export, and Python execution.
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 MCP Server Create a red sphere at the origin"
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 MCP Server
Control Blender from any AI assistant using the Model Context Protocol (MCP).
27 tools across 7 namespaces — create objects, assign materials, render images, export scenes, execute Python scripts, manage async jobs, and more.

How It Works
┌─────────────┐ stdio ┌──────────────────┐ JSON/TCP ┌─────────────────┐
│ MCP Client │ ◄──────────────► │ MCP Server │ ◄─────────────► │ Blender Add-on │
│ (any host) │ │ (Python) │ localhost:9876 │ (runs in bpy) │
└─────────────┘ └──────────────────┘ └─────────────────┘The Blender add-on runs inside Blender and listens on
localhost:9876.The MCP server connects to your AI client via stdio and forwards tool calls to Blender over TCP. Every request carries a shared secret that the add-on writes to
~/.blender-mcp/token(mode0600).You ask the AI → it calls MCP tools → Blender executes commands → results flow back.
Related MCP server: BlenderMCP
Quick Start (macOS & Linux)
Install Blender 3.6+ and Python 3.10+, then:
git clone https://github.com/djeada/blender-mcp-server.git
cd blender-mcp-server
scripts/setup.sh # venv + MCP server, installs and enables the Blender add-on
scripts/start.sh claude # opens Blender and a Claude Code session already connected to itscripts/start.sh codex does the same with Codex, and scripts/start.sh none just opens Blender
with the bridge running. Anything after the client name goes to the client, e.g.
scripts/start.sh claude "Build a snowman and render it". Stop the Blender it opened with scripts/stop.sh.
start.sh hands the MCP server to the client on the command line, so it changes no client config. To
register the server permanently instead, run scripts/setup.sh --register claude,codex,claude-desktop.
The scripts find Blender on your PATH, in /Applications/Blender.app, or via BLENDER_BIN.
Demos
Each demo is one prompt, recorded end to end against a live Blender. scripts/record_demos.sh
re-records them. Every demo also has a plain Blender Python script, so you can build the same kind of
scene without an AI: scripts/run_demo.sh 1 (GUI), --background 1 (render only), or --bridge 1
(send it through the MCP bridge to the Blender that start.sh opened).
Demo | Client | |
Still life from a sentence: object, material and render tools | Claude Code | |
Procedural city with Python: | Codex | |
Animate live, render headless: keyframes, then | Claude Code |
Manual Setup
1. Install the MCP Server
git clone https://github.com/djeada/blender-mcp-server.git
cd blender-mcp-server
python3 -m venv .venv
source .venv/bin/activate
pip install -e .This creates the executable .venv/bin/blender-mcp-server.
2. Install the Blender Add-on
Download blender_mcp_bridge.zip from the latest release, or build it yourself:
./scripts/build_addon_zip.shThen in Blender:
Go to Edit → Preferences → Add-ons → Install from Disk (Blender 4.2+ installs it as an extension; older versions as a legacy add-on).
Select
dist/blender_mcp_bridge.zipand enable Blender MCP Bridge.In the 3D Viewport, press N → open the MCP tab.
Confirm it shows Listening on 127.0.0.1:9876.
3. Connect Your MCP Client
Add to your config file:
OS | Path |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"blender": {
"command": "/absolute/path/to/blender-mcp-server/.venv/bin/blender-mcp-server"
}
}
}Replace the path with the actual location of your clone.
Register the server once:
codex mcp add blender -- /absolute/path/to/blender-mcp-server/.venv/bin/blender-mcp-serverVerify with codex mcp list. Then start Codex from any directory — it launches the server automatically.
Point any MCP-compatible client at the server executable:
/absolute/path/to/blender-mcp-server/.venv/bin/blender-mcp-serverThe server uses stdio transport. No additional flags are needed.
Variable | Default | Purpose |
|
| Bridge host |
|
| Bridge port (match the add-on's Port preference) |
| — | Auth token; overrides the token file (set it for both Blender and the server) |
|
| Where the add-on writes and the server reads the token |
| none | Seconds to wait for a bridge response before giving up |
|
| Blender binary for |
|
| Set to |
|
| Default timeout (seconds) for headless runs |
The image contains only the MCP server. For the bridge transport, share the host network and mount the token:
docker build -t blender-mcp-server .
docker run -i --rm --network host \
-v ~/.blender-mcp/token:/home/mcp/.blender-mcp/token:ro blender-mcp-serverFor the headless transport, mount a Blender install and set BLENDER_BIN.
4. Start Using It
Make sure Blender is open with the add-on listening, then ask your AI assistant:
"What objects are in my Blender scene?"
"Create a cube named TestCube at [0, 0, 1]"
"Render the scene to /tmp/render.png"
The AI calls MCP tools like blender_scene_list_objects and blender_object_create, which the server forwards to Blender.
Example Prompts
"What objects are in my scene?"
"Show me the transform of the Camera object"
"List all materials in the file"
"Create a sphere named 'Earth' at position [0, 0, 2] with size 3"
"Add a cylinder at the origin, then scale it to [0.5, 0.5, 4] to make a tall pillar"
"Create 5 cubes in a row spaced 3 units apart"
"Create a red material and assign it to the Cube"
"Make a material called 'Ocean' with color [0.0, 0.3, 0.8] and assign it to the Sphere"
"Change the color of 'RedMaterial' to orange"
"Move the Cube up 2 units on the Z axis"
"Rotate the Cylinder 45 degrees on the Z axis"
"Scale the Sphere to [2, 2, 2]"
"Render the scene at 1920×1080 and save it to /tmp/render.png"
"Export the scene as a GLB file to /tmp/scene.glb"
"Run this Blender Python:
bpy.ops.mesh.primitive_monkey_add(location=(0,0,2))""Execute the fluid_domain.py script from the library with resolution 128"
"Start an async bake job for the fluid simulation and tell me the job ID"
"Undo the last change"
"Redo what was just undone"
Tool Reference
Scene Inspection
Tool | Description |
| Scene metadata — name, frame range, render engine, resolution, object count |
| List all objects, optionally filter by type ( |
| Get position, rotation, and scale of an object by name |
| Parent/child hierarchy tree (full scene or subtree) |
Object Manipulation
Tool | Description |
| Create primitives: |
| Delete an object by name |
| Move — absolute |
| Set rotation |
| Set scale |
| Duplicate with optional new name |
Materials
Tool | Description |
| List all materials in the file |
| Create a material with optional base color |
| Assign a material to an object |
| Set the Principled BSDF base color |
| Set an image texture as base color |
Rendering & Export
Tool | Description |
| Render still image — output path, resolution, engine |
| Render animation — frame range, output path, engine |
| Export as glTF/GLB |
| Export as OBJ |
| Export as FBX |
History
Tool | Description |
| Undo the last operation |
| Redo the last undone operation |
Python Execution
Tool | Description |
| Run a Python script synchronously. Accepts |
| Start a long-running script asynchronously. Returns a |
| Poll an async job's status, result, stdout, stderr, and error. |
| Cancel a running or queued async job. |
| List known async jobs with IDs, status, and creation time. |
Script Library
Pre-built scripts in scripts/library/ for use with blender_python_exec via script_path:
Script | Description |
| Create primitive meshes through the data API (no |
| Create a Mantaflow fluid domain |
| Create an inflow source |
| Set objects as collision effectors |
| Add rigid body physics |
| Set scene frame range |
| Create and configure a camera |
| Insert transform keyframes |
| Organize objects into collections |
| Apply transforms to objects |
| Save the |
See scripts/library/README.md for full argument docs and a dam-break walkthrough.
Tips for physics workflows:
Prefer
create_mesh.py(data API) overbpy.ops.mesh.primitive_*_addin live sessions — the operator path can destabilize view-layer updates around fluid setup.Keep Mantaflow liquid modifiers hidden in the viewport to avoid crashes in Blender 4.x.
Use
transport="headless"for heavy physics bakes — this runs scripts in a separateblender -bprocess.
Safety & Security
blender_python_exec runs arbitrary Python inside Blender, so anything that can talk to the bridge can run code as you.
The bridge is therefore locked to clients that can read your token file.
Feature | Description |
Token authentication | Every bridge request must carry the secret from |
Strict framing | The first malformed line closes the connection, so a web page cannot smuggle a command inside an HTTP request to |
Automatic undo push | Mutation tools push an undo step before executing (Python exec excluded for stability). |
Safe Mode | Restricts render/export/texture paths to the approved roots (or the saved |
Allowed Commands | Optional allowlist of bridge commands (e.g. read-only tools only). |
Script path restrictions |
|
Inline code toggle | Disable inline code execution via add-on preferences. |
Module blocklist | Imports of |
The headless transport runs in a separate blender -b process under the MCP server's user and is not subject to the
add-on's preferences. Set BLENDER_MCP_HEADLESS=0 to turn it off.
Add-on Preferences
In Blender → Edit → Preferences → Add-ons → Blender MCP Bridge:
Setting | Default | Description |
Safe Mode | Off | Restrict file paths to the approved roots and disable inline code |
Port | 9876 | TCP port for the MCP bridge (the bridge rebinds on change; set |
Allowed Commands | (empty = all) | Comma-separated bridge commands to accept, e.g. |
Allow Inline Code | On | Allow |
Approved Script Roots | (saved blend file dir) | Semicolon-separated directories for script file access |
The preferences panel also shows where the auth token file lives.
Advanced Usage
The helper scripts in scripts/ connect directly to the Blender add-on on 127.0.0.1:9876, bypassing the MCP server entirely. Useful for verifying the add-on works:
python3 scripts/blender_scene_info.py
python3 scripts/blender_create_test_cube.py --name TestCube --x 0 --y 0 --z 1 --size 2
python3 scripts/blender_bridge_request.py scene.get_info
python3 scripts/blender_bridge_request.py object.translate --params '{"name":"TestCube","offset":[0,0,2]}'All scripts accept --host, --port, and --timeout flags, and read the auth token the same way the server does.
For one-off scripts and renders you don't need the add-on at all: pass transport="headless" to
blender_python_exec, blender_python_exec_async, or the render tools and the server runs a separate
blender -b process.
To serve the bridge from background Blender, note that bpy.app.timers does not fire after the startup
script returns, so the script has to drain the request queue itself. See
tests/integration/blender_bridge_harness.py:
BLENDER_MCP_PORT=9876 blender -b --factory-startup --python tests/integration/blender_bridge_harness.pyInline code — create a fluid domain:
{
"tool": "blender_python_exec",
"args": {
"code": "import bpy\nbpy.ops.mesh.primitive_cube_add(size=4, location=(0,0,2))\ndomain = bpy.context.active_object\ndomain.name = 'FluidDomain'\nbpy.ops.object.modifier_add(type='FLUID')\ndomain.modifiers['Fluid'].fluid_type = 'DOMAIN'\nsettings = domain.modifiers['Fluid'].domain_settings\nsettings.domain_type = 'LIQUID'\nsettings.resolution_max = 64\n__result__ = {'domain': domain.name, 'resolution': 64}",
"args": {"resolution": 64}
}
}Script file — set up colliders:
{
"tool": "blender_python_exec",
"args": {
"script_path": "scripts/library/effector.py",
"args": {
"objects": ["Ground", "Building_01", "Building_02"],
"effector_type": "COLLISION"
}
}
}Async bake and poll:
{"tool": "blender_python_exec_async", "args": {"code": "import bpy\nbpy.ops.fluid.bake_all()\n__result__ = {'baked': True}", "timeout_seconds": 1800}}→ {"job_id": "job-f8e2a1b3"}
{"tool": "blender_job_status", "args": {"job_id": "job-f8e2a1b3"}}Development
git clone https://github.com/djeada/blender-mcp-server.git
cd blender-mcp-server
pip install -e ".[dev]"
pytest -v # unit tests, no Blender needed
BLENDER_MCP_INTEGRATION=1 pytest tests/integration --no-cov # end-to-end against real BlenderProject Structure
blender-mcp-server/
├── addon/ # Blender add-on (TCP server + command handlers + job manager)
├── src/blender_mcp_server/ # MCP server (stdio transport + tool definitions)
├── scripts/
│ ├── setup.sh / start.sh / stop.sh # One-command install and launch (macOS & Linux)
│ ├── run_demo.sh # Run a demo scene script yourself (no AI)
│ ├── record_demos.sh # Re-record docs/demos with a real AI client
│ ├── library/ # Reusable Blender scripts for common tasks
│ ├── demos/ # Bridge-driven dam-break demo scenes
│ └── blender_bridge_request.py # Direct bridge test helpers
├── tests/ # Unit tests (mocked bpy) + integration tests (real Blender)
├── docs/ # Architecture & design docs, recorded demos
├── pyproject.toml
└── README.mdContributing
Fork the repository.
Create a feature branch.
Add tests for your changes.
Run
pytest tests/ -vto verify all tests pass.Submit a pull request.
License
MIT
Available Tools
27 toolsblender_export_fbxB
Export the scene as FBX. Provide the output file path.
Inputs: filepath (required). Returns: result
blender_export_gltfB
Export the scene as glTF/GLB. Provide the output file path.
Inputs: filepath (required). Returns: result
blender_export_objB
Export the scene as OBJ. Provide the output file path.
Inputs: filepath (required). Returns: result
blender_history_redoA
Redo the last undone operation in Blender.
Inputs: no named parameters. Returns: result
blender_history_undoA
Undo the last operation in Blender.
Inputs: no named parameters. Returns: result
blender_job_cancelA
Cancel a running or queued async Blender job. The job's cancel_event is set; scripts that check it will stop gracefully.
Inputs: job_id (required). Returns: result
blender_job_listA
List known async Blender jobs with their IDs, statuses, and creation timestamps.
Inputs: no named parameters. Returns: result
blender_job_statusA
Get the status of an async Blender job. Returns job_id, status (queued/running/succeeded/failed/cancelled), timestamps, result, stdout, stderr, and error. Poll this after starting a job with blender_python_exec_async.
Inputs: job_id (required). Returns: result
blender_material_assignB
Assign an existing material to an object.
Inputs: object (required), material (required). Returns: result
blender_material_createB
Create a new material. Optionally set an initial base color as [r, g, b] or [r, g, b, a] with values 0-1.
Inputs: name, color. Returns: result
blender_material_listA
List all materials in the Blender file.
Inputs: no named parameters. Returns: result
blender_material_set_colorB
Set the base color of a material. Color is [r, g, b] or [r, g, b, a] with values 0-1.
Inputs: name (required), color (required). Returns: result
blender_material_set_textureC
Set an image texture as the base color of a material. Provide the file path to the image.
Inputs: name (required), filepath (required). Returns: result
blender_object_createC
Create a new mesh object in Blender. Supported types: cube, sphere, cylinder, plane, cone, torus.
Inputs: name, size, location, mesh_type. Returns: result
blender_object_deleteC
Delete an object from the Blender scene by name.
Inputs: name (required). Returns: result
blender_object_duplicateC
Duplicate an object in the Blender scene. Optionally provide a new name.
Inputs: name (required), new_name. Returns: result
blender_object_get_hierarchyA
Get the parent/child hierarchy of objects. If name is provided, returns the subtree for that object. Otherwise returns the full scene hierarchy.
Inputs: name. Returns: result
blender_object_get_transformA
Get the position, rotation, and scale of a Blender object by name.
Inputs: name (required). Returns: result
blender_object_rotateA
Set the rotation of an object. Provide rotation as [x, y, z] angles. By default angles are in degrees.
Inputs: name (required), rotation (required), degrees. Returns: result
blender_object_scaleB
Set the scale of an object. Provide scale as [x, y, z].
Inputs: name (required), scale (required). Returns: result
blender_object_translateA
Move an object. Provide either 'location' for absolute positioning or 'offset' for relative movement, not both.
Inputs: name (required), offset, location. Returns: result
blender_python_execA
Execute a Python script in Blender's context synchronously. Provide either 'code' (inline Python string) or 'script_path' (path to a .py file), not both. The script has access to 'bpy', 'mathutils', and an 'args' dict with your supplied arguments. Set 'result' in the script to return a JSON-serializable value. Returns the result, captured stdout/stderr, and execution duration. Use transport='bridge' for the live Blender add-on session, or transport='headless' to run the script in a separate blender -b process. For long-running tasks like baking, use blender_python_exec_async.
Inputs: args, code, transport, blend_file, +3 more. Returns: result
blender_python_exec_asyncA
Start a long-running Python script in Blender asynchronously. Same parameters as blender_python_exec. Returns a job_id immediately. Use blender_job_status to poll for completion, and blender_job_cancel to abort. The script can check 'cancel_event.is_set()' to detect cancellation. Ideal for fluid baking, rigid body simulation, or heavy scene generation. Note: bridge jobs run on Blender's main thread, so the Blender UI is busy while they run. Use transport='headless' to run the job in a separate background Blender process instead.
Inputs: args, code, transport, blend_file, +3 more. Returns: result
blender_render_animationA
Render an animation. Optionally set output path, frame range, and render engine. Use transport='bridge' for the live Blender add-on session, or transport='headless' with a blend_file to render in a separate background Blender process.
Inputs: engine, frame_end, transport, blend_file, +3 more. Returns: result
blender_render_stillA
Render the current scene as a still image. Optionally set output path, resolution, and render engine (BLENDER_EEVEE, CYCLES, etc.). Use transport='bridge' for the live Blender add-on session, or transport='headless' with blend_file='/path/to/file.blend' to render in a separate background Blender process.
Inputs: engine, transport, blend_file, output_path, +3 more. Returns: result
blender_scene_get_infoA
Get information about the current Blender scene including name, frame range, render engine, resolution, and object count.
Inputs: no named parameters. Returns: result
blender_scene_list_objectsA
List all objects in the current Blender scene. Optionally filter by type (MESH, CAMERA, LIGHT, EMPTY, CURVE, etc.).
Inputs: type. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Each tool targets a distinct resource and action, with clear separation between scene, object, material, render, export, history, Python execution, and job management. Even potentially overlapping tools like blender_python_exec vs. blender_python_exec_async are explicitly differentiated by sync vs. async behavior.
All tools use the blender_ prefix and snake_case, with predictable domain/action naming. Minor ordering deviations exist (e.g., blender_render_still vs. blender_scene_get_info), but the overall pattern remains highly readable.
27 tools is slightly above the typical 3-15 range, but Blender is a broad domain and each tool covers a specific, useful operation. No tool feels redundant or trivial, though some consolidation (e.g., separate export formats) could reduce the count.
The surface covers core Blender automation: object creation/transform/duplication, material creation/assignment, rendering, export, history, and Python execution. Minor gaps like material deletion or scene save/load are not directly exposed, but the asynchronous Python execution tool can fill those gaps.
Maintenance
Related MCP Connectors
Blender-as-a-service for agents: search 3D assets, run Blender Python, or brief the studio agent.
Build editable 3D scenes, direct characters and cameras, and export AI video references with MCP.
Connect your AI assistant to Blender for 3D modeling, Geometry Nodes, materials, lighting, animation, rendering and export. Inspect real scenes and viewport images, refine the result and restore checkpoints. OAuth connects your chat to Blender Bridge Desktop on an online Windows 10/11 x64 computer running Blender 4.2+. The chat can run on another device. Requires an active Blender Bridge account; 7-day trial available. AI model access is separate.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes 50+ Blender tools (object manipulation, materials, animation, etc.) via MCP for AI-driven 3D workflows and automation.1MIT
- AlicenseAqualityCmaintenanceEnables connecting Blender 3D to AI assistants via MCP, allowing prompt-driven 3D modeling, scene editing, and real-time manipulation. Supports object/material control, scene inspection, viewport screenshots, and integrations with Poly Haven, Sketchfab, and AI model generators.22MIT
- AlicenseNot gradedqualityBmaintenanceEnables any MCP client to control Blender 5.2 LTS via natural language, including scene creation, object manipulation, material assignment, rendering, and Python execution.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to control and query Blender scenes through local MCP, allowing operations like retrieving scene information with objects and materials.-