Blender Open MCP
blender-open-mcp
blender-open-mcp是一个开源项目,它使用模型上下文协议 (MCP) 将 Blender 与本地 AI 模型(通过Ollama )集成。这允许您使用自然语言提示来控制 Blender,利用 AI 的强大功能来协助完成 3D 建模任务。
特征
**使用自然语言控制 Blender:**向本地运行的 Ollama 模型发送提示以在 Blender 中执行操作。
**MCP 集成:**使用模型上下文协议在 AI 模型和 Blender 之间进行结构化通信。
**Ollama 支持:**设计用于与 Ollama 配合使用,以便轻松管理本地模型。
**Blender 插件:**包括一个 Blender 插件,用于提供用户界面并处理与服务器的通信。
**PolyHaven 集成(可选):**通过 AI 提示直接在 Blender 中从PolyHaven下载并使用资产(HDRI、纹理、模型)。
基本3D操作:
获取场景和对象信息
创建基本体
修改和删除对象
应用材料
**渲染支持:**使用该工具渲染图像并根据输出检索信息。
Related MCP server: BlenderMCP
安装
先决条件
Blender: Blender 3.0 或更高版本。从blender.org下载。
**Ollama:**从ollama.com安装,按照特定于操作系统的说明进行操作。
Python: Python 3.10 或更高版本。
**uv:**使用
pip install uv安装。**Git:**克隆存储库所需。
安装步骤
克隆存储库:
git clone https://github.com/dhakalnirajan/blender-open-mcp.git cd blender-open-mcp创建并激活虚拟环境(推荐):
uv venv source .venv/bin/activate # On Linux/macOS .venv\Scripts\activate # On Windows安装依赖项:
uv pip install -e .安装 Blender 插件:
打开 Blender。
转到
Edit -> Preferences -> Add-ons。单击
Install...。从
blender-open-mcp目录中选择addon.py文件。启用“Blender MCP”插件。
下载 Ollama 模型(如果尚未安装):
ollama run llama3.2(也可以使用*
Gemma3*等其他模型。)
设置
**启动 Ollama 服务器:**确保 Ollama 在后台运行。
启动 MCP 服务器:
blender-mcp或者,
python src/blender_open_mcp/server.py默认情况下,它监听
http://0.0.0.0:8000,但您可以修改设置:blender-mcp --host 127.0.0.1 --port 8001 --ollama-url http://localhost:11434 --ollama-model llama3.2启动Blender附加服务器:
打开 Blender 和 3D 视口。
按
N打开侧边栏。找到“Blender MCP”面板。
点击“启动 MCP 服务器”。
用法
使用mcp命令行工具与blender-open-mcp交互:
示例命令
基本提示:
mcp prompt "Hello BlenderMCP!" --host http://localhost:8000获取场景信息:
mcp tool get_scene_info --host http://localhost:8000创建立方体:
mcp prompt "Create a cube named 'my_cube'." --host http://localhost:8000渲染图像:
mcp prompt "Render the image." --host http://localhost:8000使用 PolyHaven(如果启用):
mcp prompt "Download a texture from PolyHaven." --host http://localhost:8000
可用工具
工具名称 | 描述 | 参数 |
| 检索场景详细信息。 | 没有任何 |
| 检索有关对象的信息。 |
|
| 创建一个 3D 对象。 |
|
| 修改对象的属性。 |
|
| 删除一个对象。 |
|
| 为对象指定材质。 |
|
| 渲染图像。 |
|
| 在 Blender 中执行 Python 代码。 |
|
| 列出 PolyHaven 资产类别。 |
|
| 搜索 PolyHaven 资产。 |
|
| 下载 PolyHaven 资产。 |
|
| 应用下载的纹理。 |
|
| 设置Ollama模型。 |
|
| 设置 Ollama 服务器 URL。 |
|
| 列出可用的 Ollama 模型。 | 没有任何 |
故障排除
如果您遇到问题:
确保 Ollama 和
blender-open-mcp服务器正在运行。检查 Blender 的附加组件设置。
验证命令行参数。
请参阅日志以了解错误详细信息。
如需进一步帮助,请访问GitHub 问题页面。
祝您与 AI 愉快融合!🚀
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Cloud Blender for AI agents: scenes, assets, renders, MP4, STL, GLB — over hosted remote MCP.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows management and execution of Blender Python scripts, enabling users to create, edit and run scripts in a headless Blender environment through natural language interfaces.11-
- AlicenseBqualityDmaintenanceAn MCP server that enables AI models to directly control Blender for 3D modeling, scene manipulation, and material management through natural language. It supports advanced workflows including Python code execution, viewport visualization, and integration with external asset libraries like Poly Haven and Hyper3D.221MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to control Blender through natural language for 3D scene creation, animation, and rendering. It provides over 550 actions and direct Python execution via a bridge to a live local Blender session.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Blender 3D modeling and rendering through natural language commands via the Model Context Protocol.MIT