blender-open-mcp
blender-open-mcp
is an open source project that integrates Blender with local AI models (via Ollama) using the Model Context Protocol (MCP). This allows you to control Blender using natural language prompts, leveraging the power of AI to assist with 3D modeling tasks.Features
- Control Blender with Natural Language: Send prompts to a locally running Ollama model to perform actions in Blender.
- MCP Integration: Uses the Model Context Protocol for structured communication between the AI model and Blender.
- Ollama Support: Designed to work with Ollama for easy local model management.
- Blender Add-on: Includes a Blender add-on to provide a user interface and handle communication with the server.
- PolyHaven Integration (Optional): Download and use assets (HDRIs, textures, models) from PolyHaven directly within Blender via AI prompts.
- Basic 3D Operations:
- Render Support: Render images using the tool and retrieve information based on the output.
Installation
Prerequisites
- Blender: Blender 3.0 or later. Download from blender.org.
- Ollama: Install from ollama.com, following OS-specific instructions.
- Python: Python 3.10 or later.
- uv: Install using
pip install uv
.
- Git: Required for cloning the repository.
Installation Steps
- Clone the Repository:
- Create and Activate a Virtual Environment (Recommended):
- Install Dependencies:
- Install the Blender Add-on:
- Download an Ollama Model (if not already installed):(Other models like **`Gemma3`** can also be used.)
Setup
- Start the Ollama Server: Ensure Ollama is running in the background.
- Start the MCP Server:Or,By default, it listens on
http://0.0.0.0:8000
, but you can modify settings:
- Start the Blender Add-on Server:
Usage
blender-open-mcp
using the mcp
command-line tool:Example Commands
- Basic Prompt:
- Get Scene Information:
- Create a Cube:
- Render an Image:
- Using PolyHaven (if enabled):
Available Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Troubleshooting
- Ensure Ollama and the
blender-open-mcp
server are running.
- Check Blender s add-on settings.
- Verify command-line arguments.
- Refer to logs for error details.
blender-open-mcp
blender-open-mcp
is an open source project that integrates Blender with local AI models (via Ollama) using the Model Context Protocol (MCP). This allows you to control Blender using natural language prompts, leveraging the power of AI to assist with 3D modeling tasks.Features
- Control Blender with Natural Language: Send prompts to a locally running Ollama model to perform actions in Blender.
- MCP Integration: Uses the Model Context Protocol for structured communication between the AI model and Blender.
- Ollama Support: Designed to work with Ollama for easy local model management.
- Blender Add-on: Includes a Blender add-on to provide a user interface and handle communication with the server.
- PolyHaven Integration (Optional): Download and use assets (HDRIs, textures, models) from PolyHaven directly within Blender via AI prompts.
- Basic 3D Operations:
- Render Support: Render images using the tool and retrieve information based on the output.
Installation
Prerequisites
- Blender: Blender 3.0 or later. Download from blender.org.
- Ollama: Install from ollama.com, following OS-specific instructions.
- Python: Python 3.10 or later.
- uv: Install using
pip install uv
.
- Git: Required for cloning the repository.
Installation Steps
- Clone the Repository:
- Create and Activate a Virtual Environment (Recommended):
- Install Dependencies:
- Install the Blender Add-on:
- Download an Ollama Model (if not already installed):(Other models like **`Gemma3`** can also be used.)
Setup
- Start the Ollama Server: Ensure Ollama is running in the background.
- Start the MCP Server:Or,By default, it listens on
http://0.0.0.0:8000
, but you can modify settings:
- Start the Blender Add-on Server:
Usage
blender-open-mcp
using the mcp
command-line tool:Example Commands
- Basic Prompt:
- Get Scene Information:
- Create a Cube:
- Render an Image:
- Using PolyHaven (if enabled):
Available Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Troubleshooting
- Ensure Ollama and the
blender-open-mcp
server are running.
- Check Blender s add-on settings.
- Verify command-line arguments.
- Refer to logs for error details.