
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 分