DM

draw.io MCP (official)

The draw.io team's own MCP for opening diagrams (XML, CSV, Mermaid) and reading draw.io shape/reference docs.

📄 Files & office documentsGitHub stars5,833Updated 2026-11-15By JGraph (draw.io)License: Apache-2.0Auth: Not checked yetGitHub ↗

Test results

Last passed 2026-10-21
Claude CodePartial2026-10-15 · verified connected, install; agent task not runTested with Claude Code 2.1.296 · server reported v1.7.0 · connect time not recorded
CursorPartial2026-10-15 · verified connected, install, tools visible; agent task not runTested with Cursor CLI 2026.10.12-d47ca18 · server reported v1.7.0 · connect time not recorded
Claude DesktopPassed2026-10-21 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · @drawio/mcp 1.10.0 · connected in 1.0s
ChatGPT (Codex)Passed2026-10-21 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · @drawio/mcp 1.10.0 · connect time not recorded

Server package tested: @drawio/mcp 1.10.0 (npm, Node v20.19.2; resolved 2026-10-21)

Direct and key dependencies as resolved: @modelcontextprotocol/sdk 1.32.1 · express 5.3.0 · pako 2.2.0 · zod 4.6.7 · zod-to-json-schema 3.25.2

All 92 resolved dependencies
@hono/node-server==2.1.5
@modelcontextprotocol/sdk==1.32.1
accepts==2.0.0
ajv==8.20.0
ajv-formats==3.0.1
body-parser==2.3.0
bytes==3.1.2
call-bind-apply-helpers==1.0.2
call-bound==1.0.4
content-disposition==2.0.1
content-type==1.0.5, 2.1.0
cookie==0.7.2
cookie-signature==1.2.2
cors==2.8.6
cross-spawn==7.0.6
debug==4.4.3
depd==2.0.0
dunder-proto==1.0.1
ee-first==1.1.1
encodeurl==2.0.0
es-define-property==1.0.1
es-errors==1.3.0
es-object-atoms==1.1.2
escape-html==1.0.3
etag==1.8.1
eventsource==3.0.7
eventsource-parser==3.1.1
express==5.3.0
express-rate-limit==8.7.1
fast-deep-equal==3.1.3
fast-uri==3.1.9
finalhandler==2.1.1
forwarded==0.2.0
fresh==2.0.0
function-bind==1.1.2
get-intrinsic==1.3.0
get-proto==1.0.1
gopd==1.2.0
has-symbols==1.1.0
hasown==2.0.4
hono==4.13.13
http-errors==2.0.1
iconv-lite==0.7.3
inherits==2.0.4
ip-address==10.7.4
ipaddr.js==1.9.1
is-promise==4.0.0
isexe==2.0.0
jose==6.2.13
json-schema-traverse==1.0.0
json-schema-typed==8.0.2
math-intrinsics==1.1.0
media-typer==1.1.1
merge-descriptors==2.0.0
mime-db==1.54.0
mime-types==3.0.2
ms==2.1.3
negotiator==1.1.0
object-assign==4.1.1
object-inspect==1.13.4
on-finished==2.4.1
once==1.4.0
pako==2.2.0
parseurl==1.3.3
path-key==3.1.1
path-to-regexp==8.4.2
pkce-challenge==5.0.1
proxy-addr==2.0.8
qs==6.16.1
range-parser==1.3.0
raw-body==3.0.2
require-from-string==2.0.2
router==2.2.0
safer-buffer==2.1.2
send==1.2.1
serve-static==2.2.1
setprototypeof==1.2.0
shebang-command==2.0.0
shebang-regex==3.0.0
side-channel==1.1.1
side-channel-list==1.0.1
side-channel-map==1.0.1
side-channel-weakmap==1.0.2
statuses==2.0.2
toidentifier==1.0.1
type-is==2.1.0
unpipe==1.0.0
vary==1.1.2
which==2.0.2
wrappy==1.0.2
zod==4.6.7
zod-to-json-schema==3.25.2

Captured with: npm ls --all --json in the npx env.

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: 8 tools + tool call OK · 2026-10-15 · connected in 1.0s

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
ChatGPT (Codex) · Codex CLI 0.162.0-alpha.17.2
Date
Oct 21, 2026
The task we gave
Using only the drawio-official MCP tools, get the draw.io XML reference and reply with the name of the root XML element used for diagrams.
What it promised
details not recorded for this run
What happened

Tool calls:

drawio-official:get_drawio_reference

Tool result

{"content": [{"type": "text", "text": "# draw.io XML Reference\n\nDetailed reference for styles, edge routing, containers, layers, tags, metadata, and dark mode. Consult this when generating draw.io XML diagrams.\n\n## Reasoning budget (read this first)\n\nYour job is to declare the **logical structure** of the diagram \u2014 what nodes exist, what edges connect them, what labels they carry, what lane/container groups them \u2014 and to put each node on a cell of the rigid grid below. The edge router and the optional layout pass (`routing: \"libavoid\"`, `postLayout: \"elk\"`, see **Edge routing & layout passes**) handle the wires and, when you use the layout pass, the placement; you do **not** need to do layout math beyond picking a grid cell.\n\n**Do NOT** in your reasoning:\n\n- Do NOT debate the topic. The user asked for a flowchart / architecture / sequence / etc. \u2014 pick one concrete scenario on your first impulse and commit. Never write \"Actually, let me think of something else\u2026\" or pitch alternatives.\n- Do NOT debate flat-lanes vs nested-pools, horizontal vs vertical orientation, one vs multiple variations. Pick the first reasonable option (almost always: flat swimlanes, top-down or left-right based on what fits the content). Do not flip-flop.\n- Do NOT compute x/y coordinates in prose. No \"column spacings of 160px totaling 1840px width \u2014 that's too wide, let me tighten to 1700\u2026\" loops. Use the rigid grid below; do the arithmetic in your head a

Agent reply

The root diagram XML element is `<mxGraphModel>`.
Verdict
Passed

Install

claude mcp add drawio-official -- npx -y @drawio/mcp

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "drawio-official": {
      "command": "npx",
      "args": [
        "-y",
        "@drawio/mcp"
      ]
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "drawio-official": {
      "command": "npx",
      "args": [
        "-y",
        "@drawio/mcp"
      ]
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.drawio-official]
command = "npx"
args = ["-y", "@drawio/mcp"]

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-21Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · @drawio/mcp 1.10.0
2026-10-21ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · @drawio/mcp 1.10.0
2026-10-15Protocol (direct stdio)Protocol: 8 tools + tool call OKserver reported v1.7.0
2026-10-15Claude CodePartial
verified connected, install; agent task not run
Claude Code 2.1.296 · server reported v1.7.0
2026-10-15CursorPartial
verified connected, install, tools visible; agent task not run
Cursor CLI 2026.10.12-d47ca18 · server reported v1.7.0

Tested on ToolPassed badge

ToolPassed: passed Claude Desktop, ChatGPT (Codex)

Maker of draw.io MCP (official)? It passed in Claude Desktop, ChatGPT (Codex) on 2026-10-21. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/drawio-official.svg)](https://toolpassed.com/mcp/drawio-official/)

Tools seen by our harness (8)

open_drawio_xmlopen_drawio_csvopen_drawio_mermaidget_drawio_referencelist_pagesget_pageset_pagesearch_shapes
Featured