New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Generate, convert, and deliver draw.io diagrams as native .drawio files via Mermaid or hand-written XML, with optional ELK auto-layout.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
17
skills.sh installs
3.5K
GitHub stars
5.9K
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers Mermaid-to-drawio conversion for flowcharts, sequence, class, ER, gantt, and other standard diagram types
  • Includes XML authoring with optional ELK auto-layout presets, custom layout JSON, and orthogonal edge routing via libavoid
  • Exports to PNG, SVG, or PDF with the diagram XML embedded so files stay editable in draw.io, or opens a browser URL to app.diagrams.net
  • Designed for chats without inline diagram rendering, such as Claude Code, Codex, and Copilot CLI, where diagrams need to be written to files

Install

$ npx -y skills add jgraph/drawio-mcp --skill drawio -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Draw.io Diagram Skill

Generate draw.io diagrams as native .drawio files. Author each diagram either as Mermaid (concise text that draw.io converts to editable shapes and connectors and lays out) or as draw.io XML directly. Optionally auto-layout XML with ELK, export to PNG/SVG/PDF with the diagram XML embedded (so the file stays editable in draw.io), or open the diagram in the draw.io editor through a browser URL.

Inline viewer first. This skill writes files and opens them with a shell command. If the draw.io MCP server's create_diagram tool is available in a chat that shows diagrams inline (VS Code's or Cursor's own chat, Claude.ai, ChatGPT), and the user hasn't asked for a .drawio file, an export or a URL, call create_diagram instead: the diagram appears in the conversation, with no file and no shell command. Claude Code, Codex and Copilot CLI don't show diagrams inline, not even in their VS Code or JetBrains extensions: there create_diagram only returns a link, so use this skill.

Authoring: Mermaid or XML?

Converted Mermaid is a native .drawio file, laid out automatically, which is far more reliable than hand-positioning cells in XML.

Details

Repository
github.com/jgraph/drawio-mcp
Categories
Design & UI/UX, Technical Documentation
First seen
May 16, 2026

Similar to Drawio

More Design & UI/UX