nuke-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NUKE_MCP_PORT | No | Port used by the bridge socket server; set it the same on both sides. | 49512 |
| NUKE_MCP_TIMEOUT | No | Client timeout in seconds. | 600 |
| NUKE_MCP_AUTOSTART | No | Set to 0 to prevent the bridge from starting with the Nuke GUI. | 0 |
| NUKE_MCP_COMMAND_PATHS | No | Extra command directories to load Nuke-side commands from. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Controls a running Foundry Nuke session through the nuke_mcp_bridge plugin.
Changes are live in the user's open Nuke and each tool call that edits the
script is ONE undo step (the user can Ctrl+Z it). Nothing is saved to disk
unless save_script is called: don't save unless asked.
Node names are full dotted paths inside groups (Group1.Blur1); "root" is the Root node.
Colour knob values are in the script's working space (usually scene-linear);
use convert_color to turn on-screen/hex colours into working-space values.
For anything without a dedicated tool use exec_python, or call for a bridge
command listed by list_commands.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pingA | Check Nuke is reachable: version, GUI/headless, open script, modified flag. |
| list_commandsA | List every command the Nuke-side bridge offers (incl. user extension
commands from ~/.nuke/nuke_mcp_commands/), with signatures and docs.
Any of them can be run with |
| callA | Run any bridge command by name with keyword params. Use for commands that have no dedicated tool (see list_commands). |
| reload_commandsA | Re-import the Nuke-side command modules after editing/adding them (no Nuke restart). Returns the count and any load errors. |
| exec_pythonA | Run Python inside the live Nuke session as ONE undo step. |
| batchA | Run several bridge commands in one go as ONE undo step, e.g. [{"cmd": "create_node", "params": {...}}, {"cmd": "set_inputs", "params": {...}}]. If one fails (stop_on_error) the whole batch is rolled back. |
| list_nodesA | List nodes with class, inputs, position and label. Filter by exact
class (e.g. "Constant", "Read", "Write"), name substring or selection;
|
| get_nodeA | Inspect one node: class, inputs, dependents, and knob values ("non_default" knobs by default, "all", "none", or a list of knob names). |
| knob_infoB | Details for one knob: class, value, label, tooltip, script form and, for dropdowns, the allowed values. |
| set_knobsA | Set knobs on one or more nodes as ONE undo step. changes = {"Constant1": {"color": [0.8, 0.1, 0.02]}, "Blur1": {"size": 4}} Value forms: number/string/bool; list = per channel (fewer values than channels sets only the leading ones, e.g. RGB of an RGBA colour, alpha kept); {"expression": "...", "channel": i}; {"script": "<.nk syntax>"}; {"keys": {"1": v, "10": v}} for keyframes. Move nodes with "xpos"/"ypos". Returns the new values. |
| create_nodeB | Create a node (one undo step) without disturbing the selection. inputs = source node names by input index (null = unconnected); knobs use the same value forms as set_knobs; position = [x, y], else placed automatically. |
| delete_nodesB | Delete nodes (one undo step). |
| set_inputsB | Connect a node's inputs: {"0": "Read1", "1": null} (index -> source, null disconnects). One undo step. |
| rename_nodeB | Rename a node; returns the name it actually got (Nuke de-duplicates). |
| select_nodesB | Select nodes in the DAG (replaces the selection unless add=True). |
| script_infoA | Open script: path, modified, fps, format, frame range, current frame, colour management (OCIO config, working space, viewer process), node counts. |
| save_scriptA | Save the script (or Save As to |
| set_frameC | Move the timeline to a frame. |
| view_nodeB | Show a node in the Viewer (GUI only). |
| renderA | Render a Write node in the open Nuke. Freezes the GUI until done:
for long renders run |
| sample_pixelB | Read pixel values (working space) from a node's output; default centre pixel, current frame, rgba. |
| convert_colorB | Convert an RGB colour with the script's own OCIO config, computed by Nuke. color: "#rrggbb" or [r, g, b]. source "display" (default) means "as it looks on screen through the Viewer's view transform" so the result, put in a Constant, displays as that hex. Otherwise give an OCIO colourspace/role (e.g. "sRGB - Texture" for a plain sRGB-encoded value). target defaults to the working space ("scene_linear"). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 22 tools
Most tools target a distinct resource+action (create_node, delete_nodes, set_inputs, rename_node, select_nodes), and knob_info vs get_node is a minor but readable split (single-knob detail vs whole-node inspection). The real overlap is the meta-layer: `call`, `batch`, and `exec_python` can all perform operations the dedicated tools already cover, though descriptions explicitly state precedence ('Use for commands that have no dedicated tool', 'Prefer the dedicated tools when one fits').
Nearly everything follows a predictable snake_case verb_noun pattern (get_node, set_knobs, list_nodes, create_node, set_frame, save_script), with a few sensible single-verb commands (ping, render, call, batch). Minor deviations: knob_info/script_info use a noun_info form, and delete_nodes is plural while create_node/rename_node are singular.
22 tools is slightly on the heavy side but each maps to a real Nuke operation (DAG editing, knob manipulation, rendering, colour conversion, pixel sampling, script lifecycle). Nothing feels redundant at the tool level; the count reflects a genuinely broad domain rather than padding.
Solid lifecycle coverage: create/delete/rename/select/list/inspect nodes, wire inputs, read and write knobs, plus render, save, frame control, colour conversion and pixel sampling. The escape hatches (list_commands/call/exec_python/batch) mean uncovered operations are still reachable, so there are no true dead ends; absence of explicit undo/redo or group-navigation tools is a minor gap.