Houdini MCP Server
Enables AI-assisted 3D content creation by allowing Claude Code to control SideFX Houdini directly, including creating nodes, setting parameters, executing HScript commands, and building complex procedural networks.
README
Houdini MCP Server
Control SideFX Houdini directly from Claude Code using the Model Context Protocol (MCP).
This project enables AI-assisted 3D content creation by allowing Claude to create nodes, set parameters, execute HScript commands, and build complex procedural networks in Houdini.
Features
🚀 Unlimited Power - Do ANYTHING in Houdini!
This tool gives Claude full access to Houdini's capabilities:
- ALL Contexts: SOPs, DOPs, COPs, CHOPs, VOPs, ROPs, LOPs - Everything!
- Any Node Type: Geometry, simulations, compositing, animation, rendering
- Full HScript Access: Execute any Houdini command with
execute_hscript - VEX Code: Write custom procedural logic inline
- Simulations: Particles, fluids, pyro, cloth, RBD, crowds
- Complex Networks: Build intricate procedural systems
- Real-time Control: Execute commands while Houdini is running
- Natural Language: Just describe what you want in plain English
Core MCP Tools
- Node Management: Create, delete, and connect nodes programmatically
- Parameter Control: Set and animate node parameters with expressions
- Scene Inspection: Query scene structure and node information
- HScript Execution: Run ANY HScript command directly in Houdini
- Network Building: Connect complex node chains automatically
Architecture
The system consists of two components:
- MCP Server (
houdini_mcp_server.py): Runs as a Claude Code MCP server, exposes tools to Claude - Houdini Plugin (
houdini_plugin.py): Runs inside Houdini, listens for commands via TCP socket
┌─────────────┐ ┌──────────────────┐ ┌─────────────┐
│ Claude Code │ ◄─MCP──►│ MCP Server │◄──TCP──►│ Houdini │
│ │ │ (stdio) │ :9876 │ Plugin │
└─────────────┘ └──────────────────┘ └─────────────┘
Requirements
- Houdini 19.5 or later (tested with Houdini 21)
- Python 3.10+ (included with Houdini)
- Claude Code CLI
- Operating System: macOS, Linux, or Windows
Installation
1. Clone the Repository
git clone https://github.com/atayilgun/Houdini-claudecode-mcp.git
cd Houdini-claudecode-mcp
2. Run Setup Script
./setup.sh
The setup script will:
- Detect your Houdini installation
- Install Python dependencies
- Configure Claude Code with the MCP server
3. Start the Houdini Plugin
- Open Houdini
- Go to Windows → Python Shell
- Run these commands in the Python Shell:
import sys
sys.path.append('/path/to/houdini-mcp') # Replace with your actual path
from houdini_plugin import HoudiniMCPServer
server = HoudiniMCPServer()
server.start()
You should see:
✅ Houdini MCP Server listening on localhost:9876
Ready to receive commands from Claude Code!
Usage
Once the plugin is running, you can control Houdini from Claude Code using natural language:
Basic Examples
Create objects:
Create a cube in Houdini
Multiple objects:
Create a sphere at position (5, 0, 0) and a cube at the origin
Animation:
Make the cube move from X=0 to X=10 over 48 frames
Complex procedural setups:
Create a particle system with 5000 points scattered on a sphere,
add colorful gradients, and make them flow like wind
Available MCP Tools
Claude has access to these tools:
create_node(node_type, node_name, parent)- Create a new nodedelete_node(node_path)- Delete a nodeconnect_nodes(source_path, dest_path)- Connect nodesset_parameter(node_path, param_name, param_value)- Set parameter valuesget_scene_info()- Get information about the sceneexecute_hscript(code)- Execute HScript commands
Examples
See the examples/ directory for Python scripts that demonstrate various capabilities:
create_animated_cube.py- Basic animation exampleparticle_system.py- Advanced particle effectsprocedural_network.py- Building complex node networks
Manual Setup (Alternative)
If the setup script doesn't work for your system:
1. Install Dependencies
# Using Houdini's Python
/path/to/houdini/python3 -m pip install fastmcp httpx --user
2. Configure Claude Code
claude mcp add houdini --transport stdio -- /path/to/houdini/python3 /path/to/houdini_mcp_server.py
3. Verify Installation
claude mcp list
claude mcp get houdini
Troubleshooting
Port Already in Use
If you see Address already in use error:
- Make sure no other instance of the plugin is running
- Change the port in both
houdini_mcp_server.pyandhoudini_plugin.py
Cannot Connect to Houdini
- Verify Houdini is running
- Verify the plugin is loaded in Houdini's Python Shell
- Check firewall settings
MCP Server Not Found
# Check if server is registered
claude mcp list
# If not listed, run setup again
./setup.sh
Python Import Errors
Make sure you're using Houdini's Python, not your system Python:
/Applications/Houdini/Current/Frameworks/Python.framework/Versions/Current/bin/python3 --version
Development
Project Structure
houdini-mcp/
├── README.md # This file
├── requirements.txt # Python dependencies
├── setup.sh # Installation script
├── houdini_mcp_server.py # MCP server (runs with Claude)
├── houdini_plugin.py # Plugin (runs in Houdini)
└── examples/ # Example scripts
├── create_animated_cube.py
├── particle_system.py
└── procedural_network.py
Running Tests
Test the connection:
python3 examples/test_connection.py
Adding New Tools
To add a new MCP tool:
- Add the tool decorator and function in
houdini_mcp_server.py:
@mcp.tool()
def your_new_tool(param1: str, param2: int) -> str:
"""Tool description"""
result = send_command({
"type": "your_command",
"params": {"param1": param1, "param2": param2}
})
return f"Result: {result}"
- Add the command handler in
houdini_plugin.py:
def _execute_command(self, command):
cmd_type = command.get("type")
if cmd_type == "your_command":
return self._your_command_handler(command.get("params", {}))
Security Considerations
- The plugin accepts commands from localhost only by default
- HScript execution should be used carefully as it runs code directly in Houdini
- Always review generated code before executing
- Consider network security if opening to non-localhost connections
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT License - See LICENSE file for details
Acknowledgments
- Built with FastMCP
- Powered by Anthropic's Model Context Protocol
- Made for SideFX Houdini
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
What Can It Do?
Short answer: EVERYTHING!
The tool already has full access to Houdini through execute_hscript and can:
✅ Create any node in any context (SOPs, DOPs, COPs, CHOPs, VOPs, etc.) ✅ Build simulations (Pyro, FLIP fluids, RBD, Vellum, Wire, etc.) ✅ Composite images (COP networks, color correction, effects) ✅ Animate anything (Keyframes, CHOPs, expressions, motion paths) ✅ Write VEX code (Custom attributes, procedural geometry, deformers) ✅ Manage renders (ROPs, render settings, batch rendering) ✅ Query scene data (Node info, parameter values, geometry attributes) ✅ Execute Python in Houdini (Via HScript's python command)
Example capabilities:
- "Create a pyro explosion simulation"
- "Set up a FLIP water tank with collision objects"
- "Build a procedural building generator with multiple levels"
- "Create a particle system with custom VEX forces"
- "Set up a COP network to add glow and color grade"
Future Enhancements
These are convenience features, not limitations:
- [ ] Direct viewport rendering API (currently use HScript)
- [ ] Binary geometry data transfer (currently use file I/O)
- [ ] Node preset library management
- [ ] Multi-session support for team workflows
- [ ] Web dashboard for monitoring
Happy procedural modeling with AI! 🎨✨
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.