CH

capoomgit/houdini-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

312 stars 41 forks 质量 71 趋势 4MIT

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。它包括:

  1. 一个Houdini插件(Python包),监听本地端口(默认为localhost:9876),并处理命令(创建和修改节点、执行代码等)。
  2. 一个MCP桥脚本,你通过uv(或系统Python)运行,通过stdin/stdout与Claude通信,TCP与Houdini通信。

以下是设置Houdini、uv和Claude Desktop的完整说明。


目录

  1. 要求
  2. Houdini MCP 插件安装
  3. 文件夹布局
  4. 搁板工具(可选)
  5. 软件包集成(可选)
  6. 安装 mcp Python 包
  7. 在Windows上使用UV
  8. 直接使用 pip
  9. 桌面版桥接脚本与 Claude
  10. 桥接剧本
  11. 告诉Claude桌面使用你的脚本
  12. 测试与使用
  13. 排查

要求

  • 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:

  1. A Houdini plugin (Python package) that listens on a local port (default localhost:9876) and handles commands (creating and modifying nodes, executing code, etc.).
  2. 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

  1. Requirements
  2. Houdini MCP Plugin Installation
    1. Folder Layout
    2. Shelf Tool (Optional)
    3. Packages Integration (Optional)
  3. Installing the mcp Python Package
    1. Using uv on Windows
    2. Using pip Directly
  4. Bridging Script and Claude for Desktop
    1. The Bridging Script
    2. Telling Claude Desktop to Use Your Script
  5. Testing & Usage
  6. 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 the HoudiniMCPServer (listening on port 9876)
  • 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:

  1. Right-click a shelf → “New Shelf…”

Name it “MCP” or something similar

  1. Right-click again → “New Tool…” Name: “Toggle MCP Server” Label: “MCP”

  2. 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/):

{
在 GitHub 查看完整 README

安装

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" ] } } }