Blender MCP

Blender के लिए एक Rust MCP सर्वर, जिसके साथ Blender ऐड-ऑन भी है। यह Creative MCP का हिस्सा है, जो रचनात्मक टूल्स के लिए स्थानीय MCP सर्वरों की एक श्रृंखला है। brew install zachshallbetter/tap/blender-mcp से इंस्टॉल करें।

दस्तावेज़

blender-mcp-rs 🦀

The high-performance, reflective Rust Model Context Protocol (MCP) server & spatial agent engine for Blender.

License: MIT/Apache-2.0 Rust: 2021 Edition MCP: Specification 2024-11-05 Listed on mcpservers.org

blender-mcp-rs is a ground-up Rust rewrite of Blender MCP designed for autonomous AI coding agents (Claude Code, ChatGPT / Codex, Gemini CLI, Google Antigravity, Cursor) and high-fidelity game development pipelines.


Why blender-mcp-rs?

Upstream Python implementations (blendermcp.org) suffer from severe architectural limitations: Python Global Interpreter Lock (GIL) stalls, blocking stdio pipes, 30–50ms query overheads, and high-latency base64 image encoding.

blender-mcp-rs replaces the entire control and data plane with native Rust systems programming:

FeatureLegacy Python blender-mcpblender-mcp-rs 🦀
MCP Roundtrip Latency25–60 ms< 0.8 ms (sub-millisecond)
Transport ReliabilityProne to stdio deadlocks & buffer clippingTokio async I/O (zero-deadlock stdio/SSE)
Viewport StreamingCPU-bound base64 JSON (~8–15 FPS)Zero-copy Shared Memory ring buffer (60 FPS @ 4K)
Tool Definition & TypingAd-hoc Python dictionariesReflective Rust schema derivation & type introspection
Convex Physics HullsNone / Slow Python convex hullNative Rapier3D / Parry VHACD decomposition
Mesh Decimation / LODsSlow bpy modifier serializationNative Meshoptimizer SIMD quadric decimation
Multi-Agent SetupManual copy-pasting1-command multi-client auto-config (claude, codex, gemini, cursor, antigravity)

Architecture

┌────────────────────────────────────────────────────────────────────────┐
│                        Autonomous AI Agent Host                        │
│         (Claude Code, Antigravity, Gemini CLI, Cursor, Codex)          │
└───────────────────────────────────┬────────────────────────────────────┘
                                    │ Stdio / SSE / WebSocket (MCP JSON-RPC)
                                    ▼
┌────────────────────────────────────────────────────────────────────────┐
│                     blender-mcp-rs (Native Core)                       │
│                                                                        │
│  ┌───────────────────────┐  ┌─────────────────┐  ┌──────────────────┐ │
│  │ Tokio Async MCP Server│  │ Reflective Tool │  │ Multi-Agent CLI  │ │
│  │ (Zero-deadlock stdio) │  │ Registry        │  │ & Config Manager │ │
│  └───────────┬───────────┘  └────────┬────────┘  └────────┬─────────┘ │
│              │                       │                    │           │
│  ┌───────────▼───────────────────────▼────────────────────▼─────────┐ │
│  │                     Native Processing Engines                     │ │
│  │  • Geometry & Collision (Rapier3D Parry VHACD, Meshopt LOD)       │ │
│  │  • PBR & Texture Engine (SIMD Channel Packing, Fast PNG)          │ │
│  │  • Game Asset Integrity (Texel Density, Budgets, Manifests)       │ │
│  └───────────────────────────────────┬───────────────────────────────┘ │
└──────────────────────────────────────┼─────────────────────────────────┘
                                       │
            ┌──────────────────────────┴──────────────────────────┐
            │ Dual High-Speed IPC Transport                       │
            │ 1. Unix Domain Socket / Named Pipe (Control Plane)  │
            │ 2. Shared Memory Ring Buffer / SHM (Viewport Pixels)│
            ▼                                                     ▼
┌────────────────────────────────────────────────────────────────────────┐
│                          Blender Host Instance                         │
│                                                                        │
│  ┌────────────────────────┐                  ┌──────────────────────┐  │
│  │ Embedded Rust / C ABI  │                  │ Blender Addon (bpy)  │  │
│  │ (Direct memory access) │                  │ (Scene manipulation) │  │
│  └────────────────────────┘                  └──────────────────────┘  │
└────────────────────────────────────────────────────────────────────────┘

Workspace Crates

  • blender-mcp-reflect: Type reflection, parameter introspection, automatic JSON Schema derivation, and dynamic tool dispatch.
  • blender-mcp-protocol: Pure, zero-allocation Model Context Protocol JSON-RPC 2.0 specification implementation.
  • blender-mcp-ipc: Sub-millisecond IPC and zero-copy shared memory framebuffer ring buffer (memmap2) for 60 FPS viewport streaming.
  • blender-mcp-geom: Native 3D geometry engine powered by Rapier3D / Parry for convex collision hulls (UCX_, UBX_, UCP_) and Spatial CSG (rr-csg-0.1+3d).
  • blender-mcp-pbr: SIMD texture channel packing for Ambient Occlusion, Roughness, and Metallic (ORM) maps.
  • blender-mcp-synth: Procedural asset synthesis engine (desert flora, municipal props, and assembly grammars).
  • blender-mcp-core: The central daemon coordinating sessions, safe mode sandbox, and the 47-tool reflective registry.
  • blender-mcp-cli: The unified binary (blender-mcp) providing agent auto-configuration, direct pipeline execution, and addon lifecycle management.

Documentation


Quick Start

Installation

With Homebrew (macOS or Linux; no Rust needed):

brew tap zachshallbetter/tap
brew trust zachshallbetter/tap   # Homebrew 7 and later
brew install zachshallbetter/tap/blender-mcp

Or from source: cargo install --path crates/blender-mcp-cli in a clone.

Then install the companion add-on. Quit Blender first: the command copies the add-on into every Blender version it finds and turns it on in Blender's preferences, so it starts with Blender and listens on 127.0.0.1:9876. There is nothing to enable by hand.

blender-mcp addon install

To set up Blender MCP together with the rest of the Creative MCP series (detects your apps and MCP clients, installs, registers and verifies), use brew install zachshallbetter/tap/creative-mcp && creative-mcp setup.

Auto-Configure Your AI Agent

Configure any AI agent environment in one command:

# Claude Code
blender-mcp client add claude-code

# Cursor
blender-mcp client add cursor --scope project

# Google Antigravity
blender-mcp client add antigravity

# OpenAI Codex / ChatGPT
blender-mcp client add codex

# Gemini CLI
blender-mcp client add gemini

Direct Asset Pipeline (Zero-Client Overhead)

You can run full asset pipelines directly from your terminal or CI scripts:

# Audit a model against game-ready standards
blender-mcp audit assets/model.glb --json

# Auto-rig semantic sockets & Rapier3D convex collision hulls
blender-mcp rig "Revolver" --collider convex --target-tris 1200 --sockets grip,muzzle

# Generate quadric LODs & pack ORM texture maps
blender-mcp lods "Chest" --pack-orm --ao ao.png --roughness rough.png --metallic metal.png

Verify

The checks CI runs on every pull request:

cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo build --workspace --release

Status and limitations

The project is pre-1.0 (workspace version 0.5.1). AGENTS.md distinguishes documented, implemented, tested and empirically validated claims; read the performance figures above at the weakest of those levels unless a test or measurement is cited for them.


License

Licensed under either of:

at your option.