touchdesigner-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@touchdesigner-mcp Build an audio-reactive visual with feedback in /project1 and capture the TOP."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TouchDesigner MCP
TouchDesigner MCP lets Codex inspect, build, wire, tune, sample, and visually verify a running TouchDesigner project. It is designed for generative visuals, audio-reactive systems, GLSL iteration, show-control networks, and fast agent-assisted prototyping.
The integration is local-first:
Codex / ChatGPT desktop / Codex CLI
│ MCP over stdio
▼
touchdesigner-mcp (Node.js)
│ authenticated HTTP on 127.0.0.1
▼
TouchDesigner Web Server DAT
│ main-thread Python callbacks
▼
your .toe networkWhat it can do
Inspect networks, operators, parameters, wiring, cook times, warnings, and script errors.
Create and connect COMP, TOP, CHOP, SOP, MAT, DAT, and POP operators.
Set constant parameters, Python expressions, and bind expressions.
Update GLSL/Text DAT source with optional compare-before-write protection.
Build a reusable audio analysis rig with
low,mid,high,level, andbeatchannels.Sample live CHOP values and return TOP captures as real MCP image content.
Apply ordered edit batches with a best-effort TouchDesigner undo block.
Run arbitrary TouchDesigner Python only when explicitly enabled on both sides.
The server uses the current split MCP TypeScript packages and serves both modern and legacy MCP clients through the SDK's stdio negotiation entry point.
Related MCP server: touchdesigner-agent-mcp
Requirements
TouchDesigner 2025 Official or newer. POP tooling requires a POP-capable build.
Node.js 20 or newer.
A local Codex client: ChatGPT desktop, Codex CLI, or the Codex IDE extension.
1. Install the TouchDesigner bridge
Clone this repository.
Drag
touchdesigner/install_bridge.pyinto/project1in TouchDesigner as a Text DAT.Right-click the DAT and select Run Script.
Copy the printed URL and token. The default URL is
http://127.0.0.1:9980.Confirm
http://127.0.0.1:9980/healthreturns JSON in a browser.
If TouchDesigner cannot find the sibling callback file, run this in the Textport with absolute paths:
installer = r"C:\path\to\touchdesigner-mcp\touchdesigner\install_bridge.py"
callbacks = r"C:\path\to\touchdesigner-mcp\touchdesigner\bridge_callbacks.py"
scope = {'__name__': 'touchdesigner_mcp_installer'}
exec(compile(open(installer, encoding='utf-8').read(), installer, 'exec'), scope)
scope['install'](callback_file=callbacks)The installer creates /project1/touchdesigner_mcp_bridge, a loopback-only Web Server DAT, its callback DAT, and a random bearer token. Save the .toe after installation.
2. Build the MCP server
npm install
npm run buildFrom the repository root, confirm it starts:
$env:TOUCHDESIGNER_URL = 'http://127.0.0.1:9980'
$env:TOUCHDESIGNER_TOKEN = 'paste-token-here'
node dist/index.jsThe process waits for MCP messages on stdin. Its readiness message is written to stderr so it never corrupts the MCP protocol stream.
3. Connect Codex
The supported CLI form is:
codex mcp add touchdesigner `
--env TOUCHDESIGNER_URL=http://127.0.0.1:9980 `
--env TOUCHDESIGNER_TOKEN=paste-token-here `
-- node C:\absolute\path\to\touchdesigner-mcp\dist\index.jsOr add this to ~/.codex/config.toml (also available as examples/codex.config.toml):
[mcp_servers.touchdesigner]
command = "node"
args = ["C:/absolute/path/to/touchdesigner-mcp/dist/index.js"]
startup_timeout_sec = 15
tool_timeout_sec = 60
default_tools_approval_mode = "writes"
[mcp_servers.touchdesigner.env]
TOUCHDESIGNER_URL = "http://127.0.0.1:9980"
TOUCHDESIGNER_TOKEN = "paste-token-here"Restart the local Codex client after adding the server, then use /mcp or codex mcp list to confirm it is enabled. The ChatGPT desktop app and Codex IDE extension also expose MCP server settings in their UI.
First session
Try this prompt:
Check TouchDesigner status. Inspect
/project1, build an audio-reactive analysis rig, then create a feedback-based visual whose displacement follows low frequencies and whose color follows high frequencies. Check the network for errors and capture the final TOP so we can iterate visually. Do not delete existing operators.
Codex can use this verification loop:
td_statustd_list_operatorsandtd_inspect_operatortd_build_audio_reactive_rigtd_batchfor coherent graph creation and wiringtd_sample_chopto calibrate live rangestd_get_errorstd_capture_topto evaluate the result visually
Tools
Tool | Purpose | Mutation |
| Bridge, build, project, timeline, capabilities | Read |
| Bounded recursive network discovery | Read |
| Parameters, wiring, cook data, errors | Read |
| Create any supported OP type | Write |
| Constants, expressions, bind expressions | Write |
| Reset/open/clear-style actions | Write |
| Network wiring | Write |
| GLSL, scripts, and callback source | Write |
| Live control/audio values | Read |
| PNG/JPEG visual feedback | Read |
| Errors, warnings, and script errors | Read |
| Standardized audio features | Write |
| Up to 100 ordered graph edits | Write/destructive |
| Delete exactly one non-protected OP | Destructive |
| Arbitrary Python, opt-in only | Destructive |
Audio-reactive design notes
td_build_audio_reactive_rig creates a source, full spectrum view, filtered low/mid/high RMS branches, a full-level RMS branch, a configurable beat gate, smoothing, and /OUT_AUDIO. Use the stable output Null in expressions and exports so downstream visuals survive internal changes.
Good mappings are usually nonlinear and smoothed:
low: feedback displacement, scale, particle emission, camera kick.mid: geometry deformation, noise amplitude, line width, scene transitions.high: bloom, chromatic separation, color temperature, strobe accents.level: master intensity or a subtle breathing envelope.beat: threshold gate for cuts, triggers, and event-style accents.
Sample the live channels before choosing ranges. A Math CHOP or Function CHOP can normalize, clamp, ease, and shape response curves more reliably than hard-coded multipliers.
Safety model
The bridge listens on
127.0.0.1by default and uses a random bearer token./healthis the only unauthenticated route and exposes no project data.Request bodies, list sizes, batch sizes, and image sizes are bounded.
/,/project1, the bridge itself, and its ancestors cannot be deleted.Arbitrary Python is absent from the MCP tool list unless
TOUCHDESIGNER_ALLOW_SCRIPT=true; the TouchDesigner bridge must independently allow it.td_set_dat_textsupportsexpectedTextfor optimistic concurrency.Batch rollback uses TouchDesigner's undo system and is best-effort; save/version important projects before large mutations.
Do not expose the Web Server DAT to another interface unless you add TLS, network controls, and an appropriate authentication design. Basic local bearer-token protection is not an internet-facing security boundary.
Configuration
Environment variable | Default | Meaning |
|
| Bridge base URL |
| empty | Bearer token printed by installer |
|
| Per-call timeout |
|
| Advertise arbitrary Python tool |
|
| Maximum decoded TOP capture size |
Development
npm run validate
npm run build
npm pack --dry-runTouchDesigner-specific code is syntax-checked outside TouchDesigner, while its behavior must be integration-tested in a running licensed TouchDesigner process. The HTTP client and error handling have isolated unit tests.
See docs/architecture.md, docs/protocol.md, and CONTRIBUTING.md for extension guidance.
Sources and compatibility
This project follows the official Codex MCP configuration documentation, the official MCP TypeScript SDK server guide, and Derivative's Web Server DAT, Webserver DAT class, Connector class, and TOP capture APIs.
License
MIT
Available Tools
15 toolstd_batchApply a TouchDesigner edit batchADestructive
Apply up to 100 ordered graph edits. With rollback enabled, the bridge undoes completed edits if one fails.
Inputs: operations (required), rollbackOnError.
td_build_audio_reactive_rigBuild an audio-reactive analysis rigA
Create a reusable CHOP analysis network with device/file input, spectrum, smoothed low/mid/high bands, level envelope, beat gate, and a stable output Null.
Inputs: file, name, lowHz, midHz, +6 more.
td_capture_topCapture a TOP previewARead-only
Capture a TOP as PNG or JPEG and return it as MCP image content for visual verification.
Inputs: path (required), format, quality.
td_connectConnect TouchDesigner operatorsAIdempotent
Wire an output connector to an input connector. Both operators must belong to compatible families.
Inputs: source (required), target (required), sourceConnector, targetConnector.
td_create_operatorCreate a TouchDesigner operatorA
Create one operator in a COMP using a TouchDesigner type name such as noiseTOP, audioSpectrumCHOP, or baseCOMP.
Inputs: type (required), parent (required), x, y, +2 more.
td_delete_operatorDelete a TouchDesigner operatorADestructiveIdempotent
Delete exactly one operator. Root and project components are protected by the bridge.
Inputs: path (required).
td_disconnectDisconnect a TouchDesigner connectorCIdempotent
Disconnect one input or output connector from an operator.
Inputs: path (required), connector, direction.
td_get_errorsGet TouchDesigner errorsARead-onlyIdempotent
Collect errors, warnings, and script errors under a network after edits.
Inputs: path, recurse.
td_inspect_operatorInspect a TouchDesigner operatorARead-onlyIdempotent
Read an operator’s type, flags, inputs, outputs, parameters, dimensions/channels, and errors.
Inputs: path (required), parameterLimit, includeChildren, includeParameters.
td_list_operatorsList TouchDesigner operatorsARead-onlyIdempotent
List children under a COMP, optionally recursively and filtered by family or name pattern.
Inputs: depth, limit, family, parent, +1 more.
td_pulse_parameterPulse a TouchDesigner parameterA
Pulse a momentary parameter such as Reset, Clear, or Open.
Inputs: path (required), parameter (required).
td_sample_chopSample CHOP channelsARead-only
Read current CHOP channel values for audio levels, envelopes, beats, control signals, and diagnostics.
Inputs: path (required), sample, channels, maxChannels.
td_set_dat_textSet Text DAT sourceAIdempotent
Replace a Text DAT, GLSL DAT, Script DAT, or callback DAT body.
Inputs: path (required), text (required), expectedText.
td_set_parametersSet TouchDesigner parametersAIdempotent
Set constants, Python expressions ({expr}), or bind expressions ({bindExpr}) on an operator in one call.
Inputs: path (required), parameters (required).
td_statusTouchDesigner statusARead-onlyIdempotent
Check bridge health, TouchDesigner build, project, timeline, and capability flags.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool maps to a distinct action or resource: status, parameter pulsing, connectivity, DAT text, CHOP sampling, TOP capture, error retrieval, operator querying, creation, parameter setting, rig building, batch editing, and deletion. No two tools appear to do the same thing, and even similar operations like list_operators vs inspect_operator are clearly differentiated by scope.
Most tools follow a consistent td_verb_noun pattern (e.g., td_create_operator, td_set_parameters, td_list_operators). A few deviations like td_status (noun) and td_batch (bare noun) break the pattern, and td_connect/td_disconnect omit an explicit object, but the overall scheme is predictable and understandable.
With 15 tools, this server sits at the upper boundary of the ideal range, but every tool earns its place by covering a distinct aspect of TouchDesigner workflows: status, graph editing, parameter control, data reading, visualization capture, and batch operations. The count is well-scoped for the complexity of the platform.
The tool set covers the core lifecycle (create, delete, connect, disconnect), parameter management (set, inspect), data acquisition (CHOP, TOP), error handling, and even a high-level rig builder. Minor gaps exist around operator rename, clone, or move operations, but these can be worked around with existing tools or are outside the primary scope.
Related MCP Connectors
Build and run visual creative-production workflows from your AI agent.
Ask other AI models and generate images, speech, music and video from your coding agent.
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Live, editable canvas for AI agents — author graphs via MCP, then watch and reroute runs live.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server for TouchDesigner that lets AI agents inspect, build, wire, optimize, and stabilize live TD networks with 106 tools, plus a technique memory system for reusable patterns.11417MIT
- AlicenseAqualityDmaintenanceEnables LLMs to directly control, introspect, and build TouchDesigner networks in real-time through a Model Context Protocol server.25MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to build and control TouchDesigner networks by describing visuals in natural language, with automatic node creation, verification, and preview.100MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP bridge that lets AI agents build and edit real TouchDesigner networks by creating and wiring operators, setting parameters and expressions, validating the network, and viewing rendered image previews to iterate on results.MIT