Houdini MCP Server

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.

Category
Visit Server

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:

  1. MCP Server (houdini_mcp_server.py): Runs as a Claude Code MCP server, exposes tools to Claude
  2. 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

  1. Open Houdini
  2. Go to Windows → Python Shell
  3. 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 node
  • delete_node(node_path) - Delete a node
  • connect_nodes(source_path, dest_path) - Connect nodes
  • set_parameter(node_path, param_name, param_value) - Set parameter values
  • get_scene_info() - Get information about the scene
  • execute_hscript(code) - Execute HScript commands

Examples

See the examples/ directory for Python scripts that demonstrate various capabilities:

  • create_animated_cube.py - Basic animation example
  • particle_system.py - Advanced particle effects
  • procedural_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.py and houdini_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:

  1. 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}"
  1. 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:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - See LICENSE file for details

Acknowledgments

Support

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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

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.

Official
Featured