tl-draw-mcp
tl-draw-mcp
Claudeがプロンプトからライブのtldrawキャンバスに描画できるようにするMCPサーバー + Claude Codeスキルです。
ブラウザで
http://localhost:3030を開くと、Claudeの描画がリアルタイムで表示されます。4つのツール:
create_shape、update_shape、delete_shape、get_canvas。純粋なJS、MITライセンス、Windows優先。
1. インストール
git clone <this repo> tl-draw-mcp
cd tl-draw-mcp
npm install
cd packages\web && npm run build
cd ..\server && npm run buildRelated MCP server: Excalidraw MCP Server
2. Claude Codeへの組み込み
ワンライナー(推奨 — JSONの編集は不要):
claude mcp add tldraw --scope user -- cmd /c node "D:/path/to/tl-draw-mcp/packages/server/dist/index.js"確認:
claude mcp listtldraw がリストに表示されるはずです。Claude Codeを再起動してください。
3. スキルのインストール
Claudeがいつ描画すべきかを認識できるように、スキルフォルダーをコピーします:
xcopy /E /I .claude\skills\tldraw %USERPROFILE%\.claude\skills\tldraw4. 使用方法
任意のプロジェクトでClaude Codeを起動します。
最初のツール呼び出しでサーバーが起動します —
http://localhost:3030を開いてください。右下のバッジに
tldraw MCP · connectedと表示されます。プロンプト:
ログインフローのフローチャートを描いて。
5. 開発
cd packages\server && npm test :: 12 handler tests
cd packages\server && npm run dev :: stdio + WS bridge on :3030
cd packages\web && npm run dev :: Vite HMR on :51736. レイアウト
packages/server MCP stdio server, WS bridge, static host, tool handlers
packages/web Vite + React + tldraw browser app (builds into server/public)
.claude/skills/ SKILL.md for Claude Code
examples/ sample MCP config (if you prefer JSON over the CLI)7. トラブルシューティング
症状 | 解決策 |
バッジは | :3030でサーバーがスタックしています。 |
ブラウザでTldrawの検証エラーが発生する | IndexedDBをクリア(F12 → Application → IndexedDB → |
ポート :3030 が使用中 | サーバーは自動的に :3031 などにフォールバックします。 |
|
|
設計メモについては plan.md を、MITライセンス条項については LICENSE を参照してください。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read, write, and search local tldraw (.tldr) files, providing a persistent visual scratchpad for diagramming and note organization. It supports full CRUD operations on canvas shapes and metadata management for local canvas files.253MIT
- AlicenseAqualityCmaintenanceEnables AI agents to programmatically generate, edit, and view Excalidraw diagrams with real-time browser synchronization. It provides a suite of tools for adding shapes, text, and arrows to diagrams through natural language interactions.111,91798MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to programmatically control a live Excalidraw canvas through element-level CRUD operations and real-time synchronization. It allows agents to iteratively build, inspect, and refine diagrams while providing visual feedback via screenshots and scene descriptions.3,023MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to programmatically control a live Excalidraw canvas with element-level CRUD operations and real-time synchronization. It supports iterative diagramming through scene descriptions, screenshots, and advanced layout tools for collaborative AI-human workflows.3,023MIT
Related MCP Connectors
Read, edit, publish, and preview your pepita websites from Claude.
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
Real-time collaborative whiteboard — AI agents and humans edit the same board live over MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Siddharth11Roy/tldraw-claude-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server