šØ Blender MCP Bridge
AI-powered Blender control via Model Context Protocol (MCP)
Send images to create 3D models with matching colors, execute Python scripts, and control Blender remotely through Antigravity or any MCP-compatible AI client.
⨠Features
| Feature | Description |
|---|---|
| š¼ļø Image to 3D | Extract dominant colors from images and create 3D models with matching materials |
| š Script Execution | Run any Blender Python code remotely through MCP |
| š Scene Query | Get detailed information about objects, materials, and collections |
| ā” Real-time Updates | Receive live progress status during script execution |
| š Thread-safe | Robust architecture with guaranteed responses and no deadlocks |
šļø Architecture
āāāāāāāāāāāāāāāāāāāāāāā MCP/stdio āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Antigravity āāāāāāāāāāāāāāāāāāāāāāāāŗā antigravity_blender_ ā
ā (or any MCP AI) ā ā server.py ā
āāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāā¬āāāāāāāāāāāāāā
ā
ā TCP Socket
ā (port 8081)
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā blender_server.py ā
ā (runs inside Blender) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāā
š¦ Installation
Prerequisites
- Python 3.10+
- Blender 4.2+ (with full path accessible)
- pip (Python package manager)
Quick Install
# Clone the repository
git clone https://github.com/MITHRAN-BALACHANDER/Blender-MCP-antigravity.git
cd Blender-MCP-antigravity
# Create virtual environment (recommended)
python -m venv venv
.\venv\Scripts\activate # Windows
source venv/bin/activate # Linux/Mac
# Install dependencies
pip install -r requirements.txt
Install as Package (Optional)
pip install -e .
š Antigravity Integration
Add the following to your Antigravity MCP server configuration:
Option A: Direct Path
{
"mcpServers": {
"blender": {
"command": "python",
"args": ["C:/path/to/Blender-MCP-antigravity/antigravity_blender_server.py"],
"env": {}
}
}
}
Option B: Using Virtual Environment
{
"mcpServers": {
"blender": {
"command": "C:/path/to/Blender-MCP-antigravity/venv/Scripts/python.exe",
"args": ["C:/path/to/Blender-MCP-antigravity/antigravity_blender_server.py"],
"env": {}
}
}
}
Note: Replace
C:/path/to/with your actual installation path.
š Quick Start
Step 1: Start Blender Server
# Navigate to project directory
cd Blender-MCP-antigravity
# Start Blender with the socket server
# Windows (use full path if 'blender' is not in PATH)
"C:\Program Files\Blender Foundation\Blender 4.2\blender.exe" --background --python blender_server.py
# Linux/Mac
blender --background --python blender_server.py
Expected output:
==================================================
[BlenderMCP] Server running on 127.0.0.1:8081
[BlenderMCP] Waiting for connections...
==================================================
Step 2: Connect Antigravity
Once Blender is running, Antigravity will automatically connect via the MCP configuration.
Step 3: Create 3D Content
Ask Antigravity to create 3D content:
"Create a low-poly island scene in Blender"
"Create a 3D model from this image" (with attached image)
š ļø MCP Tools Reference
`image_to_3d_model`
Create a 3D model with colors extracted from an image.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image_data |
string | ā | - | Base64-encoded image |
model_type |
string | ā | "cube" |
Shape: cube, sphere, cylinder |
model_name |
string | ā | "ImageModel" |
Name for the object |
Response:
{
"status": "ok",
"colors": ["#3A7D8C", "#D4C4A0", "#4A6E4A"],
"object_name": "ImageModel"
}
`blender_exec`
Exec
Tools 2
image_to_3d_modelCreate a 3D model with colors extracted from an image.blender_execExecute Blender Python code remotely.