draw.io MCP
Lets your AI agent create draw.io diagrams in chat from Mermaid or XML, shown live and interactive.
5.8k stars on GitHubby draw.io (jgraph)License Apache-2.0Updated 18 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://mcp.draw.io/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http draw https://mcp.draw.io/mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Draw an AWS architecture with a load balancer, two servers and a database.
Turn this Mermaid sequence diagram into a draw.io diagram I can edit.
What it is
This is the official draw.io MCP server. The hosted version draws diagrams inline in your chat, and you can open them in the draw.io editor to keep editing. It can search more than 10,000 shapes, such as AWS, Azure, Kubernetes, UML and BPMN. Other options open diagrams in your browser or create files through plugins.
What it can do
create_diagram: draw draw.io XML or Mermaid as an interactive diagram in chatsearch_shapes: find shapes and icons by keyword across 10,000+ shapesget_drawio_reference: return the XML or Mermaid reference the model reads before drawingopen_drawio_xml: open a diagram in the draw.io editor (tool server)
When to use
- βΊWhen you want an architecture diagram with cloud icons drawn straight from a description.
- βΊWhen you have Mermaid code and want it as an editable draw.io diagram.
- βΊWhen you want to restyle or change an existing diagram by asking for it.
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.mermaid-diagramsTeaches your agent to draw software diagrams such as flowcharts, sequence charts and database layouts in Mermaid's text format.Frequently asked questions
Is it official?
Yes. The readme calls it the official draw.io MCP server, from the jgraph repository.
Is it free?
The hosted endpoint and the npm package need no key. Pricing is not stated in the readme.
Which apps show diagrams inline?
Hosts that support MCP Apps, such as Claude.ai, ChatGPT, VS Code with GitHub Copilot and Cursor. Others get a link that opens the diagram in draw.io.
Does my diagram leave my computer?
With the hosted mcp.draw.io server, yes, it is sent as the MCP request. Self-hosting or the npm tool server keeps it local.
Can I run it myself?
Yes. Run it locally with Node.js, use the jgraph/drawio-mcp Docker image, or deploy your own to Cloudflare Workers.
What other ways are there?
A tool server opened with npx @drawio/mcp, plugins for Claude Code, Codex CLI, GitHub Copilot, Cursor and Antigravity, and a no-install project instructions option.
If it does not work
- βΊIf diagrams do not show inline, your app may not support MCP Apps. Use the link it returns or the npx @drawio/mcp tool server.
- βΊIn Cursor older than 2.6, use the stdio @drawio/mcp tool server instead of the hosted URL.
- βΊPNG, SVG or PDF export through plugins needs draw.io Desktop installed.
5 new skills a week. 1 minute to read.