Blender-Mind-MCP
Enables AI-driven 3D modeling in Blender by providing tools to create primitives, apply modifiers and materials, set up lighting and cameras, capture viewport snapshots, export assets, inspect scenes, and execute Python commands via natural language.
README
Blender-Mind-MCP (Production AI 3D Modeling & Blender Bridge)
A production-grade Model Context Protocol (MCP) server and Blender Addon ecosystem for automated 3D modeling, procedural asset generation, shader authoring, and multimodal viewport inspection.
ποΈ Prior Art & Architectural Inspiration
This project incorporates architectural lessons and benchmarks from leading GitHub Blender AI projects (such as ahujasid/blender-mcp and djeada/blender-mcp-server):
- Thread-Safe Main-Thread Dispatching: Blenderβs Python C-API (
bpy) is not thread-safe. As discovered in community issue audits, executingbpycalls inside raw socket listener threads triggers memory corruptions and segmentation faults. Our Blender Addon uses a thread-safequeue.Queuecoupled withbpy.app.timersto ensure all scene modifications execute strictly in Blenderβs main render/GUI loop. - Undo Step Isolation: Every AI code execution is bracketed with
bpy.ops.ed.undo_push(), enabling seamlessCtrl+Zrollbacks inside Blender. - Multimodal Viewport Capture: Uses offscreen OpenGL rendering (
bpy.ops.render.opengl) to return Base64-encoded PNG screenshots of the 3D viewport directly to multimodal vision models. - Hexagonal Architecture (Ports & Adapters): Decouples pure 3D geometry generation from physical drivers, supporting both Live Socket connections (
127.0.0.1:9876), headless CLI batching (blender -b), and offline procedural glTF binary simulation.
π¦ Project Structure
blender-mind-mcp/
βββ addon/
β βββ blender_mcp_addon.py # Full Blender 3.x/4.x Addon (UI Sidebar Panel, Socket Server, Viewport Capture)
βββ src/
β βββ index.ts # stdio JSON-RPC MCP Server entry point
β βββ bridge/
β β βββ socket_client.ts # Robust TCP Socket Client with reconnect & timeout handling
β βββ core/
β β βββ domain/
β β βββ types.ts # 3D Domain Types (Scene, Mesh, Material, Modifier, Transform)
β β βββ scene.ts # Pure in-memory 3D scene graph & polygon math
β β βββ bpy_generator.ts # Modern Blender 4.x/3.x Python code synthesizer
β βββ ports/
β β βββ driver.port.ts # BlenderDriverPort interface specification
β βββ adapters/
β β βββ live_socket.adapter.ts # Live Socket Adapter (talks to active Blender GUI)
β β βββ blender_cli.adapter.ts # Headless CLI Adapter (talks to blender.exe)
β β βββ mock_geometry.adapter.ts # Offline Simulation Adapter (glTF & OBJ binary synthesis)
β βββ tools/
β βββ index.ts # 10 MCP Tools registry & dispatcher
βββ tests/
β βββ unit/ # L1: Domain math & Python code generation
β βββ contract/ # L2: MCP tool schemas & argument contracts
β βββ integration/ # L3: Binary glTF headers & TCP Socket Bridge
β βββ run_tests.ts # Complete Truth Ladder test runner
βββ package.json
βββ tsconfig.json
π Quick Start
1. Install Addon in Blender
- Open Blender (3.6+ or 4.x).
- Go to Edit > Preferences > Add-ons > Install... (or the Install from Disk arrow in 4.2+).
- Select
addon/blender_mcp_addon.py. - Enable Development: Blender MCP Bridge.
- In the 3D Viewport, press
Nto open the sidebar, click the Blender MCP tab, and click Start MCP Server.
2. Configure MCP Client (Antigravity / Claude / Codex)
Add to your project or global MCP configuration (.mcp.json):
{
"mcpServers": {
"blender": {
"command": "node",
"args": [
"--disable-warning=ExperimentalWarning",
"--experimental-strip-types",
"C:/Users/a1691/Documents/antigravity/noble-hypatia/src/index.ts"
]
}
}
}
π οΈ 10 Core MCP Tools
| Tool Name | Description | Key Capabilities |
|---|---|---|
blender_create_primitive |
Create procedural 3D mesh | cube, sphere, cylinder, torus, plane, cone, monkey |
blender_apply_modifier |
Attach procedural modifiers | subsurf, bevel, boolean, mirror, array, solidify |
blender_procedural_material |
PBR Principled BSDF shader | base_color, metallic, roughness, transmission (glass), emission |
blender_setup_lighting |
Position & tune light sources | SUN, POINT, SPOT, AREA (wattage, radius, color tint) |
blender_setup_camera |
Camera framing & lens | location, look_at tracking, focal_length in mm |
blender_capture_viewport |
Visual viewport snapshot | Returns Base64 PNG image directly to multimodal LLMs |
blender_export_asset |
3D model baking & export | .glb, .gltf, .obj, .stl, .fbx |
blender_inspect_scene |
Topology & scene tree inspection | Hierarchical object list, polycount, vertex count, modifiers |
blender_execute_bpy |
Raw parameter Python execution | Sandboxed execution with stdout/stderr capture |
blender_health |
System diagnostics | Reports active driver, port status, and Blender build |
π§ͺ Truth Ladder Verification
npm test
Executes all 6 test suites across the 4-level Truth Ladder:
- L1 Unit: 100% pure domain modeling & Python code synthesizer AST checks.
- L2 Contract: Schema definitions and dispatch verification for all 10 tools.
- L3 Integration: Binary glTF v2 Header (
0x46546C67) & OBJ structure validation. - L3 Integration: Live TCP Socket Client-Server loopback test on
127.0.0.1:9899. - L4 E2E: Live stdio JSON-RPC pipe roundtrip.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.