MCP for Blender (BlenderMCP)
<p align="center">
<img src="assets/preview.svg" alt="Blender MCP 3D Preview" width="100%" />
</p>
Connect Blender to AI Coding Agents (Antigravity, Claude Code, Cursor, Windsurf, Codex) via the Model Context Protocol (blender-mcp) to directly inspect, create, modify, render, and animate 3D scenes in Blender using natural language and bpy scripts.
Core Capabilities
- Two-Way Socket Communication: Connects the MCP Server (
uvx blender-mcp) to a custom Blender Add-on (scripts/addon.py) over a local TCP socket. - Object & Scene Manipulation: Create, delete, transform, and organize 3D meshes, cameras, lights, and collections.
- Material & Shader Control: Procedural shader networks, PBR textures, and HDRIs.
- Asset Integrations:
- Poly Haven: Download HDRIs, textures, and 3D models via API.
- Sketchfab: Search and import downloadable 3D models.
- AI 3D Generation: Generate 3D meshes via Hyper3D (Rodin), Meshy, or Hunyuan3D.
- Execute Arbitrary Python (
execute_blender_code): Runbpycode directly inside Blender context with viewport screenshot feedback (get_viewport_screenshot).
Specialized Domain Guides
Before executing complex 3D workflows, read the relevant guide in references/guides/:
- Scene Composition:
references/guides/scene.md - Blender Python (
bpy) Best Practices:references/guides/bpy.md - Materials & Shaders:
references/guides/materials.md - Level Design & Environment:
references/guides/level-design.md - Retopology & Mesh Cleanup:
references/guides/retopology.md - Rigging & Armatures:
references/guides/rigging.md - Animation & Keyframes:
references/guides/animation.md
Quick Setup
- Install Blender Add-on:
- Open Blender (3.0+) ->
Edit > Preferences > Add-ons > Install... - Select
scripts/addon.pyand enable Interface: Blender MCP. - In the 3D Viewport sidebar (
N), open the BlenderMCP tab and click Connect to MCP server.
- Configure MCP Server:
```json
{
"mcpServers": {
"blender": {
"command": "uvx",
"args": ["blender-mcp"]
}
}
}
```
Recommended Workflow for Agents
- Always call
get_scene_infofirst to understand existing objects, materials, and world state. - Break complex 3D modeling into incremental steps (blocking -> detailing -> materials -> lighting).
- After significant geometry or camera changes, capture the viewport (
get_viewport_screenshot) to visually verify alignment, proportions, and lighting. - Prefer Poly Haven / Sketchfab assets for realistic props and HDRIs before procedural approximation.