td-mcp
A token-efficient MCP server for driving TouchDesigner from AI assistants, enabling building whole node networks in one call, searching CHOP channels by glob, inspecting operators compactly, and taking screenshots of TOPs.
README
td-mcp
A lean, token-efficient MCP server for driving TouchDesigner from AI assistants like Claude.
Build whole node networks in one call, search CHOP channels by glob, inspect operators compactly, and screenshot any TOP so the assistant can see what it built. Battle-tested by building audio-reactive and hand-tracking projects end to end.
Why another TouchDesigner MCP?
Compared to a conventional per-node tool surface, td-mcp is designed to minimize round trips and context tokens:
td_build- create a whole network (operators + parameters + expressions + wires) in ONE call.td_find_channels- glob-search every CHOP in the project (e.g.*pinch*) instead of dumping node trees.td_get- returns only NON-default parameters.td_screenshot- saves any TOP to PNG for visual verification.td_ensure_cook- one call installs a per-frame force-cook (fixes the classic "GLSL/feedback network renders once then freezes" gotcha).- Wrong parameter names return close-match suggestions instead of bare errors.
- Operator paths self-locate by name if the exact path moved.
- One-line tool descriptions - tool schemas are loaded into every session, so short docs are cheaper.
Architecture
Claude / MCP client
| stdio (MCP)
server.py (Python, FastMCP)
| HTTP POST 127.0.0.1:9980/api (JSON)
TouchDesigner: /project1/td_mcp
|- webserver (Web Server DAT, port 9980)
|- callbacks (Text DAT - HTTP handler)
|- dispatcher (Text DAT - 16 command handlers, TD Python API)
The bridge is installed by script (no .tox drag-drop): re-runnable, self-healing, and the DAT contents always match the repo sources.
Setup
Requirements: uv, TouchDesigner (any recent build; tested on 2025.3x macOS).
-
Clone and install:
git clone https://github.com/YOURNAME/td-mcp && cd td-mcp && uv sync -
Install the bridge inside TouchDesigner - open the textport (Alt+T / Option+T) and run (adjust the path to your clone):
exec(open('/path/to/td-mcp/td/install_bridge.py').read())Verify from a terminal:
curl -s http://127.0.0.1:9980/api -d '{"cmd":"status"}' -
Register the server with your MCP client. For Claude Code, in
.mcp.json:{ "mcpServers": { "td": { "command": "uv", "args": ["--directory", "/path/to/td-mcp", "run", "python", "server.py"] } } } -
Restart the client and ask it to
td_status.
Tools
| Tool | Purpose |
|---|---|
td_status |
TD + bridge status |
td_build |
whole network in one call (ops, params, exprs, wires) |
td_create / td_delete |
single operator create / delete |
td_set |
set params; {"expr": ...} for expressions, "PULSE" to pulse |
td_connect |
wire two operators |
td_get / td_list |
compact inspection |
td_find_channels |
glob-search CHOP channels project-wide |
td_read_chop |
live channel values |
td_ensure_cook |
per-frame force-cook (anti-freeze) |
td_screenshot |
save a TOP to PNG |
td_save / td_load_tox |
save project / load a .tox |
td_errors |
all erroring operators under a path |
td_exec |
escape hatch: run Python inside TD |
Field notes (learned the hard way)
- TD's Python
open()defaults to ASCII - the bridge sources are pure ASCII. ParModeis not on thetdmodule inside DAT modules; the dispatcher usestype(par.mode).EXPRESSIONinstead (version-proof).- Feedback TOPs need an actual input connection, not just a Target TOP.
- COMP-to-COMP wiring requires matching connector families (a CHOP output
cannot feed a DAT input) - check
outputConnectors[i].outOPtypes. - After building feedback networks, pulse
resetpulseonce to flush any pre-expression frames the loop may have latched.
Credits
Bridge-over-Web-Server-DAT architecture inspired by 8beeeaaat/touchdesigner-mcp.
License
MIT
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.