houdini-mcp

houdini-mcp

An MCP server for SideFX Houdini that enables AI assistants to interactively control, construct, inspect, and visually verify 3D procedural scenes through tools like node creation, parameter editing, viewport capture, and rendering.

Category
访问服务器

README

Houdini MCP Server

A Model Context Protocol (MCP) server for SideFX Houdini, enabling AI assistants like Claude Desktop, Claude Code, Antigravity IDE, and Custom Connectors to interactively control, construct, inspect, and visually verify 3D procedural scenes inside Houdini.


🏗 Architecture Overview

Houdini MCP uses a decoupled two-process design:

Claude / Antigravity IDE  <--- MCP (stdio / SSE / HTTPS) --->  Houdini MCP Server (Python Process)
                                                                       |
                                                           Binary Framed TCP Socket (127.0.0.1:9876)
                                                                       |
                                                           Houdini Listener (embedded in Houdini UI)
                                                           (Main Thread Dispatcher -> hou API)
  1. Houdini Listener (houdini_mcp.listener): Embedded TCP socket server running inside Houdini's Python environment. Uses hdefereval to safely execute hou API commands synchronously on Houdini's main GUI thread.
  2. MCP Server (houdini_mcp.server): Standalone FastMCP process launched over standard I/O (stdio) or Server-Sent Events (SSE / HTTP / HTTPS). Exposes high-level 3D manipulation tools and communicates with the Houdini listener via binary length-prefixed TCP socket framing.

🛠 Available MCP Tools

Tool Category Description
get_scene_info Core Returns hip file path, current frame, FPS, and root network trees (/obj, /stage, /out, /mat, /img).
get_node_info Core Returns node type, parameter dictionary, input/output connection paths for a specific node.
create_node Core Creates a new node under a parent network (e.g. parent_path='/obj', node_type='geo').
set_parm Core Sets scalar, string, menu, or vector list parameters on a node with smart menu label matching.
get_parm Core Evaluates parameter values on a node.
connect_nodes Core Connects output ports to input ports between nodes.
delete_node Core Destroys a node at path.
cook_node Core Force cooks a node and returns geometry statistics (point, primitive, vertex counts, attribute lists).
capture_viewport Core Captures a viewport screenshot from the SceneViewer tab and returns an MCP Image object (PNG) for visual AI inspection.
execute_houdini_code Core Escape hatch to execute arbitrary Python code directly inside Houdini with hou available.
create_wrangle VEX & Attribs Spawns an Attribute Wrangle SOP with VEX code snippet pre-populated.
inspect_attributes VEX & Attribs Queries attribute list and domain details (points, prims, vertices, detail).
promote_attribute VEX & Attribs Promotes attributes between domains (point $\rightarrow$ prim $\rightarrow$ detail).
layout_network Networks Auto-arranges network nodes cleanly in the Network Editor.
create_node_preset_network Networks Spawns procedural sub-network presets (scatter_instance, rbd_destruction, terrain_erosion).
create_group Networks Spawns groupcreate SOP to group points, primitives, or edges.
create_material Shading & USD Spawns Karma MaterialX or shader builder under /mat or /stage/materiallibrary.
assign_material Shading & USD Binds a material path to geometry nodes or USD primitives.
get_usd_stage_info Shading & USD Inspects USD prim tree and layer stack in Solaris/LOPs.
create_camera Cam & Lights Spawns camera node with focal length, aperture, resolution, and transform controls.
create_light Cam & Lights Spawns Dome Light, Area Light, Distant Light, or Spot Light with intensity and HDRI.
set_active_camera Cam & Lights Switches the active viewport camera to a specified camera node.
render_frame Rendering & Cache Triggers Karma / ROP render node to render a frame to disk.
bake_geometry_cache Rendering & Cache Creates a File Cache SOP node to bake simulation/geometry caches to disk.
save_hip_file File & Assets Saves current Houdini .hip scene file.
load_hip_file File & Assets Opens an existing Houdini .hip scene file.
export_asset File & Assets Exports geometry output to .obj, .fbx, .abc, or .usd.
instantiate_hda File & Assets Instantiates a Houdini Digital Asset (.hda / .otl).

🚀 Quick Start Guide

1. Prerequisites

  • Houdini: SideFX Houdini 19.5+ (Indie, Core, or FX) with Python 3 enabled.
  • Python: Python 3.10+ on system PATH.

2. Install Python MCP Package

Clone/navigate to houdini-MCP and install package dependencies:

cd d:\Studio\houdini-MCP
pip install -e .[dev]

3. Install Houdini Listener & Shelf Tool

Option A: Automatic Package & Shelf Installation (Recommended)

  1. Run the shelf tool installer script using hython or Python:
    python scripts/install_shelf_tool.py
    
  2. Open Houdini. A Houdini MCP shelf tool button will be added to your active shelf set automatically. Click it anytime to toggle the listener server on/off (listening on 127.0.0.1:9876).

Option B: Manual Installation inside Houdini

  1. Open Houdini -> Open Python Shell (Windows -> Python Shell).
  2. Execute the script:
    exec(open(r"d:\Studio\houdini-MCP\scripts\install_shelf_tool.py").read())
    

🔌 Registering Server with AI Clients

1. Claude Desktop (stdio mode)

Edit %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "houdini": {
      "command": "python",
      "args": ["-m", "houdini_mcp.server"]
    }
  }
}

2. Custom Connectors / Remote Web Clients (SSE / HTTPS mode)

Launch the server in SSE mode:

# HTTP SSE mode (Default port 8000)
python -m houdini_mcp.server --transport sse --port 8000

# HTTPS SSE mode (with SSL certificates)
python -m houdini_mcp.server --transport sse --port 8443 --ssl

Exposing to Web UI / Custom Connectors via Cloudflare Tunnel

For web applications requiring a trusted public HTTPS URL (e.g. https://....trycloudflare.com/mcp):

cloudflared tunnel --url http://127.0.0.1:8000

Use the output URL in your connector settings:

  • Remote MCP server URL: https://<YOUR-TUNNEL-NAME>.trycloudflare.com/mcp

3. Antigravity / Agentic IDEs (Workspace Skill)

This repository includes a native workspace skill definition at .agents/skills/houdini-mcp/SKILL.md. Antigravity IDE will automatically discover and register the Houdini MCP tools when opening this project folder.


🧪 Testing & Verification

Test Connection Utility

To test that your running Houdini session is listening and accepting commands:

python scripts/test_connection.py

Running Unit Test Suite

Run unit tests for binary length-prefixed framing and mock TCP server resilience:

pytest

Testing with MCP Inspector

Inspect tools manually via standard I/O:

npx @modelcontextprotocol/inspector python -m houdini_mcp.server

🔒 Security Notice

  • The TCP socket listener binds exclusively to 127.0.0.1 (localhost). Do not bind to 0.0.0.0 or expose the socket port over untrusted local networks.
  • execute_houdini_code executes arbitrary Python code within your local Houdini session by design. Only connect trusted MCP clients running locally or through secure tunnels.

📄 License

MIT License

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选