drawio

drawio is a skill for Claude Code, Codex from jgraph/drawio-mcp. It costs 75 tokens per session (5,246 once invoked), scanned A, original, Apache-2.0.

A tool for creating editable diagrams in draw.io, a diagram editor used for flowcharts, system designs, database relationships, and other technical drawings.

In plain words
What is it for?
It helps create flowcharts, architecture, ER, sequence, class, network, mockup, and wireframe diagrams, with exports to PNG, SVG, or PDF.
Why use it?
It provides a structured diagram file that can be reopened and edited instead of producing only a fixed image.

Skill for Claude CodeCodex

Part of the claude-code plugin — 1 skill shipped together

About the project

drawio-mcp is an official Model Context Protocol server that lets AI assistants create and open editable diagrams in the draw.io editor. It supports diagram workflows ranging from inline chat previews to browser editing and generated draw.io, PNG, SVG, or PDF files. The catalogue entries provide its MCP servers, assistant integrations, project instructions, and skill.

jgraph/drawio-mcp · 5,332 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jgraph/drawio-mcp/drawio
Any agent
npx skills add jgraph/drawio-mcp --skill drawio
Clone the repo
git clone --depth 1 https://github.com/jgraph/drawio-mcp

Made for: Claude Code, Codex.

Or install claude-code, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drawio

README.md
[![agentmods](https://agentmods.dev/badge/skills/jgraph/drawio-mcp/drawio.svg)](https://agentmods.dev/skills/jgraph/drawio-mcp/drawio)
Your own site
<a href="https://agentmods.dev/skills/jgraph/drawio-mcp/drawio"><img src="https://agentmods.dev/badge/skills/jgraph/drawio-mcp/drawio.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00075 $0.05246
Opus 5 $0.00037 $0.02623
Sonnet 5 $0.00015 $0.01049
Haiku 4.5 $0.00007 $0.00525

Measured 5d ago against content hash 4db0d9428e85, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

drawio scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

This uses only Node.js built-in modules (`zlib`, `child_process`) — no external dependencies.
plugins/claude-code/skills/drawio/SKILL.md · 390 lines

How it starts

The opening of the file, as written. The whole thing — 390 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Draw.io Diagram Skill

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

Authoring: Mermaid or XML?

The desktop CLI can convert Mermaid to a native .drawio file, so prefer Mermaid for the diagram types it handles well — its parser lays the diagram out automatically, which is far more reliable than hand-positioning cells in XML.

Author as Best for Needs desktop CLI?
Mermaid Flowcharts, sequence, class, state, ER, gantt, mindmap, timeline, user journey, quadrant, C4, git graph, pie, and other standard types Yes — to convert to .drawio
XML Custom styling, precise/hand positioning, specific shape libraries (AWS, Azure, network, UML detail…), or when the desktop CLI is not installed No (optional ELK --layout needs the CLI)
  • Prefer Mermaid when the desktop CLI is available and the request is one of the standard types above — write terse Mermaid and let draw.io lay it out.
  • Use XML for precise control, or as the universal fallback: XML needs no CLI at all, so it's the only option when the desktop app isn't installed (output a .drawio file or a url).
  • For XML-authored diagrams you can ask the CLI to apply an ELK auto-layout (--layout) instead of computing coordinates yourself — the same layouts the draw.io editor's Arrange ▸ Layout menu applies, and the same engine the draw.io MCP app server uses. See ELK layout for XML.

If you're unsure whether the desktop CLI is present, detect it first (see Locating the CLI). No CLI → author as XML and deliver a .drawio file or a url.

Read the full file on GitHub · 390 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 390 lines · 75 tokens per session scan A 4db0d9428e85

Subscribe to this mod's changes

drawio is a skill published in the GitHub repository jgraph/drawio-mcp (5,332 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 5,246 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.