touch-mcp
High-performance MCP server that enables AI assistants to control TouchDesigner live via WebSocket, providing 37 tools for nodes, parameters, scripting, and more.
README
touch-mcp
High-performance MCP server for TouchDesigner — live control via WebSocket from any MCP-compatible AI (Claude, etc.)
Claude/LLM ←── stdio (MCP) ──→ touch-mcp ←── WebSocket ──→ TouchDesigner (.tox)
Why touch-mcp
The most comprehensive MCP server for TouchDesigner available. Unlike simpler alternatives, touch-mcp offers:
- Persistent WebSocket connection — every tool call is a lightweight message, not a full HTTP round-trip
- 37 tools covering nodes, parameters, connections, data access, scripting, timeline, rendering, layout, and more
- Batching — bundle multiple operations into a single round-trip with
td_batch, critical for building complex networks fast - Auto-reconnection — survives TD restarts and network hiccups
- Auto-positioning — new nodes are placed intelligently in the network editor
- Full Python access — execute arbitrary Python inside TD with
td_execute_script, with access to all operator types and globals
Quick Start
1. Install touch-mcp
pip install touch-mcp
Or from source:
git clone https://github.com/benoitliard/touch-mcp.git
cd touch-mcp
pip install -e ".[dev]"
2. Install the TouchDesigner bridge component
Open TouchDesigner (2024+), then drag TouchMCPBridge.tox from the td/ folder into your project. The component starts a WebSocket server on port 9980 automatically.
For instructions on building the .tox from source, see td/BUILD_TOX.md.
3. Configure your MCP client
See the configuration sections below, then start a conversation — touch-mcp connects to TouchDesigner on first use.
Configuration
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"touchdesigner": {
"command": "touch-mcp",
"args": ["--td-port", "9980"]
}
}
}
The config file is located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Claude Code
Create or edit .mcp.json in your project root:
{
"mcpServers": {
"touchdesigner": {
"command": "touch-mcp",
"args": ["--td-host", "localhost", "--td-port", "9980", "--timeout", "30"]
}
}
}
Available Tools
37 tools organised by category.
Nodes
| Tool | Description |
|---|---|
td_create_node |
Create a new operator node (auto-positioned in the network) |
td_delete_node |
Delete a node and all its children |
td_list_nodes |
List child nodes under a path, optionally filtered by family |
td_get_node |
Get detailed metadata for a node (type, position, connections) |
td_copy_node |
Copy a node with all its parameters to a new location |
td_rename_node |
Rename a node without destroying it |
td_find_nodes |
Search for nodes by name, type, or family recursively |
td_get_errors |
Get errors and warnings for a node (and optionally its children) |
td_set_flags |
Set display, render, and/or bypass flags on a node |
Parameters
| Tool | Description |
|---|---|
td_get_parameters |
Read current parameter values for a node |
td_set_parameters |
Set one or more parameter values on a node |
td_get_parameter_info |
Get parameter schema (style, range, menu options, defaults) |
td_set_expression |
Set a parameter to expression mode with a Python expression |
td_pulse_parameter |
Pulse a parameter (trigger reload, reset, etc.) |
Connections
| Tool | Description |
|---|---|
td_create_connection |
Wire two nodes together by output and input index |
td_delete_connection |
Disconnect a node's input or output connector |
td_get_connections |
List all wires entering and leaving a node |
Data
| Tool | Description |
|---|---|
td_read_chop |
Read channel sample data from a CHOP node |
td_read_top |
Read TOP metadata (resolution, aspect) |
td_read_sop |
Read point and primitive geometry from a SOP node |
td_read_dat |
Read text or table contents from a DAT node |
td_write_dat |
Write text or append rows to a DAT node |
Scripts
| Tool | Description |
|---|---|
td_execute_script |
Execute arbitrary Python inside the live TouchDesigner instance |
td_class_list |
List all TD Python classes available in the environment |
td_class_detail |
Inspect methods and properties of a TD Python class |
td_module_help |
Get help() output for any TD Python module |
Timeline
| Tool | Description |
|---|---|
td_timeline_get |
Get the current timeline state (frame, fps, range, loop) |
td_timeline_set |
Set one or more timeline properties (frame, fps, range, loop) |
td_timeline_play |
Start timeline playback |
td_timeline_pause |
Pause timeline playback |
Render
| Tool | Description |
|---|---|
td_screenshot |
Save a TOP's current frame as a PNG file on disk |
td_export_render |
Export a rendered TOP frame to a file on disk |
Project
| Tool | Description |
|---|---|
td_project_info |
Get project metadata (name, path, fps, TD build/version) |
td_project_save |
Save the project in place or to a new path |
Layout
| Tool | Description |
|---|---|
td_set_node_position |
Set network-editor x/y positions for one or more nodes |
td_align_nodes |
Evenly distribute nodes along a horizontal or vertical axis |
Batch
| Tool | Description |
|---|---|
td_batch |
Execute multiple operations in a single WebSocket round-trip |
CLI Options
touch-mcp [OPTIONS]
Options:
--td-host TEXT TouchDesigner WebSocket host (default: localhost)
--td-port INT TouchDesigner WebSocket port (default: 9980)
--timeout FLOAT Per-request timeout in seconds (default: 30.0)
--debug Enable debug logging
Development
git clone https://github.com/benoitliard/touch-mcp.git
cd touch-mcp
pip install -e ".[dev]"
pytest
Static analysis:
ruff check src/
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。