
HoudiniMCP 通过模型上下文协议(MCP)将 Houdini 与 Claude AI 连接,使 Claude 能够直接与 Houdini 交互并控制它。
概览
HoudiniMCP 通过模型上下文协议(MCP)将 Houdini 与 Claude AI 连接,使 Claude 能够直接与 Houdini 交互并控制它。这一集成支持提示辅助的 3D 建模、场景创建、仿真设置和渲染。 - : 通过基于套接字的服务器将 Claude AI 连接到 Houdini - : 创建、修改和删除 Houdini 网络中的节点 - : 生成带有可自定义参数的各种原语类型 - : 应用和修改材质 - : 获取当前 Houdini 场景的详细信息 - : 创建并运行物理模拟(流体、粒子等) - : 配置并执行渲染操作 - : 从 Claude 在 Houdini 中运行任意 Python 代码 该系统由两个主要组成部分组成: 1. : 一个 Houdini Python 扩展,可在 Houdini 内创建一个套接字服务器以接收和执行命令 2.: 一个实现模型上下文协议并连接 Houdini 插件的 Python 服务器 - Houdini 19.0 或更新版本 - Python 3。
概述(AI 翻译)
HoudiniMCP 通过模型上下文协议(MCP)将 Houdini 与 Claude AI 连接,使 Claude 能够直接与 Houdini 交互并控制它。这一集成支持提示辅助的 3D 建模、场景创建、仿真设置和渲染。
特色
- 双向通信:通过基于套接字的服务器将 Claude AI 连接到 Houdini
- 节点操作:在 Houdini 网络中创建、修改和删除节点
- 几何创建:生成具有可定制参数的各种原始类型
- 材料控制:应用和修改材料
- 现场检查:获取当前胡迪尼场景的详细信息
- 模拟设置:创建并运行物理模拟(流体、粒子等)
- 渲染控制:配置并执行渲染操作
- 代码执行:在Houdini中从Claude运行任意Python代码
组成部分
该系统由两个主要组成部分组成:
- Houdini 插件(
addon.py)):一个 Houdini Python 扩展,在 Houdini 内创建套接字服务器以接收和执行命令 - **MCP 服务器('src/houdini_mcp/server.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
HoudiniMCP - Houdini Model Context Protocol Integration
HoudiniMCP connects Houdini to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Houdini. This integration enables prompt-assisted 3D modeling, scene creation, simulation setup, and rendering.
Features
- Two-way communication: Connect Claude AI to Houdini through a socket-based server
- Node manipulation: Create, modify, and delete nodes in Houdini networks
- Geometry creation: Generate various primitive types with customizable parameters
- Material control: Apply and modify materials
- Scene inspection: Get detailed information about the current Houdini scene
- Simulation setup: Create and run physics simulations (fluids, particles, etc.)
- Rendering control: Configure and execute rendering operations
- Code execution: Run arbitrary Python code in Houdini from Claude
Components
The system consists of two main components:
- Houdini Addon (
addon.py): A Houdini Python extension that creates a socket server within Houdini to receive and execute commands - MCP Server (
src/houdini_mcp/server.py): A Python server that implements the Model Context Protocol and connects to the Houdini addon
Installation
Prerequisites
- Houdini 19.0 or newer
- Python 3.10 or newer
- uv package manager:
If you’re on Mac, please install uv as
brew install uv
On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
and then
set Path=C:\Users\username\.local\bin;%Path%
Otherwise installation instructions are on their website: Install uv
⚠️ Do not proceed before installing UV
Claude for Desktop Integration
Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:
{
"mcpServers": {
"houdini": {
"command": "uvx",
"args": [
"houdini-mcp"
]
}
}
}
Cursor integration
Run houdini-mcp without installing it permanently through uvx. Go to Cursor Settings > MCP and paste this as a command.
uvx houdini-mcp
⚠️ Only run one instance of the MCP server (either on Cursor or Claude Desktop), not both
Installing the Houdini Addon
- Download the
addon.pyfile from this repo - Copy it to your Houdini Python scripts directory:
- Windows:
C:\Users\username\Documents\houdini19.x\scripts\ - Mac:
/Users/username/Library/Preferences/houdini/19.x/scripts/ - Linux:
~/houdini19.x/scripts/
- Windows:
- Start Houdini and run the following Python code in a Python panel:
import addon server = addon.init_houdinimcp()
Usage
Starting the Connection
- In Houdini, run the Python code to initialize the server:
import addon server = addon.init_houdinimcp()
安装
uvx houdini-mcp配置
{
"mcpServers": {
"houdini": {
"command": "uvx",
"args": [
"houdini-mcp"
]
}
}
}