Next AI Draw IO logo

Next AI Draw IO

Create, edit, inspect, preview, version, and export draw.io diagrams through MCP tools and an embedded browser canvas.

Install Next AI Draw IO

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "next-ai-draw-io": {
      "command": "npx",
      "args": [
        "-y",
        "@next-ai-drawio/mcp-server@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

The next-ai-draw-io MCP server connects AI agents to an embedded draw.io editor for creating and modifying diagrams through chat. It supports XML-based diagram creation, ID-based cell edits, multiple pages, saved sessions, selections, screenshots, version restoration, and exports to common draw.io formats. Shape-library and drawing-guide tools help agents follow the editor’s XML and styling conventions, including cloud, networking, business, and engineering icon sets. Reach for it when an agent needs to produce or revise a visual diagram while keeping the result editable in draw.io.

Use cases

  • Create AWS and Kubernetes architecture diagrams from natural-language requirements
  • Edit selected draw.io shapes and connectors through an AI agent
  • Load existing diagrams, revise cells, and export updated files
  • Generate multi-page process, ER, BPMN, and flowchart diagrams
  • Inspect rendered screenshots and correct layout problems

Key features

  • Browser-backed draw.io preview with live updates
  • ID-based XML cell editing with freshness checks
  • Cloud, networking, business, UI, and engineering shape libraries
  • Multi-page diagrams and version history
  • Diagram selection, screenshot, loading, and export tools
  • Auto-save and resumable diagram sessions

Tools16

What Next AI Draw IO lets your agent do. Expand a tool for its parameters.

Verified live~4.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

35/35 checks healthy over the last 23d

What it can do

From the 16 tools this server returned when we ran it; 16 declare their own safety hints.

Can delete or modify data · 2Read-only tools · 14
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age309 days
Maintainers1

Observed 2026-10-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @next-ai-drawio/mcp-server@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars36kStargazers on the source repository.
npm downloads70kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Tools exposed16Callable tools this server registers over MCP.
Directory activity3 installsConfig copies, upvotes, and views on AllMCPs.

How Next AI Draw IO works

What next-ai-draw-io does

next-ai-draw-io exposes a draw.io canvas through the Model Context Protocol. An AI agent can start a browser-backed session, create a diagram, modify individual cells, inspect the current XML, and export the result. The editor remains available for manual changes, while the server can read selections and render screenshots for visual checks.

The server supports architecture diagrams, flowcharts, sequence diagrams, ER diagrams, BPMN processes, journey maps, and other draw.io-compatible layouts. Its shape libraries include AWS, Azure, GCP, Alibaba Cloud, OpenStack, Salesforce, Cisco, Kubernetes, BPMN, flowchart, UI, enterprise, and engineering sets. Agents should query the relevant library before using icon shapes so they receive valid shape names and style syntax.

How it works

start_session launches an embedded server, opens draw.io in a browser, and returns the drawing guide. The guide describes the expected XML structure, layout constraints, edge routing, styles, and editing rules. Sessions can be resumed with a saved session ID, and prior auto-saved diagrams can be discovered with list_saved_diagrams.

New diagrams replace the complete document through create_new_diagram; adding a tab without removing existing pages uses add_page. Existing content can be loaded from a file path or XML with load_diagram, then inspected with get_diagram and changed through all-or-nothing cell operations in edit_diagram. Updates identify cells by ID, while adding a cell requires a unique ID and complete XML. Browser edits are protected by freshness checks, so a stale edit is rejected rather than silently overwriting newer changes.

Pages can be listed, renamed, or deleted, with a safeguard against removing the final page. restore_version returns an earlier state from History. get_selection reports the cells selected in the preview, and screenshot_diagram renders a page as PNG for checking layout and connector crossings.

Setup and configuration

Run the server through an MCP client with the package’s latest tag:

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

The project documents this configuration for Claude Desktop, Cursor, VS Code, and Claude Code, and provides a Claude Code command using claude mcp add. It is also available as a Claude Code community-marketplace plugin. The draw.io editor is bundled with the package, and the preview works offline after the server starts. Auto-saved diagrams are stored under ~/.next-ai-drawio/.

Tools and capabilities

  • Start or resume sessions and open the live browser preview.
  • Create, load, inspect, and edit multi-page draw.io documents.
  • Add, rename, delete, and target individual pages.
  • Query drawing rules and shape-library syntax before generating XML.
  • Read selected cells and render screenshots for visual verification.
  • Restore diagram versions and use the editor’s History behavior.
  • Export full documents or pages as .drawio, .png, .svg, or .drawio.svg.

XML input can be a page’s mxCell elements, a bare mxGraphModel, or a full multi-page mxfile. Cells must use unique IDs, and diagrams follow the server’s documented coordinate and parentage rules.

Limitations and notes

create_new_diagram replaces every page and unsaved change, although the previous state remains in History. Use add_page when the goal is to preserve existing tabs. Loading from a path or compressed XML requires retrieving the diagram before editing so the agent knows the cell IDs; plain XML already supplied by the agent can be edited directly.

Selection and screenshot operations require the preview tab to be open. PNG and SVG exports without a page selector use the active browser page, while a .drawio export without a selector includes all pages. Plain PNG and SVG files cannot be loaded; .drawio, draw.io compressed XML, and editable .drawio.svg files can be loaded.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Next AI Draw IO

next-ai-draw-io is an MCP server that connects AI agents to an embedded draw.io editor and browser preview. Its main tools start sessions, create and edit XML diagrams, inspect selections, render screenshots, manage pages and history, load saved files, and export diagrams as .drawio, .png, .svg, or .drawio.svg.

Install it by adding an MCP server entry that runs `npx @next-ai-drawio/mcp-server@latest`. Claude Code can use `claude mcp add --scope user drawio -- npx @next-ai-drawio/mcp-server@latest`; the project also offers a Claude Code marketplace plugin.

Yes, next-ai-draw-io works with Cursor through its MCP configuration. Add the server with the `npx` command and the `@next-ai-drawio/mcp-server@latest` package, or use the project’s Cursor installation link.

Yes, load an existing `.drawio` file with `load_diagram`, inspect it with `get_diagram` when needed, and apply ID-based changes through `edit_diagram`. The edited document can then be written with `export_diagram`.

It exports `.drawio`, `.png`, `.svg`, and `.drawio.svg` files. A `.drawio` export can include all pages, while image exports render the active or selected page.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNext AI Draw IO AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/next-ai-draw-io?style=directory)](https://allmcps.com/mcp/next-ai-draw-io)
HTML Embed
<a href="https://allmcps.com/mcp/next-ai-draw-io"><img src="https://allmcps.com/api/badge/next-ai-draw-io?style=directory" alt="Next AI Draw IO on AllMCPs" /></a>