Next AI Draw.io
Lets your AI agent draw and edit draw.io diagrams on a live browser canvas that you can also change by hand.
37k stars on GitHubby Dayuan JiangLicense Apache-2.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add next-ai-drawio -- npx -y @next-ai-drawio/mcp-server
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Draw a flowchart of user authentication with login, MFA and session management
Draw an AWS architecture for a web app across two availability zones with the AWS icons
What it is
This server lets your AI agent create diagrams on a real draw.io canvas that opens in your browser. You describe a diagram in words, the agent draws it, and you can keep editing it by hand. Results can be exported as .drawio, .png or .svg files.
What it can do
- Draw diagrams such as flowcharts, architecture and sequence diagrams
- Use built-in AWS, Azure, GCP and Kubernetes icon libraries
- Read the shapes you select so the agent edits only those
- Take a screenshot of the diagram so the agent can check and fix it
- Keep version history and several pages
- Export as .drawio, .png, .svg or .drawio.svg
When to use
- βΊWhen you need an architecture diagram without drawing every box yourself
- βΊWhen you want to change part of a diagram by selecting shapes and telling the agent what to do
- βΊWhen you want a diagram you can still open and edit as a normal draw.io file
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
drawioHelps your agent make draw.io diagrams, such as flowcharts, architecture maps, and mockups, as editable .drawio files that can also be exported as PNG, SVG, or PDF.cli-anything-drawioLets your agent create, edit, and export diagrams with Draw.io from the command line, including shapes, styles, and page setup.drawio-skillHelps your agent create and edit draw.io diagrams as editable files, from a description or from code and database schemas.Frequently asked questions
Is it open source?
The readme shows an Apache-2.0 license badge. There is also a web app and a desktop app.
Does the MCP server work offline?
The draw.io editor ships inside the package, so the preview works offline according to the readme.
Where are my diagrams saved?
The MCP server auto-saves to ~/.next-ai-drawio/.
Which clients can use it?
Claude Code, Claude Desktop, Cursor, VS Code, Codex and other MCP clients.
Can I undo what the AI did?
Yes. The AI's changes are outlined and one Ctrl+Z takes them back.
How do I install it in Claude Code?
Run: claude mcp add --scope user drawio -- npx @next-ai-drawio/mcp-server@latest.
If it does not work
- βΊCheck that Node.js is installed and that npx can run @next-ai-drawio/mcp-server@latest.
- βΊRestart your MCP client fully after adding the server.
- βΊIf the diagram does not appear, check that your browser opened the preview page the server started.
5 new skills a week. 1 minute to read.