MCP
Built-in MCP server inside TouchDesigner. Connects AI agents (Claude Code, Cursor, Codex) to your live TD session over HTTP — they create operators, wire networks, read errors, run Python, capture screenshots, and reason about your patch through natural language.
What you can do
Things your agent can act on directly:
The agent traverses your project, executes changes live in the editor, and returns structured results — all while you watch.
Setup

Auto-start on TD launch — Settings → MCP → auto start MCP → Yes. Server boots on next TD launch using the base port from Settings → MCP → MCP default port (default 40404).
One-time agent config — ask your agent once:
After that the agent picks up TD automatically from any project / workspace. Configure only one MCP URL — twozero handles additional TD instances internally; do not add separate client entries per instance.
Starting a chat
Open every new agent chat with a priming prompt so the agent immediately uses MCP and confirms it can see your current TD context (project, network, selected ops):
Once the agent confirms context, drop the ritual and just talk normally.
Pointers — `*here` and `*this`
Two phrases that resolve to your current viewport / selection:
The asterisk is the magic: it never appears in normal code or text, so the agent treats these as unambiguous pointers and the response is rock-solid. Plain "here" / "this op" works too, but the asterisk version is bulletproof — use it when precision matters.
Built-in triggers
Phrases the agent recognises as named flows:
twozero is required so generic "report a bug" doesn't trigger it accidentally.Working safely
Two workflow phrases that keep the agent from breaking your patch:
Combine with the asterisk pointers — *this to scope the work, *here to keep the agent inside the network you're looking at.
Russian and TD slang
Mix English and Russian freely — the agent normalises TD terms across languages:
How it works
Agent → MCP request → twozero server (inside TD) → executes in your live project → result back to agent. Everything happens on your machine; nothing leaves except whatever your agent's LLM provider sees in the conversation.
When several TD instances are open at once, twozero auto-claims the next free port for each (40404, 40405, …) and the agent lists them and asks which one to act on — no manual configuration.
Troubleshooting
/mcp → twozero_td → reinitialize.Notes
- twozero must be running in TouchDesigner for the MCP server to be reachable.
- Keep Settings → MCP → local only MCP = Yes (recommended).
- Use Opus 4.6 or 4.7 for best results — smaller models hallucinate operator parameters more often.
- Source & issues: github.com/404dotzero/twozero-td-mcp