Blender MCP Ops
Drive real Blender (not code that draws 3D) through the community
blender-mcp integration: an MCP server plus a Blender addon talking over a
local socket. Validated 2026-09-07 against
https://github.com/ahujasid/blender-mcp (third-party, not made by Blender).
When To Activate
- The user wants the agent to model, edit, texture, or render in Blender.
- Image/SVG → 3D mesh workflows, scene assembly, material passes.
blender-mcp install, connection, or tool errors.
Setup (official quickstart)
- Install
uv with the official installer (not pip install uv):
macOS brew install uv; Linux curl -LsSf https://astral.sh/uv/install.sh | sh;
Windows powershell -c "irm https://astral.sh/uv/install.ps1 | iex".
Gate de segurança: os instaladores acima executam código remoto direto no
shell. O agente DEVE pedir confirmação explícita do usuário antes de rodar e,
quando possível, baixar o script, ler e fixar a versão antes de executar.
- Register the MCP server (one instance only — never two clients at once):
- Claude Code:
claude mcp add blender uvx blender-mcp
- Codex:
codex mcp add blender -- uvx blender-mcp
- Desktop/Cursor/VS Code:
{"command": "uvx", "args": ["blender-mcp"]}
(Windows GUI: {"command": "cmd", "args": ["/c", "uvx", "blender-mcp"]}).
- OpenCode/Antigravity: same command with
BLENDER_HOST/BLENDER_PORT env.
- Install the addon:
uvx blender-mcp install-addon, then Blender →
Edit → Preferences → Add-ons → enable "Interface: MCP for Blender".
- Connect: in the 3D viewport press
N → "MCP for Blender" tab →
Start MCP Server (default localhost:9876, env BLENDER_HOST/BLENDER_PORT).
- Requirements: Blender 3.0+, Python 3.10+ (pin
--python 3.11 with
UV_PYTHON_PREFERENCE=only-managed if conda/pyenv hijacks uvx).
Capabilities
- Scene/object info, create/modify/delete objects, materials and colors.
execute_blender_code: arbitrary Python in Blender — powerful, dangerous.
- Asset sources: Poly Haven (HDRIs/textures), Sketchfab, Poly Pizza low-poly
(keys stored in addon preferences; ~69% of Poly Pizza needs attribution),
Hyper3D Rodin / Hunyuan3D generated models.
BLENDER_MCP_SAFE_MODE=1 validates scripts before running (blocks file,
process, network access; normal modeling still works). Always save the
.blend before executing generated code.
SVG-First Cost-Gate (mandatory)
Meshes and animation burn tokens. Never model blind:
- Image first: concept art / sprite-sheet + lore; re-attach renders
("closer to the attachment") until the look converges.
- Cheap validation: approve a short test scene or SVG before any mesh work.
- Mesh second: SVG → mesh, materials, lighting — one pass at a time.
- Screenshot verify:
get_viewport_screenshot after every pass; fix from
the screenshot, not from memory.
- Long loops are normal (multi-hour to hit target fps/quality) — that is
expected iteration, not failure.
Troubleshooting
| Problem | Fix |
Exemplo
Pedido: "modela uma cadeira low-poly a partir deste SVG"
1) Valida barato: render de teste do SVG como plano + screenshot OK do usuário
2) Mesh: SVG → mesh, um passe de materiais, screenshot após cada passe
3) Seguro: .blend salvo antes de cada execute_blender_code; SAFE_MODE=1 ativo
Nunca: modelar 2h de mesh antes de validar o look no barato
1---2name: blender-mcp-ops3description: "Use when an AI agent must operate Blender 3D via the blender-mcp MCP server — setup, scene ops, materials, code execution, and the SVG-first cost-gate workflow. Triggers on \"Blender MCP\", \"blender-mcp\", \"uvx blender-mcp\", \"operate Blender\", \"SVG to mesh\", \"blender-mcp-ops\". Non-triggers: read-only rig/pose inspection (use blender-motion-state-inspection), image-to-Three.js/WebGL code (use img2threejs), Unreal/MetaHuman pipelines. Outcome: a working Blender+MCP loop that validates cheap (image/SVG) before spending tokens on meshes, with screenshots verifying every step."4metadata:5 source: https://skillmd.com/skills/majinmagros/blender-mcp-ops6 origin: ECC7---89# Blender MCP Ops1011Drive real Blender (not code that draws 3D) through the community12`blender-mcp` integration: an MCP server plus a Blender addon talking over a13local socket. Validated 2026-09-07 against14https://github.com/ahujasid/blender-mcp (third-party, not made by Blender).1516## When To Activate1718- The user wants the agent to model, edit, texture, or render in Blender.19- Image/SVG → 3D mesh workflows, scene assembly, material passes.20- `blender-mcp` install, connection, or tool errors.2122## Setup (official quickstart)23241. Install `uv` with the **official installer** (not `pip install uv`):25 macOS `brew install uv`; Linux `curl -LsSf https://astral.sh/uv/install.sh | sh`;26 Windows `powershell -c "irm https://astral.sh/uv/install.ps1 | iex"`.27 > **Gate de segurança:** os instaladores acima executam código remoto direto no28 > shell. O agente DEVE pedir confirmação explícita do usuário antes de rodar e,29 > quando possível, baixar o script, ler e fixar a versão antes de executar.302. Register the MCP server (one instance only — never two clients at once):31 - Claude Code: `claude mcp add blender uvx blender-mcp`32 - Codex: `codex mcp add blender -- uvx blender-mcp`33 - Desktop/Cursor/VS Code: `{"command": "uvx", "args": ["blender-mcp"]}`34 (Windows GUI: `{"command": "cmd", "args": ["/c", "uvx", "blender-mcp"]}`).35 - OpenCode/Antigravity: same command with `BLENDER_HOST`/`BLENDER_PORT` env.363. Install the addon: `uvx blender-mcp install-addon`, then Blender →37 Edit → Preferences → Add-ons → enable "Interface: MCP for Blender".384. Connect: in the 3D viewport press `N` → "MCP for Blender" tab →39 Start MCP Server (default `localhost:9876`, env `BLENDER_HOST`/`BLENDER_PORT`).405. Requirements: Blender 3.0+, Python 3.10+ (pin `--python 3.11` with41 `UV_PYTHON_PREFERENCE=only-managed` if conda/pyenv hijacks `uvx`).4243## Capabilities4445- Scene/object info, create/modify/delete objects, materials and colors.46- `execute_blender_code`: arbitrary Python in Blender — powerful, dangerous.47- Asset sources: Poly Haven (HDRIs/textures), Sketchfab, Poly Pizza low-poly48 (keys stored in addon preferences; ~69% of Poly Pizza needs attribution),49 Hyper3D Rodin / Hunyuan3D generated models.50- `BLENDER_MCP_SAFE_MODE=1` validates scripts before running (blocks file,51 process, network access; normal modeling still works). **Always save the52 .blend before executing generated code.**5354## SVG-First Cost-Gate (mandatory)5556Meshes and animation burn tokens. Never model blind:57581. **Image first**: concept art / sprite-sheet + lore; re-attach renders59 ("closer to the attachment") until the look converges.602. **Cheap validation**: approve a short test scene or SVG before any mesh work.613. **Mesh second**: SVG → mesh, materials, lighting — one pass at a time.624. **Screenshot verify**: `get_viewport_screenshot` after every pass; fix from63 the screenshot, not from memory.645. Long loops are normal (multi-hour to hit target fps/quality) — that is65 expected iteration, not failure.6667## Troubleshooting6869| Problem | Fix |7071## Exemplo7273```text74Pedido: "modela uma cadeira low-poly a partir deste SVG"751) Valida barato: render de teste do SVG como plano + screenshot OK do usuário762) Mesh: SVG → mesh, um passe de materiais, screenshot após cada passe773) Seguro: .blend salvo antes de cada execute_blender_code; SAFE_MODE=1 ativo78Nunca: modelar 2h de mesh antes de validar o look no barato79```