项目附带 MCP 服务器,使 Claude Code、Cursor、VS Code 等代理可以直接绘制 draw.io 图表,附带版本历史、导出和自动保存。
支持 25 家模型供应商,包括 OpenAI 兼容预设和 Ollama 本地模型;在浏览器中输入的 API 密钥保留在用户本机。
限制与风险
项目自述小模型容易生成损坏的图表,建议使用能力较强的模型。
如何开始
git clone https://github.com/DayuanJiang/next-ai-draw-io 后进入目录,npm install,复制 env.example 为 .env.local 并填入供应商与 API 密钥,npm run dev,打开 http://localhost:6002。
核验依据
GitHub 项目简介: Draw and edit draw.io diagrams by chatting with an AI.
README: Describe a diagram in a sentence and the AI draws it on a real draw.io canvas.
README: 25 model providers, including an OpenAI-compatible preset for any other URL; enter your own API key in the browser and it stays on your machine
README: claude mcp add --scope user drawio -- npx @next-ai-drawio/mcp-server@latest
README: Open [next-ai-drawio.jiang.jp](https://next-ai-drawio.jiang.jp/), nothing to install.