Claude Blender
Controls a running Blender instance through a companion Blender addon over JSON-RPC on TCP (default localhost:9876). Provides tools to add/modify/delete primitives and lights, execute arbitrary Python inside Blender (with scene diffs), introspect scenes and objects, capture viewport screenshots and render stills, render multi-view contact sheets, run background animation renders with progress/cancel, frame cameras, checkpoint and roll back undo states, import/export formats (OBJ, STL, PLY, FBX, glTF/GLB, USD, Collada, Alembic), and run local AI/procedural content generation, including headless operation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Claude Blender
AI-powered Blender control via Claude Code using the Model Context Protocol (MCP).
Control Blender through natural language, execute Python scripts, generate 3D content with local AI models, and render scenes - all from Claude Code.
Rendered end-to-end by Claude through the MCP tools — see examples/.
Features
Core Features
Natural Language Control: Control Blender via Claude Code commands
MCP Integration: Built on MCP SDK v2.3 (protocol 2026-07-28) — 34 tools, 3 resources, and workflow prompts, with tool annotations, structured output, and multi-round-trip elicitation
Visual Feedback Loop: Screenshots and renders come back inline so Claude can see, critique, and iterate on its own work
Multi-View Review: One call renders front/side/top/¾ views into a single contact sheet, which catches floating or intersecting parts that one camera angle hides
Scene Diffs: Every
blender_executereports exactly what it changed; snapshot/diff tools compare any two points in a session (including the user's own GUI edits)Background Render Jobs: Animations render frame-by-frame in the background with progress, ETA, preview frames, and cancel, so Claude keeps working while it renders
Overwrite Confirmation: Save/export ask the user before replacing an existing file (on clients that support elicitation)
Import / Export: OBJ, STL, PLY, FBX, glTF/GLB, USD, Collada, Alembic
Animation Rendering: MP4 turntables and image sequences with inline preview stills
Camera Framing: One call positions and aims a camera to frame any object
Undo Checkpoints: Checkpoint before risky edits, roll back when they go wrong
JSON-RPC API: Direct programmatic access to Blender over TCP
Scene Introspection: Get detailed scene information in multiple formats
Local AI Services (No External APIs Required)
Text-to-3D: Generate 3D models using Shap-E (OpenAI) - runs locally
Image-to-3D: Convert images to 3D with TripoSR (Stability AI) - runs locally
Procedural Generation: Create rocks, trees, terrain, buildings algorithmically
ComfyUI Bridge: Connect to local ComfyUI for Stable Diffusion workflows
Depth-to-Mesh: Convert depth maps to 3D meshes
Related MCP server: Blender MCP
Architecture
Claude Code CLI
"Create a low-poly dragon"
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ MCP SERVER (Python) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐ │
│ │ Scene Tools │ │ AI Tools │ │ Render Tools │ │
│ │ - execute │ │ - text_to_3d│ │ - render │ │
│ │ - get_scene │ │ - img_to_3d │ │ - screenshot │ │
│ │ - add_object│ │ - procedural│ │ - export │ │
│ └─────────────┘ └─────────────┘ └─────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
JSON-RPC over TCP (localhost:9876)
▼
┌─────────────────────────────────────────────────────────────────┐
│ BLENDER ADDON (Python) │
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌───────────┐ │
│ │ Server │ │ Executor │ │ AI Router │ │ Scene │ │
│ │(Timer-poll)│ │(Main thrd) │ │ (Dispatch) │ │ Utils │ │
│ └────────────┘ └────────────┘ └────────────┘ └───────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ LOCAL AI SERVICES │ │
│ │ ┌─────────┐ ┌──────────┐ ┌─────────┐ ┌───────────────┐ │ │
│ │ │ Shap-E │ │ TripoSR │ │Depth2Mesh│ │ ComfyUI │ │ │
│ │ │ (Local) │ │ (Local) │ │ (Local) │ │ Bridge │ │ │
│ │ └─────────┘ └──────────┘ └─────────┘ └───────────────┘ │ │
│ └──────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘Installation
Prerequisites
Blender 4.0+ (tested on 4.3)
uv (manages Python 3.10+ and dependencies)
1. Install the Blender Addon
Option A: Symlink (recommended when working from a clone — picks up edits)
# macOS (replace <version> with your Blender version, e.g. 4.3)
ln -s /path/to/claude-blender/claude_blender/blender_addon \
~/Library/Application\ Support/Blender/<version>/scripts/addons/claude_blender
# Linux
ln -s /path/to/claude-blender/claude_blender/blender_addon \
~/.config/blender/<version>/scripts/addons/claude_blenderThe link must be named claude_blender — that name becomes the addon's
Python module name, which the headless script and the AI tools rely on.
Then enable "Claude Blender" in Edit > Preferences > Add-ons.
You can also ask claude/codex to configure this.
Option B: Install from zip
Blender's installer accepts only .py/.zip files (not folders), so build
the zip first:
./scripts/build_addon.shThen Edit > Preferences > Add-ons > ∨ (dropdown) > Install from Disk...
and select claude_blender.zip. The script pins the in-zip folder name to
claude_blender for the same module-name reason as above.
The addon auto-starts its server on launch (toggle in the addon preferences; the toggle takes effect immediately).
2. Install the MCP Server
This is a uv project (root pyproject.toml + uv.lock, built on mcp>=2.3.0, MCP protocol revision 2026-07-28). From the repo root:
uv syncThat creates .venv/ and installs the pinned dependencies. Local AI features (Shap-E, TripoSR, etc.) have their own optional dependencies — see Local AI Services below.
3. Configure Claude Code
This repository ships a project-scoped .mcp.json at the repo root; opening the repo in Claude Code will prompt you to enable the blender server. It launches the server with uv run claude-blender, so it works as soon as uv sync has been run (uv also re-syncs automatically on launch).
To register it user-wide instead (available in every project):
claude mcp add --scope user blender \
--env BLENDER_HOST=127.0.0.1 --env BLENDER_PORT=9876 \
-- uv run --project /path/to/claude-blender claude-blender4. Start the Server in Blender
With auto-start enabled (the default), just open Blender. Otherwise:
Press N to show the sidebar
Go to the Claude tab
Click Start Server
The panel reads the real server state (it survives File > New/Open), and a failed start reports the reason — e.g. which process holds the port.
Usage
Via Claude Code (MCP)
Simply ask Claude to interact with Blender:
"Add a red cube at position (0, 0, 2)"
"Create a simple scene with a sphere and a light"
"Render the current scene and show me the result"
"Generate a procedural rock using local AI"Via Python Client
import socket
import json
# Connect
sock = socket.socket()
sock.connect(('127.0.0.1', 9876))
# Send request
request = {
"jsonrpc": "2.0",
"id": 1,
"method": "add_object",
"params": {
"object_type": "cube",
"location": [0, 0, 2],
"scale": [0.5, 0.5, 0.5]
}
}
sock.send(json.dumps(request).encode() + b'\n')
# Get response
response = json.loads(sock.recv(4096).decode())
print(response)Headless (no GUI)
Run a background Blender that serves the addon — renders, imports/exports, and all object tools work; only viewport screenshots and undo need the GUI:
blender --background --python scripts/headless_blender.py -- --port 9876
# macOS: the default install doesn't put blender on PATH
/Applications/Blender.app/Contents/MacOS/Blender --background \
--python scripts/headless_blender.py -- --port 9876Tests
uv run pytest -m "not live" # full suite against a fake Blender server
BLENDER_LIVE=1 uv run pytest -m live # against a real Blender on port 9876The fake server compiles every generated execute payload, so quoting or
injection regressions fail in CI without needing Blender.
Test Client
# Run all tests (talks JSON-RPC directly to the addon)
uv run python claude_blender/test_client.py
# Interactive mode
uv run python claude_blender/test_client.py -iMCP Tools
Scene Tools
Tool | Description |
| Health check |
| Get Blender and addon versions |
| Get scene info (minimal/basic/detailed/full) |
| Get detailed object information |
Object Tools
Tool | Description |
| Add primitive (cube, sphere, lights with energy/color/size, etc.) |
| Transform object, visibility, smooth/flat shading |
| Delete object by name |
Code Execution
Tool | Description |
| Execute arbitrary Python code in Blender — the result ends with a diff of what the code changed in the scene |
Rendering
Tool | Description |
| Capture viewport — returns the image inline so Claude can see it |
| Render scene — defaults are a fast draft; renders never leak settings into the scene |
| Render MP4 video or PNG sequence (blocking) — returns preview stills inline |
| Multi-angle contact sheet (front/right/top/¾, ortho optional) in one image, via a temporary camera |
| Save the .blend file (in place or as a copy); asks before overwriting a different existing file |
Background Render Jobs
Tool | Description |
| Start a background animation render (MP4 or PNG, |
| Progress, ETA, newest frame or contact sheet; |
| Stop after the in-flight frame; finished frames stay on disk |
Snapshots & Diff
Tool | Description |
| Record a compact scene fingerprint and return a |
| Field-level diff of a snapshot vs the live scene (or another snapshot): objects added/removed, transforms, materials, modifiers, settings |
Camera
Tool | Description |
| Position and aim a camera to frame objects (fit math included) |
Import / Export
Tool | Description |
| Import OBJ, STL, PLY, FBX, glTF/GLB, USD, DAE, ABC |
| Export scene or selected objects to any of the above; asks before overwriting an existing file |
Modifiers & Organization
Tool | Description |
| Add, apply, or remove modifiers (SUBSURF, BOOLEAN, ARRAY, ...) |
| Duplicate N times with cumulative offset (one-call arrays) |
| Parent/unparent objects, move to collections |
Undo
Tool | Description |
| Push an undo checkpoint before risky edits |
| Undo/redo N steps |
Materials & Animation
Tool | Description |
| Create and assign materials |
| Set animation keyframes (with easing, e.g. LINEAR for loops) |
| Set animation frame range |
Local AI Generation
Tool | Description |
| Generate rocks, trees, terrain, buildings |
| Text-to-3D with Shap-E (local) |
| Image-to-3D with TripoSR (local) |
| Generate images via local ComfyUI |
| Check which AI services are available |
Resources & Prompts
Item | Description |
| Live JSON snapshot of the scene graph |
| Full details of one object (transform, mesh stats, modifiers) |
| The most recent render/screenshot as PNG |
| Guided three-point lighting workflow |
| Guided 360° turntable animation workflow |
Project Skills
Working inside this repo, three slash commands encode complete workflows (each is a walkthrough in examples/):
/blender-iterate <visual goal> # render–critique–adjust loop
/blender-studio-shot <object> # lighting + framing + final render
/blender-turntable <object> [secs] # 360° turntable videoLocal AI Services (in progress/testing)
Shap-E (Text-to-3D)
Requires:
pip install torch diffusers transformers trimeshTripoSR (Image-to-3D)
Requires:
pip install torch transformers trimesh rembgComfyUI Bridge
Requires ComfyUI running locally on http://127.0.0.1:8188
Procedural Generator
No additional dependencies - uses Blender's built-in modifiers.
File Structure
claude-blender/
├── claude_blender/
│ ├── blender_addon/
│ │ ├── __init__.py # Addon entry point (bl_info, RPC registry)
│ │ ├── core/
│ │ │ ├── server.py # Timer-polled TCP server
│ │ │ ├── protocol.py # JSON-RPC 2.0 handler
│ │ │ ├── executor.py # Objects, modifiers, duplicate, undo
│ │ │ ├── scene_utils.py # Introspection, render, render_animation
│ │ │ ├── io_utils.py # Import/export (format from extension)
│ │ │ ├── camera_utils.py # frame_camera fit math (headless-safe)
│ │ │ └── visual_utils.py # Multi-view sheets, contact sheets, MP4 encoding
│ │ └── ai_services/
│ │ ├── base.py # Base service classes
│ │ ├── local_text_to_3d.py # Shap-E, Point-E, Procedural
│ │ ├── local_image_to_3d.py # TripoSR, Depth2Mesh
│ │ └── comfyui_bridge.py # ComfyUI integration
│ │
│ ├── claude_blender_mcp/
│ │ ├── __init__.py # MCP entry point
│ │ ├── server.py # MCPServer (MCP SDK v2): 34 tools, resources, prompts
│ │ ├── render_jobs.py # Background frame-by-frame render jobs
│ │ ├── snapshots.py # Scene snapshots and diffs
│ │ └── blender_client.py # Async Blender client
│ │
│ ├── test_client.py # Raw JSON-RPC test script
│ └── demo_creative.py # Creative demo script
│
├── tests/ # pytest suite (fake Blender, fake bpy, live markers)
├── scripts/
│ ├── headless_blender.py # Serve the addon from blender --background
│ └── build_addon.sh # Build claude_blender.zip for Install from Disk
├── examples/ # Walkthroughs with real committed renders
├── .claude/skills/ # /blender-iterate, /blender-studio-shot, /blender-turntable
├── .github/workflows/ci.yml # uv + pytest on 3.11/3.13
├── CLAUDE.md # Architecture & invariants for agents/devs
├── pyproject.toml # uv project / package configuration
├── uv.lock # Locked dependencies (managed by uv)
├── .mcp.json # Project-scoped Claude Code MCP config
├── LICENSE # MIT License
└── README.md # This fileTechnical Details
Why Timer-Based Polling?
Blender's Python API is NOT thread-safe. Using threading.Thread will crash Blender. The timer system (bpy.app.timers) runs callbacks in the main thread, ensuring safe API access.
Why JSON-RPC?
Standard protocol with good tooling
Bidirectional communication
Built-in error handling
Easy to debug and test
Why Separate MCP Server?
MCP runs outside Blender process
Can restart without affecting Blender
Clean separation of concerns
Easier testing
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
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.
Blender-as-a-service for agents: search 3D assets, run Blender Python, or brief the studio agent.
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Cloud Blender for AI agents: build, inspect, render and animate 3D scenes over remote MCP. Keep editable .blend projects and export GLB or STL. Make your first 3D asset free—30 compute minutes per UTC month, no credit card. First 100 eligible Free account owners to use all 30 minutes in one UTC month by December 31, 2026 UTC receive one calendar month of beta free: 4 compute hours per UTC month, 2 concurrent workers per deployment, 2 deployments, 2048×2048 renders at up to 256 samples, and 10 GiB storage. Existing usage counts toward the 4-hour allowance. Limited to 100 rewards; expires January 1, 2027 00:00 UTC. Free resumes afterward without an automatic charge. Examples, eligibility and terms: https://sceneplane.online/launch?utm_source=glama&utm_medium=directory&utm_campaign=first100
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered 3D content creation in Blender through natural language, including text-to-3D, image-to-3D, animation, rigging, rendering, and export.3MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to control Blender 3D software through natural language, with tools for modeling, materials, animation, rendering, and rigging.3820MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to create and manipulate 3D scenes, objects, and materials, execute Blender Python, capture visual verification views, and generate or import assets and models.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to create, modify, and delete 3D objects, apply materials, run Blender Python code, and pull in generated assets and models through a two-way socket connection to Blender. It also provides renders and multi-angle, wireframe, and X-ray views so the AI can verify its own work.MIT