nuke_mcp

nuke_mcp

15

Nuke-MCP is a tool that connects The Foundry's Nuke to AI systems using the Model Context Protocol (MCP). It allows AI assistants to interact with Nuke for tasks like node management, rendering, and script information retrieval.

Nuke-MCP

Nuke-MCP serves as a bridge connecting The Foundry's Nuke with AI systems through the Model Context Protocol (MCP). This integration allows for rich interaction with Nuke via AI assistants, which can:

  • Retrieve information about Nuke scripts
  • Create, modify, and delete nodes
  • Manage node positioning in the graph
  • Connect nodes
  • Control playback and rendering actions
  • Execute Python code within Nuke

Components

  • Nuke Addon: A Nuke script that establishes a socket server within Nuke
  • MCP Server: A Python server facilitating interaction between AI systems and Nuke
  • Entry Point: Starts the MCP server

Usage

  1. Install the Nuke addon by copying the nuke_mcp_addon.py file to your Nuke scripts folder or Python path.
  2. Optionally, create a startup script to automatically load the addon upon Nuke's startup.
  3. For manual loading, you can activate the addon each time via the Script Editor panel.

Troubleshooting

To work with Nuke-MCP in Claude Desktop, configure the settings to allow the connection and potentially modify the configuration file to add the Nuke-MCP server configuration.

System Architecture

The system is comprised of three main components: the Nuke Addon, MCP Server, and AI Client, which collaborate to execute various tasks within Nuke.

Available Tools

Tools exposed by the MCP server include functions to get script info, node management, rendering, and executing arbitrary code inside Nuke.