LetDraw

io.github.letdrawv1.0.1更新於 Oct 3, 2026

Create, edit, share and export hand-drawn LetDraw diagrams, from code or a prompt.

已驗證Streamable HTTP可網頁執行Developer ToolsMedia & DesignProductivity & Workflow

概覽

AI 產生的概覽

讓助理列出、建立、編輯、分享與匯出手繪風格的 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;託管端點需要網路存取。權杖的權限範圍決定可執行的操作。
安裝前請注意
此權杖是有效憑證,持有者可在其權限範圍內操作帳號,請勿放入共用設定或日誌。可能執行圖表的寫入與刪除、分享以及依提示詞產生圖表;產生時會使用你自己的 AI 金鑰。唯讀分享連結會讓任何持有連結的人看到圖表內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 LetDraw,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "letdraw": {
      "type": "http",
      "url": "https://api.letdraw.com/mcp"
    }
  }
}

README

[LetDraw]

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

PathWhat it is
packages/mcp@letdraw/mcp — zero-config stdio bridge to the hosted MCP server (npx @letdraw/mcp)
packages/sdk@letdraw/sdk — typed REST client for scripting
spec/mcp-tools.mdThe MCP tools, resources, and scopes
spec/openapi.yamlOpenAPI 3.1 spec for the REST API
spec/capabilities.md"How to draw well in LetDraw" guide for AI clients
docs/Getting started + per-client setup (desktop apps, HTTP clients, Cursor, VS Code, Codex)
examples/Copy-paste recipes

Endpoints

REST base   https://api.letdraw.com/api-v1MCP URL     https://api.letdraw.com/mcp

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:

jsonc
// MCP client config (mcpServers block){  "mcpServers": {    "letdraw": {      "command": "npx",      "args": ["-y", "@letdraw/mcp"],      "env": { "LETDRAW_TOKEN": "ld_live_YOUR_TOKEN" }    }  }}

See docs/clients for desktop apps, HTTP clients, Cursor, VS Code and Codex.

60-second start (REST)

bash
curl https://api.letdraw.com/api-v1/workspaces \  -H "Authorization: Bearer ld_live_YOUR_TOKEN"

Or with the SDK:

ts
import { LetdrawClient } from '@letdraw/sdk';const ld = new LetdrawClient({ token: process.env.LETDRAW_TOKEN! });const { workspaces } = await ld.listWorkspaces();

Scopes

Tokens carry scopes; each tool/route requires one:

  • diagrams:read — list/get workspaces, folders, diagrams, icons
  • diagrams:write — create/update/delete/share diagrams, from-code
  • export — export to Mermaid / D2
  • ai: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
  1. v1.0.1最新Oct 3, 2026