blender-mcp
# blender-mcp
An MCP server that builds Blender .blend files. It reaches Blender two ways:
Headless — every call starts a fresh
blender --backgroundprocess. Deterministic, always available, and the right choice for generating files.Live — a small Blender addon opens a local port so the server can drive the Blender window you already have open, and you watch it happen.
Both routes run the same handler code, so a script behaves identically either way. A local web UI lets you upload reference images and run generation jobs with the same tools.
Requirements
Blender | 4.2 or newer (developed against 5.1) |
Python | 3.12+ for the server (Blender brings its own) |
dependency and venv management |
Setup
uv sync # create .venv and install
cp .env.example .env # then set BLENDER_MCP_EXECUTABLE
uv run python scripts/build_addon.py --install # build + install the Blender addonIf you skip .env, the server searches your PATH and the standard
Program Files/Blender Foundation/Blender <version> folders on every drive, preferring
the newest version it finds.
Turning on the live bridge
The addon is installed but idle until you start it:
Open Blender.
Press N in the 3D viewport to show the sidebar.
Open the MCP tab and click Start MCP Bridge.
Tick Start listening on launch in the addon preferences to skip this every time.
Connecting an MCP client
.cursor/mcp.json already registers the server for this project. To make it available
everywhere, copy that block into ~/.cursor/mcp.json:
{
"mcpServers": {
"blender": {
"command": "uv",
"args": ["run", "--directory", "C:\\Users\\josef\\Projects\\blender-mcp", "blender-mcp"]
}
}
}Quality workflow
Generation quality comes from looking, not from a single script dump:
list_references/view_reference— open guide images firstcreate_blendfromstudioorproductBuild in small
run_scriptsteps;apply_materialfor metal/plastic/rubber/glass/woodpreview_views— multi-angle EEVEE previews; compare to refs withview_imageFix, preview again
Final
render/render_and_view(CYCLES only for finals; EEVEE while iterating)
Local web UI
uv run blender-mcp-web
# open http://127.0.0.1:8765Upload reference images, enter a prompt, and browse jobs under output/jobs/.
With
BLENDER_MCP_LLM_API_KEYin.env— the site runs a bounded multimodal agent that calls the same Blender tools (OpenAI-compatible or Anthropic viaBLENDER_MCP_LLM_PROVIDER).Without a key — uploads and job pages still work; open the job in Cursor and ask the MCP agent to build from
output/jobs/<id>/refs.
Tools
Tool | Purpose |
| Install, output/refs dirs, templates, materials, live bridge |
| Guide image library under |
| New file from a template + optional script |
| Arbitrary bpy Python |
| Procedural presets: metal, plastic, rubber, glass, wood |
| Scene graph / materials / cameras / lights |
| Multi-angle EEVEE previews for critique |
| Still PNG; the latter returns the image to look at |
| Load a PNG for vision |
| Live viewport capture |
| Files under |
| Open a |
Writing scripts
run_script and the script argument of create_blend execute in a namespace where
bpy, mathutils, math, D (bpy.data) and C (bpy.context) are already bound.
Send data back by assigning to result or calling emit(value).
Templates
Name | What you get |
| Nothing at all |
| Blender's startup scene: cube, camera, light |
| Grey floor, three-point area lighting, 50mm camera, 1920×1080 |
| White seamless backdrop, soft lights, 85mm product framing |
Layout
addon/blender_mcp_addon/ Blender extension + shared handlers (incl. preview_views)
src/blender_mcp/
server.py MCP tools
refs.py reference image library
materials.py procedural material presets
templates.py starter scenes
agent/ bounded multimodal generation loop
web/ FastAPI UI (templates + static)
headless.py / bridge.py Blender process / live socket
scripts/ build, install, verification
output/ .blend files, renders, refs/, jobs/Testing
uv run pytest -m "not blender" # fast
uv run pytest # includes real Blender runs
uv run python scripts/check_server.py
uv run python scripts/verify_live_bridge.pyNotes and limits
run_scriptexecutes arbitrary Python inside Blender. Keep the bridge on loopback.Long renders block the live UI until they finish.
viewport_screenshotis live-only.Cycles uses CPU unless you enable a GPU device in Blender preferences.
The web agent needs a multimodal model that supports tool calls and images.
Licence
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/josefgoeller-ship-it/blender-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server