Skip to main content

MCP server for controlling TouchDesigner from AI coding agents

Project description

td-mcp

MCP (Model Context Protocol) server for controlling TouchDesigner from AI coding agents like Claude Code and Codex CLI.

Setup

1. TouchDesigner Side

  1. Install the callbacks file into your TD project:
    cd /path/to/your-td-project
    uvx td-mcp install
    
  2. Create a WebServer DAT in TouchDesigner
  3. Set Port to 9980
  4. Set the WebServer DAT's callbacks File parameter to td_mcp_callbacks.py
  5. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

td_mcp-0.1.3.tar.gz (51.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

td_mcp-0.1.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file td_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: td_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 51.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for td_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 df1930266c3ec2e83aaa9d3d6d56b848559dd4cc8a4e6de2f240306ff08ddbab
MD5 c67355b3c5ebfde8b89235bbb84c0f22
BLAKE2b-256 b26ee24ad514d5e74dfec62c2d611342c9614a6616bef114348f6e2e9a65b09a

See more details on using hashes here.

File details

Details for the file td_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: td_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for td_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 44c2c42d10968cd507b7ec02489e21c59b448b5d225c98a9b485a3cf324e3385
MD5 8991859506c09f20ce7a67e112af20c6
BLAKE2b-256 549b24d1593c26965f85b2c20db7dc941ed603cbe0e7057353c597f9f9e532fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page