td-mcp
MCP (Model Context Protocol) server for controlling TouchDesigner from AI coding agents like Claude Code and Codex CLI.
Setup
1. TouchDesigner Side
- Install the callbacks file into your TD project:
cd /path/to/your-td-project uvx td-mcp install
- Create a WebServer DAT in TouchDesigner
- Set Port to
9980 - Set the WebServer DAT's callbacks File parameter to
td_mcp_callbacks.py - Toggle Active ON
2. Agent Side
Claude Code (.mcp.json)
{
"mcpServers": {
"touchdesigner": {
"command": "uvx",
"args": ["td-mcp"],
"env": {
"TD_HOST": "127.0.0.1",
"TD_PORT": "9980"
}
}
}
}
Codex CLI
codex mcp add touchdesigner \
--env TD_HOST=127.0.0.1 \
--env TD_PORT=9980 \
-- uvx td-mcp
Tools
| Tool | Description |
|---|---|
td_get_root |
Get project root path (call first) |
td_create_op |
Create an operator |
td_delete_op |
Delete an operator |
td_list_ops |
List child operators |
td_get_op_info |
Get operator info |
td_set_params |
Set parameters (batch) |
td_get_params |
Get parameters (with schema discovery) |
td_connect |
Connect operators |
td_disconnect |
Disconnect operators |
td_find_empty_space |
Find empty space in network editor |
td_execute |
Execute Python code in TD |
td_get_screenshot |
Capture TOP screenshot |
Environment Variables
| Variable | Default | Description |
|---|---|---|
TD_HOST |
127.0.0.1 |
TouchDesigner host |
TD_PORT |
9980 |
WebServer DAT port |
TD_TIMEOUT |
10.0 |
Request timeout (seconds) |
Architecture
AI Agent → MCP Server (stdio) → HTTP Client → TouchDesigner WebServer DAT
Security Note
td_execute allows arbitrary Python execution inside TouchDesigner. Use only in trusted local environments.
License
MIT
Metadata
Release files for td-mcp 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| td_mcp-0.1.3.tar.gz | 51.4 kB | Without provenance | Details for td_mcp-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| td_mcp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for td_mcp-0.1.3-py3-none-any.whl |
Total release size: 66.8 kB
Release files / td_mcp-0.1.3.tar.gz
| Download URL | td_mcp-0.1.3.tar.gz |
|---|---|
| Size | 51.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df1930266c3ec2e83aaa9d3d6d56b848559dd4cc8a4e6de2f240306ff08ddbab
|
|
BLAKE2b-256 checksum How to use checksums |
b26ee24ad514d5e74dfec62c2d611342c9614a6616bef114348f6e2e9a65b09a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / td_mcp-0.1.3-py3-none-any.whl
| Download URL | td_mcp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44c2c42d10968cd507b7ec02489e21c59b448b5d225c98a9b485a3cf324e3385
|
|
BLAKE2b-256 checksum How to use checksums |
549b24d1593c26965f85b2c20db7dc941ed603cbe0e7057353c597f9f9e532fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for td-mcp 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.