Blender MCP

Blender MCP

Connects Blender to AI assistants through the Model Context Protocol, enabling direct AI control of 3D modeling, scene creation, and manipulation via natural language.

Category
访问服务器

README

Blender MCP

Blender MCP connects Blender to AI assistants through the Model Context Protocol (MCP), allowing AI to directly interact with and control Blender. This enables prompt-assisted 3D modelling, scene creation, and manipulation.

Features

  • Two-way communication — Connect AI assistants to Blender through a socket-based server
  • Scene inspection — Get detailed information about the current Blender scene and objects
  • Object manipulation — Create, modify, and delete 3D objects via AI-generated Python code
  • Material control — Apply and modify materials and colours
  • Viewport screenshot — Let the AI see the current state of your 3D viewport
  • Code execution — Run arbitrary Python / bpy code in Blender from your AI client

Components

blender-mcp/
├── addon.py                  ← Blender addon (install inside Blender)
├── src/
│   └── blender_mcp/
│       ├── __init__.py
│       └── server.py         ← MCP bridge server (runs on your machine)
├── pyproject.toml
├── LICENSE
└── README.md

The system has two parts:

  1. Blender Addon (addon.py) — creates a socket server inside Blender that receives and executes commands
  2. MCP Server (src/blender_mcp/server.py) — implements the Model Context Protocol and connects to the Blender addon

Prerequisites

Requirement Version
Blender 3.0 or newer
Python 3.10 or newer
uv latest

Install uv

macOS / Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

Restart your terminal after installing.

Windows (PowerShell)

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Then add uv to your PATH (windows only, restart terminal after):

$localBin = "$env:USERPROFILE\.local\bin"
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
[Environment]::SetEnvironmentVariable("Path", "$userPath;$localBin", "User")

Verify uv is installed:

uv --version

Installation

Step 1 — Clone the repo

git clone https://github.com/jagathgj/BlenderMCP.git
cd BlenderMCP

Step 2 — Set up the Python environment

uv venv
source .venv/bin/activate        # macOS / Linux
# .venv\Scripts\activate         # Windows

Step 3 — Install dependencies

uv pip install mcp

Verify the install:

python3 -c "import mcp; print('mcp installed ok')"

Step 4 — Install the Blender Addon

  1. Open Blender
  2. Go to Edit → Preferences → Add-ons → Install…
  3. Select addon.py from this repo
  4. Enable it by checking the box next to Interface: Blender MCP

Step 5 — Start the addon in Blender

  1. In the 3D Viewport press N to open the sidebar
  2. Click the BlenderMCP tab
  3. Click Connect to MCP Server

Step 6 — Configure your AI client

Find the full path to the venv Python:

which python3   # after activating the venv
# e.g. path/to/BlenderMCP/.venv/bin/python3

IBM Bob IDE

IBM Bob IDE uses a specialized mode that provides an optimized workflow for Blender 3D development. It includes scene analysis, viewport inspection, and intelligent code generation for bpy operations.

Step 1: Configure MCP Server in IBM Bob IDE

  1. Go to Settings → MCP

  2. Add the BlenderMCP server configuration:

{
    "mcpServers": {
        "blender-mcp": {
            "command": "path/to/BlenderMCP/.venv/bin/python3",
            "args": ["path/to/BlenderMCP/src/blender_mcp/server.py"],
            "description": "Connect Blender to AI assistants for 3D scene creation and manipulation"
        }
    }
}

Replace path/to/BlenderMCP with your actual clone path(Refer step 6) in both command and args .

Step 2: Import Bob Mode

  1. Go to Settings → Modes

  2. Click Import button

  3. Select the blender-bob-mode.yaml file from this repository

  4. Select "🧊 Blender for 3D" mode from the mode selector in Bob IDE

The Bob mode will automatically use the BlenderMCP server configured in your MCP settings.


Claude Desktop

Edit claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
    "mcpServers": {
        "blender-mcp": {
            "command": "path/to/BlenderMCP/.venv/bin/python3",
            "args": ["path/to/BlenderMCP/src/blender_mcp/server.py"]
        }
    }
}

Replace path/to/BlenderMCP with your actual clone path.

Cursor

Go to Settings → MCP and add:

{
    "mcpServers": {
        "blender-mcp": {
            "command": "/path/to/BlenderMCP/.venv/bin/python3",
            "args": ["/path/to/BlenderMCP/src/blender_mcp/server.py"]
        }
    }
}

Windows (Cursor):

{
    "mcpServers": {
        "blender-mcp": {
            "command": "C:\\path\\to\\BlenderMCP\\.venv\\Scripts\\python.exe",
            "args": ["C:\\path\\to\\BlenderMCP\\src\\blender_mcp\\server.py"]
        }
    }
}

VS Code

{
    "mcpServers": {
        "blender-mcp": {
            "type": "stdio",
            "command": "/path/to/BlenderMCP/.venv/bin/python3",
            "args": ["/path/to/BlenderMCP/src/blender_mcp/server.py"]
        }
    }
}

⚠️ Run only one instance of the MCP server at a time (either IBM Bob or Claude Desktop, not both).

Restart your AI client after saving the config.


Environment Variables

Variable Default Description
BLENDER_HOST localhost Host where the Blender addon is running
BLENDER_PORT 9876 Port configured in the Blender addon panel

For a remote Blender instance, add to your MCP config:

{
    "mcpServers": {
        "blender-mcp": {
            "command": "/path/to/.venv/bin/python3",
            "args": ["/path/to/server.py"],
            "env": {
                "BLENDER_HOST": "192.168.1.100",
                "BLENDER_PORT": "9876"
            }
        }
    }
}

Available Tools

Tool Description
ping Check connectivity with the Blender addon
get_scene_info Scene name, object count, render engine, frame range
list_objects All objects; optional type filter (MESH, CAMERA, LIGHT…)
get_object_info Location, rotation, scale, mesh stats, bounding box
get_viewport_screenshot Capture the 3D viewport as an image
execute_blender_code Run arbitrary Python / bpy code inside Blender

Example Prompts

  • "What objects are in my current Blender scene?"
  • "Take a screenshot of the viewport so I can see what's there"
  • "Create a red metallic sphere at position (0, 0, 2)"
  • "Point the camera at the origin and set it to isometric projection"
  • "Add a sun light above the scene and set its strength to 3"
  • "List all mesh objects and show their bounding box dimensions"

Troubleshooting

ModuleNotFoundError: No module named 'mcp'
The venv Python isn't being used. Make sure the command in your config points to .venv/bin/python3 inside the repo, not a system Python. Run uv pip install mcp inside the activated venv.

Connection closed / MCP error -32000
Usually means the server crashed on startup. Check that mcp is installed and the path to server.py in your config is correct.

Could not connect to Blender
Make sure you clicked Connect to MCP Server in the BlenderMCP panel inside Blender before issuing any commands.

Connection refused on port 9876
Check the port in Blender's panel matches BLENDER_PORT (both default to 9876).

Addon not visible in the sidebar
Press N in the 3D Viewport to reveal the sidebar, then look for the BlenderMCP tab.

Tool calls time out
Break complex requests into smaller steps. Code execution has a 180-second timeout.

Still stuck?
Disable and re-enable the addon in Blender Preferences, then click Connect again.


Technical Details

Communication Protocol

Simple JSON over TCP sockets:

  • Request: { "type": "<command>", "params": { ... } }
  • Response: { "status": "success"|"error", "result": <any> | "message": <str> }

Security

The execute_blender_code tool runs arbitrary Python code inside Blender. Always save your work before using it, and only connect to AI services you trust.


Contributing

Contributions are welcome. Please open an issue first to discuss what you'd like to change.

License

MIT © Jagath Jayakumar

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选