Blender MCP Bridge
Enables remote control of Blender via MCP, supporting image-to-3D model creation, execution of Blender Python scripts, and querying of scene data such as objects, materials, and collections.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Blender MCP Bridge Create a low-poly island scene with a small tree"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π¨ 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 |
Related MCP server: Blender MCP Link
ποΈ 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.txtInstall 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.pyExpected 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 |
| string | β | - | Base64-encoded image |
| string | β |
| Shape: |
| string | β |
| Name for the object |
Response:
{
"status": "ok",
"colors": ["#3A7D8C", "#D4C4A0", "#4A6E4A"],
"object_name": "ImageModel"
}blender_exec
Execute Python code inside Blender.
Parameter | Type | Required | Description |
| string | β | Python code to execute |
Script Requirements:
β Define and call a
main()functionβ Use
send_status("message")for progress updatesβ Use
bpy.data.*APIs (notbpy.ops.*)β No infinite loops or blocking operations
Example:
import bpy
def main():
send_status("Creating cube...")
mesh = bpy.data.meshes.new("Cube")
obj = bpy.data.objects.new("Cube", mesh)
bpy.context.collection.objects.link(obj)
import bmesh
bm = bmesh.new()
bmesh.ops.create_cube(bm, size=2.0)
bm.to_mesh(mesh)
bm.free()
send_status("Done!")
main()get_blender_scene
Query the current Blender scene.
Response:
{
"objects": [
{"name": "Cube", "type": "MESH"},
{"name": "Camera", "type": "CAMERA"}
],
"meshes": ["Cube"],
"materials": ["Material"],
"collections": ["Collection"]
}π Project Structure
Blender-MCP-antigravity/
βββ antigravity_blender_server.py # MCP server (AI client interface)
βββ blender_server.py # TCP server (runs in Blender)
βββ antigravity_blender_addon.py # Blender UI addon (optional)
βββ run_via_bridge.py # Standalone script runner
βββ generate_island.py # Example: procedural island
βββ create_island_from_image.py # Example: island from reference
βββ requirements.txt # Dependencies
βββ pyproject.toml # Package config
βββ README.mdπ§ Troubleshooting
Connection Refused
# Ensure Blender is running with the server
"C:\Program Files\Blender Foundation\Blender 4.2\blender.exe" --background --python blender_server.py
# Check if port 8081 is in use
netstat -an | findstr 8081 # Windows
lsof -i :8081 # Linux/MacTimeout Errors
Check Blender's console for Python errors
Ensure
main()is called at the end of your scriptAdd
send_status()calls for long operationsAvoid blocking calls or infinite loops
Port Already in Use
# Kill existing Blender processes
taskkill /F /IM blender.exe # Windows
pkill blender # Linux/Macπ― Examples
Run the Island Generator
# Activate venv first
.\venv\Scripts\activate
# Run example script
python run_via_bridge.py generate_island.pyInteractive Mode (View Output)
# Start Blender with GUI
"C:\Program Files\Blender Foundation\Blender 4.2\blender.exe" --python blender_server.py
# Then run scripts via bridge
python run_via_bridge.py your_script.pyπ€ Contributing
Contributions are welcome!
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureCommit changes:
git commit -m 'Add amazing feature'Push:
git push origin feature/amazing-featureOpen a Pull Request
π License
MIT License - see LICENSE for details.
π Links
Repository: github.com/MITHRAN-BALACHANDER/Blender-MCP-antigravity
Blender: blender.org
MCP Protocol: modelcontextprotocol.io
Antigravity: antigravity.dev
Available Tools
3 toolsblender_execA
Execute a Python script inside Blender.
IMPORTANT RULES:
- The script MUST define a main() function and call it
- Use send_status("message") to report progress
- Use bpy.data.* APIs instead of bpy.ops.* when possible
- Script MUST terminate - no infinite loops
- Catch exceptions and handle errors gracefully
Args:
script: Python code to execute in Blender. Has access to 'bpy' and 'send_status()'.
Returns:
JSON string with execution results including status and any messages.
Inputs: script (required). Returns: result
get_blender_sceneA
Get information about the current Blender scene.
Returns:
JSON string with lists of objects, meshes, materials, and collections.
Inputs: no named parameters. Returns: result
image_to_3d_modelA
Create a 3D model in Blender with colors extracted from an image.
This tool analyzes the provided image to extract dominant colors, then creates
a 3D model in Blender with materials matching those colors.
Args:
image_data: Base64-encoded image data (can include data URL prefix)
model_type: Shape type - "cube", "sphere", or "cylinder" (default: "cube")
model_name: Name for the created 3D object (default: "ImageModel")
Returns:
JSON string with status, extracted colors, and model information.
Inputs: image_data (required), model_type, model_name. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose with no overlap: blender_exec runs Python scripts, get_blender_scene retrieves scene information, and image_to_3d_model creates 3D models from images. The descriptions reinforce these distinct functions, making misselection unlikely.
The naming follows a consistent verb_noun pattern (blender_exec, get_blender_scene, image_to_3d_model) with clear actions and targets. The minor deviation is that 'blender_exec' uses an abbreviation while others are spelled out, but the pattern remains readable and predictable.
With only 3 tools, the set feels thin for a Blender bridge, as it lacks core operations like modifying objects, rendering, or exporting. While the tools are well-defined, the count is borderline low for the apparent scope of 3D modeling and automation.
There are significant gaps in the tool surface for a Blender integration. Missing are essential CRUD operations (e.g., create/update/delete objects), rendering tools, export capabilities, and scene manipulation functions. This will likely cause agent failures when trying to perform common Blender workflows.
Related MCP Connectors
Connect your AI assistant to Blender for 3D modeling, Geometry Nodes, materials, lighting, animation, rendering and export. Inspect real scenes and viewport images, refine the result and restore checkpoints. OAuth connects your chat to Blender Bridge Desktop on an online Windows 10/11 x64 computer running Blender 4.2+. The chat can run on another device. Requires an active Blender Bridge account; 7-day trial available. AI model access is separate.
Blender-as-a-service for agents: search 3D assets, run Blender Python, or brief the studio agent.
Cloud Blender for AI agents: build, inspect, render and animate 3D scenes over remote MCP. Keep editable .blend projects and export GLB or STL. Make your first 3D asset freeβ30 compute minutes per UTC month, no credit card. First 100 eligible Free account owners to use all 30 minutes in one UTC month by December 31, 2026 UTC receive one calendar month of beta free: 4 compute hours per UTC month, 2 concurrent workers per deployment, 2 deployments, 2048Γ2048 renders at up to 256 samples, and 10 GiB storage. Existing usage counts toward the 4-hour allowance. Limited to 100 rewards; expires January 1, 2027 00:00 UTC. Free resumes afterward without an automatic charge. Examples, eligibility and terms: https://sceneplane.online/launch?utm_source=glama&utm_medium=directory&utm_campaign=first100
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Related MCP Servers
- AlicenseBqualityCmaintenanceConnects Blender to AI through the Model Context Protocol to enable prompt-assisted 3D modeling and scene manipulation. It supports object creation, material control, and arbitrary Python code execution directly within the Blender environment.22MIT
- AlicenseNot gradedqualityCmaintenanceEnables interactive control of Blender for 3D scene manipulation, geometry creation, material application, and viewport rendering via natural language prompts through the Model Context Protocol.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI to control Blender 3D through the Model Context Protocol, allowing Python execution, scene state queries, and automation of 3D workflows.5GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Blender 3D modeling and rendering through natural language commands via the Model Context Protocol.MIT