
capoomgit/Houdini-mcp 是从 https://github.com/capoomgit/houdini-mcp. 导入的 MCP 服务器候选。
概览
capoomgit/Houdini-mcp 是从 https://github.com/capoomgit/houdini-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
HoudiniMCP 允许您使用 Model Context 协议(MCP),从 Claude 控制 SideFX Houdini。它包括:
- 一个Houdini插件(Python包),监听本地端口(默认为
localhost:9876),并处理命令(创建和修改节点、执行代码等)。 - 一个MCP桥脚本,你通过uv(或系统Python)运行,通过stdin/stdout与Claude通信,TCP与Houdini通信。
以下是设置Houdini、uv和Claude Desktop的完整说明。
目录
- 要求
- Houdini MCP 插件安装
- 文件夹布局
- 搁板工具(可选)
- 软件包集成(可选)
- 安装
mcpPython 包 - 在Windows上使用UV
- 直接使用 pip
- 桌面版桥接脚本与 Claude
- 桥接剧本
- 告诉Claude桌面使用你的脚本
- 测试与使用
- 排查
要求
- SideFX 胡迪尼
- 呃
- Claude Desktop(最新版本)
1.Houdini MCP 插件安装
1.1 文件夹布局
在你的 Houdini 脚本目录中创建一个文件夹: C:/用户/用户名/文档/houdini19。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
HoudiniMCP – Connect Houdini to Claude via Model Context Protocol
HoudiniMCP allows you to control SideFX Houdini from Claude using the Model Context Protocol (MCP). It consists of:
- A Houdini plugin (Python package) that listens on a local port (default
localhost:9876) and handles commands (creating and modifying nodes, executing code, etc.). - An MCP bridge script you run via uv (or system Python) that communicates via stdin/stdout with Claude and TCP with Houdini.
Below are the complete instructions for setting up Houdini, uv, and Claude Desktop.
Table of Contents
- Requirements
- Houdini MCP Plugin Installation
- Installing the
mcpPython Package - Bridging Script and Claude for Desktop
- Testing & Usage
- Troubleshooting
Requirements
- SideFX Houdini
- uv
- Claude Desktop (latest version)
1. Houdini MCP Plugin Installation
1.1 Folder Layout
Create a folder in your Houdini scripts directory: C:/Users/YourUserName/Documents/houdini19.5/scripts/python/houdinimcp/
Inside houdinimcp/, place:
__init__.py– handles plugin initialization (start/stop server)server.py– defines theHoudiniMCPServer(listening on port9876)houdini_mcp_server.py– optional bridging script (some prefer a separate location)pyproject.toml
(If you prefer, houdini_mcp_server.py can live elsewhere. As long as you know its path for running with uv.)
1.2 Shelf Tool
create a Shelf Tool to toggle the server in Houdini:
- Right-click a shelf → “New Shelf…”
Name it “MCP” or something similar
-
Right-click again → “New Tool…” Name: “Toggle MCP Server” Label: “MCP”
-
Under Script, insert something like:
import hou
import houdinimcp
if hasattr(hou.session, "houdinimcp_server") and hou.session.houdinimcp_server:
houdinimcp.stop_server()
hou.ui.displayMessage("Houdini MCP Server stopped")
else:
houdinimcp.start_server()
hou.ui.displayMessage("Houdini MCP Server started on localhost:9876")
1.3 Packages Integration
If you want Houdini to auto-load your plugin at startup, create a package file named houdinimcp.json in the Houdini packages folder (e.g. C:/Users/YourUserName/Documents/houdini19.5/packages/):
{
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"houdini": {
"command": "uv",
"args": [
"run",
"python",
"C:/Users/<YourUserName>/Documents/houdini19.5/scripts/python/houdinimcp/houdini_mcp_server.py"
]
}
}
}