Enables AI-driven manipulation of a tldraw canvas, including tools for creating, updating, and deleting shapes, managing frames, and generating auto-layout flowcharts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tldraw-mcpDraw a flowchart showing the user authentication process"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tldraw-mcp
Minimal MCP server for AI-driven canvas manipulation with tldraw.
Architecture
Tools
Tool | Description |
| Create shapes (rectangle, ellipse, star, cloud, diamond, etc.) |
| Update shape properties (position, size, color, fill) |
| Delete shapes by ID |
| Connect two shapes with an arrow |
| Create a frame to group shapes together |
| Create a flowchart with nodes and edges (auto-layout) |
| Get current canvas state |
| Zoom canvas to fit all shapes |
| Clear all shapes |
Quick Start
Claude Desktop Config
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Environment Variables
Variable | Default | Description |
|
| Widget WebSocket URL |
|
| Widget WS server port |
Development
License
MIT