Blender MCP Bridge MCP Server

AI-powered Blender control via Model Context Protocol (MCP)

README.md

šŸŽØ 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.

Try it

→Create a low-poly island scene in Blender.
→Create a 3D model from this image using a sphere as the base shape.
→Run a Python script in Blender to list all objects in the current scene.
→Generate a 3D model named 'MyCustomModel' based on the provided image.

Frequently Asked Questions

What are the key features of Blender MCP Bridge?

Extract dominant colors from images to create 3D models with matching materials. Run any Blender Python code remotely through MCP. Query detailed information about objects, materials, and collections. Receive live progress status during script execution. Thread-safe architecture for reliable remote control.

What can I use Blender MCP Bridge for?

Automating 3D content creation workflows using AI-generated prompts. Rapid prototyping of 3D scenes by converting reference images into base models. Remote management and scripting of Blender instances for batch processing. Integrating AI assistants directly into the 3D design pipeline.

How do I install Blender MCP Bridge?

Install Blender MCP Bridge by running: git clone https://github.com/MITHRAN-BALACHANDER/Blender-MCP-antigravity.git && cd Blender-MCP-antigravity && pip install -r requirements.txt

What MCP clients work with Blender MCP Bridge?

Blender MCP Bridge works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Blender MCP Bridge docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare