Minimal bridge to run Python in a live Blender session from an MCP server. By exposing a single tool call, this MCP allows LLMs to do what they do best: write code.
blender_mcp_runner.py: Blender add-on that opens a local TCP endpoint (127.0.0.1:8765) and executes queued scripts on Blender's main thread.server.py: MCP server exposingrun_blender_python, which forwards scripts to the Blender add-on.
- Python 3.10+
- Blender 3.0+
- Clone this repo and enter it:
git clone https://github.com/wcummings/blender-mcp.git cd blender-mcp
- Create and activate a virtual environment:
python -m venv .venv .\.venv\Scripts\Activate.ps1 - Install Python dependency:
pip install mcp
- Install the Blender add-on:
- Blender ->
Edit->Preferences->Add-ons->Install... - Select
blender_mcp_runner.py, enable MCP Python Runner (TCP).
- Blender ->
- Start Blender with the add-on enabled.
- Add server.py to your preferred applications MCP configuration file.