Allows for the management of local tldraw canvas files, providing tools to read, create, and search .tldr files, as well as perform CRUD operations on shapes within them.
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 MCPcreate a flowchart for the login process in auth.tldr"
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.
@talhaorak/tldraw-mcp
MCP (Model Context Protocol) server for managing local tldraw canvas files (.tldr).
What Makes This Different?
Existing tldraw MCP servers let AI draw on an in-memory canvas. This project is different β it reads, writes, and searches local on disk, making tldraw a persistent visual scratchpad that AI agents can programmatically update.
Features
π Read β Load and parse
.tldrfilesβοΈ Write β Create and update canvas files with validation
π List β Enumerate all
.tldrfiles with metadataπ Search β Full-text search across all canvases
π· Shape CRUD β Add, update, delete shapes programmatically
Installation
npm (recommended)
From source
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
OpenClaw
Add to your OpenClaw config:
Or install as a skill:
Environment Variables
Variable | Default | Description |
|
| Base directory for |
Tools
tldraw_read
Read a .tldr file and return its parsed content.
tldraw_write
Write or update a .tldr file (validates format).
tldraw_create
Create a new empty tldraw canvas.
tldraw_list
List all .tldr files with page/shape counts.
tldraw_search
Search text content across all canvases.
tldraw_get_shapes
Get all shapes from a file, optionally filtered by page.
tldraw_add_shape
Add a new shape to a canvas.
tldraw_update_shape
Update properties of an existing shape.
tldraw_delete_shape
Delete a shape from a canvas.
Use Cases
Visual scratchpad for AI agents β AI updates a canvas you can view in tldraw
Diagram generation β Create flowcharts, architecture diagrams programmatically
Note organization β Search and organize visual notes across multiple canvases
Integration with tldraw desktop/VS Code β Files sync automatically
tldraw File Format
This server works with tldraw v2 format:
Development
Security
Path traversal prevention β Relative paths can't escape
TLDRAW_DIRFormat validation β All writes are validated against tldraw schema
No network access β Purely local file operations
License
MIT Β© Talha Orak