Draw MCP Server

MCP server for Next AI Draw.io - AI-powered diagram generation with real-time browser preview

Remote serverstreamable-http

What is the Draw MCP Server?

MCP server for Next AI Draw.io - AI-powered diagram generation with real-time browser preview

What it actually does

MCP (Model Context Protocol) server that enables AI agents like Claude Desktop and Cursor to generate and edit draw.io diagrams with real-time browser preview.

  • Real-time Preview — Diagrams appear and update in your browser as the AI creates them
  • Version History — Restore previous diagram versions with visual thumbnails - click the clock button (bottom-right) to browse and restore earlier states
  • Natural Language — Describe diagrams in plain text - flowcharts, architecture diagrams, etc
  • Edit Support — Modify existing diagrams with natural language instructions
  • Export — Save diagrams as .drawio files
  • Self-contained — Embedded server, works offline (except draw.io UI which loads from embed.diagrams.net by default, configurable via DRAWIO_BASE_URL)

More MCP options

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

Maintainer setup documentation.

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
start_sessionOpens browser with real-time diagram preview
create_new_diagramCreate a new diagram from XML (requires xml argument)
edit_diagramEdit diagram by ID-based operations (update/add/delete cells)
get_diagramGet the current diagram XML
export_diagramSave diagram to a .drawio file

How to install the Draw MCP Server

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["@next-ai-drawio/mcp-server@latest"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DRAWIO_BASE_URLEndpoint or connection string the server talks to.Yes
PORTConfiguration value read at startup.Optional

Example prompts to try

  • “Use Draw to start session.”
  • “Use Draw to create new diagram.”
  • “Use Draw to edit diagram.”

Frequently asked questions

MCP server for Next AI Draw.io - AI-powered diagram generation with real-time browser preview Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.