Enables control of Blender through natural language commands to create and transform 3D objects, apply materials and textures, manage scenes, and scatter objects with optimized token efficiency.
Blender MCP Server 🎨🤖
A highly optimized Model Context Protocol (MCP) server that connects AI Assistants (like Claude, Gemini, etc.) directly to Blender.
This allows you to control Blender using natural language to create objects, apply textures, manage scenes, and more, with a focus on token efficiency and speed.
✨ Features
🚀 Optimized for AI: Uses compact JSON and output truncation to save 75%+ tokens compared to raw scripting.
🔌 Direct Integration: Works with any MCP-compliant client (Cursor, Windsurf, etc.).
🛠️ Powerful Tools:
create_primitive: Create Cubes, Spheres, Cones, etc.transform_object: Move, Rotate, Scale.apply_texture: Auto-Join objects, Smart UV Project, and apply textures in one go.apply_material_preset: Apply Gold, Glass, Plastic, etc. instantly.scatter_objects: Randomly distribute objects.get_scene_info: See what's in your scene (with filtering).
UI Control: Dedicated panel in Blender to Start/Stop the server.
📦 Installation Guide
1. Prerequisites
Blender 3.0+ installed.
Python 3.10+ installed on your system.
Git (optional, for cloning).
2. Setup the Project
Clone this repository or download the files:
3. Install Python Dependencies
Option A: Local Python (Simple)
Install the mcp library required for the server:
Option B: Using Docker (Clean & Isolated) 🐳 If you prefer not to install Python dependencies locally, you can use Docker.
Build the Image:
docker build -t blender-mcp .Update MCP Config: Use the
dockercommand instead ofpythonin your IDE config (see Configuration section below).
4. Install the Blender Addon
Open Blender.
Go to Edit > Preferences > Add-ons.
Click Install... at the top right.
Navigate to this folder and select
addon.py.Click Install Add-on.
✅ Check the box next to Interface: MCP Connector to enable it.
⚙️ Configuration (AI IDE)
You need to tell your AI IDE (like Cursor or Windsurf) about this MCP server.
Option A: Local Python Config
Option B: Docker Config
If you built the Docker image, use this configuration:
Note: Replace
🚀 Usage
1. Start the Server in Blender
Open the 3D Viewport in Blender.
Press N to open the Sidebar.
Click the MCP tab.
Click Start Server ▶️.
Status should change to "Connected".
2. Connect & Prompt!
Restart your AI IDE to load the new MCP config. Now you can ask things like:
"Create a low poly tree with a brown cylinder trunk and a green cone top."
"Scatter 50 gold cubes in a radius of 10 meters."
"Clear the scene and make a red monkey head."
"Apply this texture 'C:/Textures/Wood.jpg' to the Cube."
🛠️ Troubleshooting
Connection Refused?
Make sure you clicked Start Server in the Blender MCP panel.
Check if the port
9876is blocked by a firewall.
"Object not found" error?
Ensure the object name matches exactly (case-sensitive). Use
get_scene_infoto check names.
Textures not showing?
Make sure you are in Material Preview or Rendered mode in Blender (Press
Z).
📜 License
MIT License