
Drawx Mcp Server
io.github.SaharshPamecha由 GitHub 帳號 SaharshPamecha 發布v0.1.1更新於 Oct 24, 2026
Generate draw.io diagrams and architecture designs from natural language, via the DrawX API.
概覽
一個本機 MCP 伺服器,讓助理透過 DrawX API 依自然語言提示產生 draw.io 圖表與架構設計。
- 可以做什麼
- 依自然語言提示產生 draw.io XML,可修改既有圖表 XML,並選擇 flash、pro、ultra 速度/品質模式。依需求簡報產生架構設計,輸出高階設計,可選低階設計與設計文件,並支援 cloud-agnostic、AWS、Azure、GCP 等雲端風格。查詢 API 金鑰對應的帳號、方案、API 層級與每月剩餘配額。
- 適用情境
- 適合希望助理在 Claude Desktop、Cursor 或 VS Code 中直接草擬 draw.io 圖表或架構設計文件、不必手繪的情況。最適合已訂閱付費 DrawX 方案、且使用 diagrams.net 或 .drawio 檔案的使用者。
- 執行需求
- 透過 npm 套件 @drawx/mcp-server 以 stdio 在本機執行(需 Node.js 18+),也可用 npx 免安裝執行。需在 DRAWX_API_KEY 環境變數提供 DrawX API 金鑰;選用的 DRAWX_API_BASE 變數可覆寫 API 基礎位址。需要能連線至 DrawX API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Drawx Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@drawx/mcp-server
[npm version] [CI] [license: MIT]
Generate draw.io diagrams and architecture designs from inside Claude, Cursor, or VS Code.
DrawX MCP is a Model Context Protocol server that gives your AI assistant three tools:
generate_diagram— one-shot: natural-language prompt → complete draw.io XML.architect_design— from a brief, produce a High-Level Design diagram (optionally an LLD + design doc).whoami— verify your API key + see remaining quota.
Behind the scenes it calls the DrawX public API, so output matches the DrawX web app exactly.
Requirements
- Node.js 18+
- A DrawX API key — create one in DrawX → Settings → API keys. Keys start with
drawx_live_. API access is a paid feature (bundled with the DrawX Pro plan).
Install
Or, if your MCP client supports npx, no install is needed — reference npx @drawx/mcp-server directly.
Configure your MCP client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. In a new chat, ask "Draw me a microservices checkout flow" — Claude will call generate_diagram and show the resulting XML.
Cursor
Edit ~/.cursor/mcp.json:
VS Code (Copilot MCP)
Add to your workspace or user settings.json:
Environment variables
Tools reference
generate_diagram
Turn a description into draw.io XML.
Inputs
prompt(string, required) — what to draw.mode—"flash"(default),"pro", or"ultra". Trades speed for quality.previousXml— an existing mxfile to modify.
Output — assistant text: a summary line (model, tokens, cost) followed by the full <mxfile>...</mxfile> XML in a fenced code block. Paste the XML into diagrams.net or save as .drawio.
architect_design
Run the DrawX Architect Co-Pilot on a brief. Streams intermediate progress; returns a JSON payload with hld (and optional lld, doc).
Inputs
brief(string, required, ≥ 20 chars) — what to design.depth—"hld","hld_lld"(default), or"hld_lld_doc".style—"cloud_agnostic"(default),"aws","azure", or"gcp".mode—"flash"(default),"pro", or"ultra".
whoami
No inputs. Returns your email, plan, API tier, and remaining monthly API quota.
Quota + rate limits
API usage is metered on a separate tier from your in-app usage. Pro subscribers get 200 API calls / month. The rate limit is 60 requests / minute. On the free plan, API access is not enabled — upgrade at getdrawx.com.
Local development
License
MIT © 2026 DrawX
來源:README.md,提交 f6abe22
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分