DM

Draw.io MCP

Create and edit draw.io diagrams from the agent.

📄 Files & office documentsGitHub stars1,498Updated 2026-11-01License: MITAuth: noneGitHub ↗
Runner-up · best for files & office documents

See the pick for the verdict.

Test results

Last passed 2026-10-14
Claude CodePassed2026-10-13 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · server reported v1.0.0 · connect time not recorded
CursorPassed2026-10-13 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.12-d47ca18 · server reported v1.0.0 · connect time not recorded
Claude DesktopPassed2026-10-14 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta) · package version not recorded · connected in 2.3s
ChatGPT (Codex)Passed2026-10-14 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · package version not recorded · connect time not recorded

Server package and resolved dependency versions: not recorded for these runs (our harness records them from Oct 19, 2026 on).

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: 30 tools + tool call OK · 2026-10-13 · connected in 0.8s
🧪 Test-box note: Requires Node 22+ (harness uses ~/opt/node22). Tools act on a live draw.io editor: the server's built-in editor (--editor) is kept open in headless Chrome by scripts/drawio_sidecar.sh during tests. Published snippet: npx -y drawio-mcp-server --editor, then open http://localhost:3000/.

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 14, 2026
The task we gave
Using only the drawio MCP tools: add a rectangle whose text is TP-69147C to page index 0 of the open diagram, then export the diagram as XML. Then read it back with the same tools and reply with the exact text you read.
What it promised
details not recorded for this run
What happened

Tool calls:

drawio:add-rectangledrawio:export-diagramdrawio:list-paged-model

Tool result

{"content": [{"type": "text", "text": "{\"success\":true,\"result\":{\"value\":\"TP-69147C\",\"geometry\":{\"x\":100,\"y\":100,\"width\":200,\"height\":100,\"relative\":false,\"TRANSLATE_CONTROL_POINTS\":true,\"alternateBounds\":null,\"sourcePoint\":null,\"targetPoint\":null,\"points\":null,\"offset

Agent reply

TP-69147C
Verdict
Passed

Install

claude mcp add drawio -- npx -y drawio-mcp-server --editor --http-port 3311

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

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": [
        "-y",
        "drawio-mcp-server",
        "--editor",
        "--http-port",
        "3311"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": [
        "-y",
        "drawio-mcp-server",
        "--editor",
        "--http-port",
        "3311"
      ]
    }
  }
}

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

[mcp_servers.drawio]
command = "npx"
args = ["-y", "drawio-mcp-server", "--editor", "--http-port", "3311"]

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-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: 30 tools + tool call OKserver reported v1.0.0
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · server reported v1.0.0
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · server reported v1.0.0

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of Draw.io MCP? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-14. 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.svg)](https://toolpassed.com/mcp/drawio/)

Tools seen by our harness (30)

get-selected-celladd-rectangleadd-edgedelete-cell-by-idget-shape-categoriesget-shapes-in-categoryget-shape-by-nameadd-cell-of-shapeset-cell-shapeset-cell-dataedit-celledit-edgelist-paged-modellist-layersset-active-layermove-cell-to-layerset-cell-parentget-active-layercreate-layerexport-diagramimport-diagramimport-mermaidlist-documentslist-pagesget-current-pagecreate-pagecopy-pagerename-pageset-document-titlesave-document
Featured