draw.io MCP (official)

draw.io's own server, which is a different proposition from the community one: it opens diagram content in the editor rather than pretending to draw it.

Official TypeScript stdio

What it does

draw.io's own server, which is a different proposition from the community one: it opens diagram content in the editor rather than pretending to draw it. That makes it a handoff tool — the agent produces structure, a person adjusts layout. Honest about what generated diagrams still need.

Install

Terminal
npx -y @drawio/mcp

Client configuration

Paste this into your MCP client config (Claude Desktop, Cursor, or any client that reads mcpServers), then restart the client.

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

Use it for

Opening a diagram draft in the draw.io editor for a human to finish

Skip it if

Fully generated diagrams with no human pass

When to use it

Reach for this when the task needs diagrams inside the agent loop. Skip it if a plain shell command or a one-off script is enough — every server you add costs context and adds a failure mode.

Other TypeScript servers

  • Filesystem — Gives an agent scoped read, write, and search access to directories you explicitly allow
  • Memory — A persistent knowledge graph stored in a local JSON file, exposed through entities, relations, and observations
  • Sequential Thinking — Gives the model a scratchpad for structured, revisable reasoning: numbered thoughts that can branch, revise, and conclude