
Drawio Mcp
A programmatic interface to draw.io's XML format that exposes diagram lifecycle, drawing, styling, layout, and inspection tools through MCP. You get 310+ shape presets spanning flowcharts, UML, C4, ER, BPMN, and cloud architectures, plus auto-layout engines like Sugiyama DAG and orthogonal routing with obstacle avoidance. Works with Claude Desktop, GitHub Copilot agent mode, and Cursor. The polish action is the standout: one call fixes overlaps, reroutes edges, and cleans up labels automatically. Ships with 44 edge styles and 21 color themes. If you need your LLM to generate or modify technical diagrams that open cleanly in draw.io without manual cleanup, this handles the geometry and styling mechanics so prompts like "make a Kubernetes deployment diagram" actually produce usable output.
- GitHub stars
- 5
- tool
- 1
- transport
- STDIO
- last updated
- Feb 9, 2026
Tools
1 toolsPublic tool metadata for what this MCP can expose to an agent.
create_diagramCreates and displays an interactive draw.io diagram. Pass draw.io XML (mxGraphModel format) to render it inline. IMPORTANT: The XML must be well-formed. Do NOT use double hyphens (--) inside XML comments, as this is invalid XML and will break the parser. Use single hyphens or...1 params
Creates and displays an interactive draw.io diagram. Pass draw.io XML (mxGraphModel format) to render it inline. IMPORTANT: The XML must be well-formed. Do NOT use double hyphens (--) inside XML comments, as this is invalid XML and will break the parser. Use single hyphens or...
xmlstringSponsors
Readme
🎨 Draw.io MCP Server
Let your AI assistant create beautiful draw.io diagrams — just describe what you want.
An MCP server that generates draw.io / diagrams.net XML files programmatically. Works with GitHub Copilot (agent mode), Claude Desktop, Cursor, and any MCP-compatible client.
✨ What Can It Do?
Details
- Repository
- github.com/yohasacura/drawio-mcp
- Category
- Data & Analytics
- Package
drawio-mcp- Transport
- STDIO
- Registry
- MCP registry, active