Drawio MCP Server

Draw.io MCP - A monorepo containing the MCP server and browser plugin

Local serverstdio

What is the Drawio MCP Server?

Draw.io MCP - A monorepo containing the MCP server and browser plugin

What the server does

Let's do some Vibe Diagramming with the most wide-spread diagramming tool called Draw.io (Diagrams.net).

The Draw.io MCP server brings Draw.io diagramming capabilities to AI agents. It provides MCP tools that can create, read, update, and delete diagram elements - letting AI assistants build architectural diagrams, flowcharts, and visual documentation automatically.

  • Document discovery — - list connected Draw.io document instances and route later calls to a specific tab/file instance
  • Diagram inspection — - read shapes, pages, layers, and cell properties
  • Diagram modification — - add/edit/delete shapes, edges, and labels on a target page
  • Page management — - list pages, inspect the current page, create pages, copy pages, and rename pages without forcing a visible page switch on supported runtimes
  • Layer management — - create, switch, and organize layers
  • Vendor shape coverage — - AWS, GCP, Azure, Cisco19, and CiscoSafe stencils auto-discovered at runtime from drawio's sidebar, so agents can place icons like mxgraph.gcp2.cloud_run or mxgraph.cisco19.router without hand-curated catalogs

Credentials and setup notes

  • Node.js (v22 or higher; tested against v22 LTS and v24 LTS) - Runtime environment for the MCP server - MCP client - Claude Desktop, Claude Code, Zed, Codex, OpenCode, or any MCP-compatible host

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
pnpmPreferred package manager (npm works fine too)

How to install the Drawio MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js (v22 or higher; tested against v22 LTS and v24 LTS) - Runtime environment for the MCP server - MCP client - Claude Desktop, Claude Code, Zed, Codex, OpenCode, or any MCP-compatible host

Example prompts to try

  • “Use Drawio to Multi.”
  • “Use Drawio to Per.”
  • “Use Drawio to Parent.”

Frequently asked questions

Draw.io MCP - A monorepo containing the MCP server and browser plugin Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.