
LetDraw
io.github.letdrawv1.0.1更新於 Oct 3, 2026
Create, edit, share and export hand-drawn LetDraw diagrams, from code or a prompt.
概覽
讓助理列出、建立、編輯、分享與匯出手繪風格的 LetDraw 圖表,並可從程式碼或提示詞產生圖表。
- 功能
- 透過託管的 MCP 伺服器或本機 stdio 橋接,把 AI 用戶端連接到 LetDraw 帳號。它可以列出工作區、資料夾、圖表與圖示,建立與更新圖表,從 Compose、Kubernetes、DOT、Terraform、SQL 等程式碼建構圖表,加上真實產品圖示,匯出為 Mermaid 或 D2,並產生唯讀分享連結。專案也提供具型別的 REST SDK 與 OpenAPI 規格供指令碼使用。
- 適用情境
- 適合讓助理在 LetDraw 帳號中製作或維護圖表、把基礎架構或資料庫結構程式碼轉成圖表,或把現有圖表匯出為 Mermaid 或 D2。也適合需要同一套 REST API 的指令碼。
- 執行需求
- 需要一個 LetDraw 帳號,並在 Account > Developer 建立個人 API 權杖:stdio 橋接使用 LETDRAW_TOKEN,託管端點使用 Authorization Bearer 標頭。stdio 橋接透過 npx 執行,因此需要 Node.js;託管端點需要網路存取。權杖的權限範圍決定可執行的操作。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 LetDraw,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"letdraw": {
"type": "http",
"url": "https://api.letdraw.com/mcp"
}
}
}README
LetDraw MCP + REST
Connect AI assistants and your own scripts to LetDraw — read and author diagrams in your account through the Model Context Protocol (MCP) or the public REST API.
[License: MIT] [Node 18+] [MCP: stdio + HTTP]
LetDraw is a hand-drawn–style online whiteboard and diagramming app. With this integration an MCP client (desktop AI apps, Cursor, VS Code, Codex, …) or any HTTP client can list workspaces, create and update diagrams, build a diagram from code (compose / Kubernetes / DOT / Terraform / SQL / …), stamp real product icons, export to Mermaid or D2, and share read-only links.
This repository ships the client-side integration: a zero-config MCP bridge, a typed REST SDK, the API spec, and setup docs. The LetDraw app and server are not part of this repo.
What's here
Endpoints
Both authenticate with a personal API token (Authorization: Bearer ld_live_…), not a login session. Create one in the LetDraw app under
Account → Developer. The exact URLs and a ready-to-paste client config are
shown there too.
60-second start (MCP)
The hosted server speaks Streamable-HTTP, so most clients connect directly. For a stdio client, or for the simplest possible setup, use the bridge:
See docs/clients for desktop apps, HTTP clients, Cursor, VS Code and Codex.
60-second start (REST)
Or with the SDK:
Scopes
Tokens carry scopes; each tool/route requires one:
diagrams:read— list/get workspaces, folders, diagrams, iconsdiagrams:write— create/update/delete/share diagrams, from-codeexport— export to Mermaid / D2ai:generate— generate a diagram from a prompt (uses your own AI key)
License
MIT — see LICENSE. "LetDraw" and the LetDraw logo are trademarks of their owner; see NOTICE.md.
來源:README.md,提交 b21c95c
工具
0版本歷史
1- v1.0.1最新Oct 3, 2026