
Touchdesigner Mcp Server
io.github.8beeeaaat由 GitHub 帳號 8beeeaaat 發布v1.2.0更新於 Oct 24, 2026
MCP server for TouchDesigner - Control and operate TouchDesigner projects through AI agents
概覽
本機 MCP 伺服器,將 AI 助理連接到 TouchDesigner,讓它能建立、檢視與修改節點並在專案中執行 Python。
- 可以做什麼
- 在 TouchDesigner 專案中建立、刪除節點、更新節點參數,並透過提示詞連接節點。查詢專案結構、節點參數、節點錯誤與警告,以及伺服器環境資訊。執行任意 Python 腳本,並呼叫節點上的 Python 方法。查詢 TouchDesigner 的 Python 類別、模組與說明文件。將 TOP 節點目前的輸出擷取為影像。
- 適用情境
- 適合在使用 TouchDesigner 時,讓助理代為建立或調整節點網路、檢查參數與錯誤,或以腳本修改專案,而不必手動操作。
- 執行需求
- 透過 npx(Node.js)或 MCP 安裝包在本機執行,僅限桌面端。需要執行中的 TouchDesigner,且已匯入 mcp_webserver_base 元件(WebServer DAT),可在設定的連接埠(預設 9981)存取。該元件的 API 版本須在支援範圍內。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Touchdesigner Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
TouchDesigner MCP
This is an implementation of an MCP (Model Context Protocol) server for TouchDesigner. Its goal is to enable AI agents to control and operate TouchDesigner projects.
Overview
TouchDesigner MCP acts as a bridge between AI models and the TouchDesigner WebServer DAT, enabling AI agents to:
- Create, modify, and delete nodes
- Query node properties and project structure
- Programmatically control TouchDesigner via Python scripts
Installation
Tell the AI agent you already use:
That's it. The full procedure lives in the Installation Guide — it opens with a table matching each AI app to its route, and everyone starts from TouchDesigner Setup. Or follow it yourself, step by step.
If you are updating, please refer to the procedure in the Latest Release.
MCP Server Features
This server enables AI agents to perform operations in TouchDesigner using the Model Context Protocol (MCP).
Tools
Tools allow AI agents to perform actions in TouchDesigner.
Prompts
Prompts provide instructions for AI agents to perform specific actions in TouchDesigner.
Resources
Not implemented.
Developer Guide
Looking for local setup, client configuration, project structure, or release workflow notes? See the Developer Guide for all developer-facing documentation.
Troubleshooting
Troubleshooting version compatibility
The MCP server and the TouchDesigner component are versioned on two independent axes: the npm package version and the API version (the contract between the MCP server and the .tox component). Each release declares the API version it ships with (expectedApiVersion) and the minimum it supports (minApiVersion, currently 1.3.0). The connected component's API version is compared against those two values — the npm package version itself never gates compatibility, so updating the MCP server alone never invalidates a supported component.
-
To resolve compatibility errors:
- Download the latest touchdesigner-mcp-td.zip from the releases page.
- Delete the existing
touchdesigner-mcp-tdfolder and replace it with the newly extracted contents. - Remove the old
mcp_webserver_basecomponent from your TouchDesigner project and import the.toxfrom the new folder. - Restart TouchDesigner and the AI agent running the MCP server (e.g., Claude Desktop).
-
For developers: When developing locally, run
npm run versionafter editingpackage.json(or simply usenpm version ...). This keeps the Python API (pyproject.toml+td/modules/utils/version.py),mcpCompatibility.expectedApiVersion, MCP bundle manifest, and registry metadata in sync so that the runtime compatibility check succeeds.
For a deeper look at how the MCP server enforces these rules, see Version Compatibility Verification.
Troubleshooting connection errors
TouchDesignerClientcaches failed connection checks for 60 seconds. Subsequent tool calls reuse the cached error to avoid spamming TouchDesigner and automatically retry after the TTL expires.- When the MCP server cannot reach TouchDesigner, you now get guided error messages with concrete fixes:
ECONNREFUSED/ "connect refused": start TouchDesigner, ensure the WebServer DAT frommcp_webserver_base.toxis running, and confirm the configured port (default9981).ETIMEDOUT/ "timeout": TouchDesigner is responding slowly or the network is blocked. Restart TouchDesigner/WebServer DAT or check your network connection.ENOTFOUND/getaddrinfo: the host name is invalid. Use127.0.0.1unless you explicitly changed it.
- The structured error text is also logged through
ILogger, so you can check the MCP logs to understand why a request stopped before hitting TouchDesigner. - Once the underlying issue is fixed, simply run the tool again—the client clears the cached error and re-verifies the connection automatically.
Contributing
We welcome your contributions!
- Fork the repository.
- Create a feature branch (
git checkout -b feature/amazing-feature). - Make your changes.
- Add tests and ensure everything works (
npm test). - Commit your changes (
git commit -m 'Add some amazing feature'). - Push to your branch (
git push origin feature/amazing-feature). - Open a pull request.
Please always include appropriate tests when making implementation changes.
License
MIT
來源:README.md,提交 1ecf08a
工具
0版本歷史
1- v1.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分