tldraw MCP Server
Draw and visually collaborate with your agents on tldraw's canvas.
tldraw scores 64 (Good), with no SPDX license recorded. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Design. GitHub shows 51,597 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
64 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 64 comes from
22 + 20 + 12 + 0 + 7 + 3 = 64. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 12 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 7 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: No sign-in detected. Our check reached the endpoint without being asked for credentials. Some servers only check keys after connecting, so follow the provider's setup notes. Security tips
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "tldraw-mcp-app": { "url": "https://tldraw-mcp-app.tldraw.workers.dev/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
tldraw MCP app
This is the tldraw MCP app. It exposes an interactive tldraw canvas to AI agents via the Model Context Protocol app specification, so you can work in tldraw with agents in any MCP client that supports the MCP app spec.
Architecture
The app has two parts: a server and a widget.
Server
The server runs in Cloudflare Workers via src/worker.ts, using a Durable Object (TldrawMCP) backed by SQLite for persistent checkpoint storage.
It exposes:
search— query the extracted Editor API spec in a sandboxed dynamic workerexec— execute JavaScript against the live editor in the widget via a pending-request callback bridge_exec_callback— app-only tool the widget calls to resolve a pendingexecrequestsave_checkpoint/read_checkpoint— app-only tools used by the widget for checkpoint persistence
Widget
The widget is a React app (src/widget/mcp-app.tsx) that renders a full tldraw canvas inside the MCP host's iframe.
When the AI calls exec, the server creates a pending request and the widget picks it up, runs the code through a focused editor proxy (src/widget/focused/) that translates between an AI-friendly shape format (simple string IDs, flat _type shapes) and tldraw's internal TLShape/TLShapeId types, then calls _exec_callback to resolve the pending request with the result. Canvas state is checkpointed to the Durable Object's SQLite database and to the browser's local storage.
Developing
Prerequisites
The widget build depends on generated files (editor-api.json, method-map.json) that are extracted from the editor's TypeScript declarations. Before you can develop or build the mcp-app, you need to build the core packages first:
# from the repo root
pnpm build
This produces the .tsbuild/ output that pnpm extract-api reads from. The build and dev scripts run extract-api automatically, so you don't need to call it separately.
Package scripts
Run all commands from apps/mcp-app.
| Command | What it does |
|---|---|
pnpm build | Build the widget HTML |
pnpm dev | Build widget + start local Cloudflare worker (HTTP MCP on localhost:8787) |
pnpm dev:tunnel | Build widget + start a stable named Cloudflare tunnel + local worker with WORKER_ORIGIN set to the tunnel URL |
pnpm run deploy | Build widget + deploy the Cloudflare worker to production |
pnpm dev:tunnel requires the cloudflared CLI to be installed on your machine and a one-time cloudflared tunnel login. It serves a stable per-user hostname (<user>-mcp-app-dev.tldraw.xyz) via a named tunnel, so the URL you register in hosted MCP clients stays the same across runs instead of changing every time. The user slug defaults to whoami; override it (or the zone/port) with MCP_TUNNEL_USER, MCP_TUNNEL_ZONE, and PORT. The zone must be a Cloudflare-hosted zone (tldraw.xyz is; tldraw.dev/tldraw.com are on Vercel and won't work).
The worker defaults to production-safe behavior in wrangler.toml, including setting MCP_IS_DEV="false". Local HTTP dev scripts override that with MCP_IS_DEV=true so local Claude/ChatGPT connectors suppress ui.domain while production deployments keep it enabled.
Cursor setup
Add these two servers in ~/.cursor/mcp.json:
{
"mcpServers": {
"tldraw": {
"transport": "http",
"url": "https://tldraw-mcp-app.tldraw.workers.dev/mcp"
},
"tldraw-local": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://127.0.0.1:8787/mcp"]
}
}
}
Claude Desktop local setup
For local Claude Desktop development, use claude_desktop_config.json with the local HTTP server:
{
"mcpServers": {
"tldraw-local": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://127.0.0.1:8787/mcp"]
}
}
}
Claude Desktop remote setup
If you'd like to try the remote MCP server in Claude Desktop, use the in-app connector flow rather than adding the production URL to claude_desktop_config.json.
- Open Claude Desktop
- In the sidebar, go to Customize
- Open Connectors
- Click the button to add a connector, then choose Add custom connector
- Give it a name such as
tldraw - Paste
https://tldraw-mcp-app.tldraw.workers.dev/mcpas the server URL
The Add custom connector option is not available on the free plan, so you may need Max or another paid plan.
If you need Notion access in Claude Desktop, use the Notion MCP connector for that separately.
ChatGPT local dev
ChatGPT requires an HTTPS origin, so you need a Cloudflare tunnel. You must be an admin of your OpenAI org/workspace to do local dev.
First-time setup (once per machine):
- Run
cloudflared tunnel loginand choose thetldraw.xyzzone
Then, each session:
- Run
pnpm dev:tunnelinapps/mcp-app - It serves your stable hostname, e.g.
https://<user>-mcp-app-dev.tldraw.xyz(the first run also creates the named tunnel and its DNS route) - In ChatGPT web (not the desktop app), go to Apps and add your app using that URL
- You can then test in both ChatGPT web and the desktop or mobile apps
Because the hostname is stable per user, you only add the app in ChatGPT once — subsequent pnpm dev:tunnel runs reuse the same URL.
dev:tunnel automatically wires WORKER_ORIGIN to the stable tunnel URL and sets MCP_IS_DEV=true for the local worker.
Iteration loop
- Make code changes in
apps/mcp-app - Run the relevant script (
devordev:tunnel) - Disconnect and reconnect the MCP server in your client (or reload the page/app)
- When making widget changes, make sure to rebuild, either by running
pnpm buildor rerunning any of the dev scripts.
Reconnecting the server after changes is the most reliable way to pick up new code, especially when the widget HTML changes.
Session storage lifecycle
Each MCP session is a TldrawMCP Durable Object. It keeps up to MAX_CHECKPOINTS (50) canvas snapshots and destroys itself after IDLE_TTL_MS (7 days) without a checkpoint save — a schedule armed in init() and re-armed on every check.
Contact
Find us on Twitter/X at @tldraw.
Community
Have questions, comments or feedback? Join our discord. For the latest news and release notes, visit tldraw.dev.
Frequently asked questions
What is tldraw MCP Server?
Draw and visually collaborate with your agents on tldraw's canvas.
How do I install tldraw MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. tldraw MCP Server connects to the remote endpoint https://tldraw-mcp-app.tldraw.workers.dev/mcp, so there is nothing to install locally.
Does tldraw MCP Server support remote (HTTP) connections?
Yes. tldraw MCP Server offers a hosted endpoint over Streamable HTTP and SSE, so HTTP-capable clients can connect to it without running anything locally.
How is tldraw MCP Server's trust score calculated?
tldraw MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.