next-ai-draw-io
Draw and edit draw.io diagrams by chatting with an AI. Web app, desktop app, and an MCP server for Claude Code, Cursor, Codex and VS Code.
Install / Use
npx skills add DayuanJiang/next-ai-draw-ioInstalls into whichever agent you are using.
CLAUDE.md
Claude Code project instructions
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of next-ai-draw-io
next-ai-draw-io scores 98/100 on our quality scale, 22nd of 960 AI & Machine Learning skills we index (top 3%).
Its CLAUDE.md is 9.7 KB long, well organised into 13 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
With 36,267 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated today, so next-ai-draw-io is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
next-ai-draw-io compared with similar skills
All 4 of these similar skills score higher than next-ai-draw-io; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| next-ai-draw-io (this skill)by DayuanJiang | 98 | 36.3k | today | CLAUDE.md |
| claude-memby thedotmack | 100 | 101.1k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 97.8k | today | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 97.5k | 1d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 86.5k | 3d ago | CLAUDE.md |
Frequently asked questions
- How do I install next-ai-draw-io?
- Run
npx skills add DayuanJiang/next-ai-draw-io. The install tabs above show the steps for each supported agent. - Which AI agents does next-ai-draw-io work with?
- It is written for Claude Code, Cursor and OpenAI Codex, as a CLAUDE.md file. Other agents that read the same format can often use it too.
- Is next-ai-draw-io safe to use?
- It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is next-ai-draw-io still maintained?
- The repository was last updated today, so next-ai-draw-io is actively maintained.
Skill content
View source on GitHubNext AI Draw.io
Draw and edit draw.io diagrams by chatting with an AI.
Live Demo · Desktop App · MCP Server
</div>https://github.com/user-attachments/assets/66b9f12f-219f-4d62-acc0-0725e6850eec
Describe a diagram in a sentence and the AI draws it on a real draw.io canvas. Edit it by hand like any draw.io file, or select a few shapes and tell the AI what to change. Every AI change is a version you can compare, restore or undo, and the result exports as .drawio, .png or .svg.
Available as a web app, a desktop app for Windows, macOS and Linux, and an MCP server for AI agents such as Claude Code, Cursor and VS Code.
Highlights
Draw
- Architecture diagrams, flowcharts, sequence diagrams and more from one sentence, with built-in AWS, Azure, GCP and Kubernetes icon libraries
- Connectors can carry a flowing animation
- Upload a screenshot or a sketch and the AI redraws it; upload PDF, Markdown, code and other text files and get a diagram of their content
Edit
- Edit by chat: changes stream onto the canvas and the shapes the AI just changed are highlighted
- Ask about a selection: select shapes on the canvas and the AI changes only those
- Versions and undo: every AI change is a version card with a thumbnail; compare it with the canvas, restore it or undo it, and Ctrl+Z on the canvas also takes back an AI change in one step
- It is a normal draw.io diagram: double-click to rename, drag, restyle, use several pages, and export as
.drawio,.png,.svgor.drawio.svgat any time
Use
- 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
- Models that reason show their thinking
- Dark mode; the interface is available in English, Simplified Chinese, Traditional Chinese and Japanese
Examples
<div align="center"> <table width="100%"> <tr> <td colspan="2" valign="top" align="center"> <strong>Transformer architecture with animated connectors</strong><br /> <p><strong>Prompt:</strong> Give me a <strong>animated connector</strong> diagram of transformer's architecture.</p> <img src="./public/animated_connectors.svg" alt="Transformer architecture with animated connectors" width="440" /> </td> </tr> <tr> <td width="50%" valign="top"> <strong>RAG architecture</strong><br /> <p><strong>Prompt:</strong> Generate a RAG architecture diagram for <strong>chat application</strong>. Use connected diagram for data ingestion</p> <img src="./public/rag_prod.svg" alt="RAG architecture diagram" width="400" /> </td> <td width="50%" valign="top"> <strong>Authentication with React and AWS</strong><br /> <p><strong>Prompt:</strong> Generate authentication process using React with <strong>AWS</strong>. Use Serverless architecture.</p> <img src="./public/auth.svg" alt="Authentication architecture diagram" width="400" /> </td> </tr> <tr> <td width="50%" valign="top"> <strong>Open Innovation model</strong><br /> <p><strong>Prompt:</strong> Create visualization of Henry Chesbrough's Open Innovation model.</p> <img src="./public/inno.svg" alt="Open Innovation diagram" width="400" /> </td> <td width="50%" valign="top"> <strong>Cat sketch</strong><br /> <p><strong>Prompt:</strong> Draw a cute cat for me.</p> <img src="./public/cat_demo.svg" alt="Cat drawing" width="200" /> </td> </tr> </table> </div>Use it
Online demo
Open next-ai-drawio.jiang.jp, nothing to install. The demo has a usage limit; click the settings icon in the chat panel and enter your own provider and API key to lift it. The key stays in your browser and is never sent to the server for storage.
Desktop app
Download the Windows, macOS or Linux installer from the Releases page.
In your AI agent (MCP)
https://github.com/user-attachments/assets/6f53a67b-ab21-4113-9fee-7fb32f9de678
Through MCP (Model Context Protocol, the protocol AI agents use to call outside tools), Claude Desktop, Cursor, VS Code and others can draw draw.io diagrams directly. Add this to your client's MCP configuration:
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["@next-ai-drawio/mcp-server@latest"]
}
}
}
For Claude Code, one command does it (--scope user makes it available in every project):
claude mcp add --scope user drawio -- npx @next-ai-drawio/mcp-server@latest
It is also a plugin in the Claude Code community marketplace (Claude Code 2.1.275 or later):
/plugin install next-ai-drawio --marketplace anthropics/claude-plugins-community
Then ask the AI for "a flowchart of user authentication with login, MFA and session management" and the diagram appears in your browser as it is drawn. The MCP server has most of the web app's drawing features:
- The same drawing rules and icon libraries (AWS, Azure, GCP, Kubernetes and more)
- The preview is the same canvas as the web app: the AI's changes are outlined, one Ctrl+Z takes them back, and the AI can read the shapes you select
- The draw.io editor ships inside the package, so after install the preview works offline (
DRAWIO_BASE_URLpoints it at an external draw.io instead) - A screenshot tool, so the AI can look at the rendered diagram and fix it
- Version history, multi-page diagrams, and download as
.drawio,.png,.svgor.drawio.svg - Auto-save to
~/.next-ai-drawio/, so a diagram survives a restart - Ask the AI to undo, and keep your own drawing rules in
~/.next-ai-drawio/instructions.md
See the MCP server README for VS Code, Cursor and other client configurations, and for how it compares with other draw.io MCP servers.
Compared with draw.io's built-in AI
draw.io has its own Generate tool (Arrange > Insert > Generate). It runs inside draw.io on a free hosted model or your own API key, and it can change a diagram, page or selection that you attach to its chat. Next AI Draw.io sends the current canvas, including your hand edits, with every message, turns every AI change into a version you can compare or restore, and works with 25 providers, including local models through Ollama, on the demo site, in the desktop app or on your own server.
Self-host
Run locally
git clone https://github.com/DayuanJiang/next-ai-draw-io
cd next-ai-draw-io
npm install
cp env.example .env.local # add your provider and API key, see "Models and providers" below
npm run dev
Open http://localhost:6002.
One-click deploy
| Platform | How |
| --- | --- |
| Tencent EdgeOne Pages | Deploying there also gives you a daily free quota for DeepSeek models |
| Vercel |
Set the same environment variables in the Vercel dashboard as in your
.env.local |
| Cloudflare Workers | Cloudflare deploy guide |
| Docker | Docker guide |
| Offline or intranet | Offline deployment |
Models and providers
25 providers are supported: AWS Bedrock (default), OpenAI, Anthropic, Google AI, Google Vertex AI, Azure OpenAI, Ollama, OpenRouter, AIHubMix, DeepSeek, SiliconFlow, SGLang, Vercel AI Gateway, Tencent EdgeOne, ByteDance Doubao, ModelScope, Zhipu GLM, Qwen, Qiniu, Kimi, MiniMax, Novita, Xiaomi MiMo, Atlas Cloud, and an OpenAI-compatible preset for any other URL (vLLM, LM Studio, a gateway). The environment variables and notes for each are in the provider configuration guide.
Which model: the task is to produce long text in a strict format (draw.io XML), so pick a capable model; small models tend to produce broken diagrams.
Several models and the admin panel: list several model IDs in AI_MODEL separated by commas, or configure models from several providers with the AI_MODELS_CONFIG environment variable or an ai-models.json file, and every user can use them without a key of their own. Set ADMIN_PASSWORD and open /admin to manage models, access codes, feature switches, observability and quotas from a web page; see the admin panel guide.
Support
- Questions and ideas: open a GitHub issue or email me[at]jiang.jp
- Common problems: FAQ
- If the project is useful to you, consider sponsoring to help keep the demo site running
Related Skills
claude-mem
101.1kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
97.8kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
taste-skill
97.5kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Understand-Anything
86.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
