MCP 2025-03-26 · Desktop Only · Zero Cloud
TauDesign Agent MCP for
Cursor, Claude Code & Codex
Summary: TauDesign (v0.0.41, LGPL-3.0) bundles a localhost Axum MCP gateway (
127.0.0.1, ports 41737–41747) paired with taudesign-mcp-proxy (NDJSON stdio). Coding agents such as Cursor, Claude Code, and Codex can inspect .aidesign projects, read full screen HTML with stable data-nid attributes, create new projects, upsert screens, and apply token-validated edits with full History Undo.
30-Second Setup
Configure Once with
Configure Once with taudesign-mcp-proxy
Open Settings → MCP inside the TauDesign desktop app to copy your platform-exact binary path. The proxy auto-reloads {appData}/taudesign/mcp-gateway.json across restarts and port changes.
Cursor / Claude Code (mcp.json)
{
"mcpServers": {
"taudesign": {
"command": "/Applications/TauDesign.app/Contents/MacOS/taudesign-mcp-proxy"
}
}
}
OpenAI Codex (config.toml)
[mcp_servers.taudesign]
command = "/Applications/TauDesign.app/Contents/MacOS/taudesign-mcp-proxy"
Tool Contract
9 Read & Write MCP Tools
All writes record a [mcp] History snapshot for one-click Undo and enforce TauDesign's token class whitelist (rejecting literal hex colors in set_override).
| Tool Name | Mode | Behavior & Safety Contract |
|---|---|---|
ping | Read | Health check returning gateway version, active project status, and write-mode state. |
list_projects | Read | Lists known local .aidesign projects (supports cold-start empty list). |
get_project_overview | Read | Returns immutable deviceProfile (Mobile 390px / PC 1440px), screen index, and design tokens. |
get_screen | Read | Reads full screen HTML with stable data-nid node handles (Live memory first, disk fallback). |
create_project | Write | Native Rust project creation using Settings → General → Default project path when folderPath is omitted (openInUi defaults to false). |
upsert_screen | Write | Creates or replaces a screen with controlled HTML, automatic data-nid injection, History commit, and soft lint warnings. |
set_text_by_nid | Write | Updates targeted text nodes safely by data-nid without rewriting surrounding layout structure. |
set_override | Write | Applies L4 CSS overrides with px sanitization and token lint; rejects raw literal hex colors. |
apply_token_patch | Write | Patches project design tokens while rejecting mutations to immutable deviceProfile. |
MCP Resources
8 Structured Resource URIs
| Resource URI | Returned Payload |
|---|---|
taudesign://projects | Registered local project directory index |
taudesign://active | Currently open desktop project metadata |
taudesign://contracts | Design token whitelist & screen authoring contract |
taudesign://project/{id} | Project overview, device profile, and metadata |
taudesign://project/{id}/screens | Screen catalog for the specified project |
taudesign://project/{id}/screens/{screenId} | Single screen HTML with stable data-nid IDs |
taudesign://project/{id}/tokens | Compiled CSS token definitions from base.css |
taudesign://project/{id}/selection | Current canvas node selection state |
FAQ
Agent MCP Frequently Asked Questions
How do I connect Cursor, Claude Code, or Codex to TauDesign MCP?
Open the TauDesign desktop app, go to Settings → MCP, and click Copy Cursor / Claude Code / Codex config. The config registers the bundled taudesign-mcp-proxy binary once, which reads mcp-gateway.json automatically to follow port changes and reconnect across app restarts.
Does TauDesign MCP require an API key, cloud tunnel, or Bearer token?
No. The Axum MCP gateway binds exclusively to 127.0.0.1 (ports 41737–41747) with no cloud relay and zero AI provider key exposure. Loopback connections do not require a Bearer token, while non-loopback requests are rejected.
Can I switch TauDesign MCP to read-only mode or undo agent edits?
Yes. Both MCP and Allow writes are enabled by default in desktop mode, and you can toggle Allow writes off anytime in Settings → MCP for strict read-only access. Every MCP write commits a labeled [mcp] History entry so you can Undo inside TauDesign.