drawio-mcp (jgraph/drawio-mcp)

Searching Database…

What is this?The official draw.io MCP server: it lets LLMs and AI assistants create diagrams and open them in the draw.io editor, from inline chat previews to .drawio files on disk.
Is it one server, or are there several ways to hook it into my AI assistant?Four ways in: an MCP App Server that renders diagrams inline in chat, an MCP Tool Server that opens them in your browser, plugins for AI coding assistants that write .drawio files, and paste-in project instructions with nothing to install.
How do I get it running?Add the hosted mcp.draw.io URL as a remote MCP server in Claude.ai, Cursor or any MCP Apps host — no install. Or run the tool server with 'npx @drawio/mcp', or install a plugin from the repo's marketplace in one line.
Which AI tools can I plug it into?The App Server works in Claude.ai, VS Code and Cursor; the Tool Server in Claude Desktop, Cursor and any MCP client; the plugins target Claude Code, Codex CLI and GitHub Copilot; the instructions mode only needs a Claude Project.
The inline chat preview sounds nice — does it work in every host?No. Inline rendering needs a host with MCP Apps support, like Claude.ai or Cursor 2.6+. Elsewhere the tool still works but returns the diagram as plain XML text, so you would use the browser-opening Tool Server there instead.
Does my diagram data leave my machine?Usually not: the Tool Server passes diagrams in the URL fragment browsers never transmit, and the plugins keep everything local, exporting via your own draw.io Desktop CLI. Only the hosted App Server sends data out — self-host it if that matters.
What can it actually draw — plain boxes or real icons like AWS and UML?Real ones: searchshapes searches 10,000+ shapes across all draw.io libraries — AWS, Azure, GCP, Kubernetes, UML, BPMN, Cisco, electrical and more — with a live icon service for brand logos, returning style strings ready to paste into your XML.
Which formats can I describe a diagram in?XML, CSV and Mermaid.js. The Tool Server and project instructions accept all three; the App Server and plugins work with draw.io XML, the native format that stays fully editable.
Can it clean up a messy layout on its own?Two optional passes: ELK auto-layout re-arranges nodes into a clean layered layout, while libavoid only reroutes connectors orthogonally around shapes you placed deliberately. Pick one, not both — ELK already routes its own edges.
Do I need draw.io Desktop installed for any of this?Not for the MCP servers or URL output — only the plugins' PNG/SVG/PDF export needs it, shelling out to your local draw.io Desktop CLI. Bonus: exports embed the XML, so exported files stay editable in draw.io.
Creator
jgraph
Size
18.9 MB
Stars
5.9K
Updated
CommitNov 23
Age
9mo
Commits · 90 Days