Next AI Draw IO logo

Next AI Draw IO

by DayuanJiang

Create and revise draw.io diagrams through MCP with a browser preview, saved versions, shape libraries, selection feedback, and exports.

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": {
    "dayuanjiang-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.

Automated check passed— started and listed 16 tools correctly ().

Overview

DayuanJiang/next-ai-draw-io connects AI agents to a live draw.io canvas opened in a browser. Agents create and modify diagrams from mxCell XML, read back the current diagram and selection, inspect screenshots, and restore saved versions. Human edits made on the canvas are available to later agent operations, while diagrams can be saved, reopened, and exported. Use it when an agent and a developer need to iterate on the same architecture or infrastructure diagram.

Use cases

  • Draw an architecture diagram from a code repository
  • Revise infrastructure diagrams with AWS, Azure, or GCP shapes
  • Inspect a rendered diagram and correct visual overlaps
  • Continue editing a saved diagram in a later session
  • Export a diagram as PNG, SVG, or draw.io XML

Key features

  • Live browser-based draw.io preview
  • Atomic cell-level diagram edits
  • Readback of XML and selected shapes
  • Screenshot-based visual checking
  • Version history with restore and redo
  • AWS, Azure, GCP, Kubernetes, and Cisco shape libraries

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

Recent health check succeeded.

31/31 checks healthy over the last 20d

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 age328 days
Maintainers1

Observed 2026-11-10 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 6d 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 downloads90kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed16Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Next AI Draw IO works

What DayuanJiang/next-ai-draw-io does

DayuanJiang/next-ai-draw-io gives MCP-compatible agents access to a draw.io editor with a browser-based preview. An agent can create a diagram from mxCell XML, make atomic cell additions, updates, or deletions, and retrieve the resulting XML. The browser canvas remains available for direct manual editing, so the workflow supports alternating between agent changes and human adjustments.

The editor includes draw.io shape libraries, including AWS, Azure, GCP, Kubernetes, and Cisco styles. Diagrams can contain multiple pages and can be saved as .drawio, .drawio.svg, .png, or .svg files. PNG output uses a white background unless transparency is enabled, and exported images include a margin.

How it works

The server runs through npx and communicates with the MCP client over stdio. Starting a session opens the preview and returns a drawing guide. A session_id can reopen a saved diagram in a later conversation. The browser preview highlights agent changes temporarily, and the agent can read the current canvas after manual edits through get_diagram.

Agents can request a screenshot to inspect the rendered result, use the current selection as context, and restore an earlier version when a change needs to be reversed. The server keeps the last 20 versions for a diagram and stores up to 50 saved diagrams, newest first. By default, saved data is placed under ~/.next-ai-drawio.

Setup and configuration

Install the server with the package tagged @latest, then register it as a stdio MCP server. Claude Code, Codex CLI, VS Code, Cursor, Claude Desktop, and Cline are documented client options. After registration, restart the client and start a drawing request; the preview opens in a browser unless automatic browser launching is disabled.

No environment variables are required for the basic setup. Available settings include:

  • PORT selects the preview port, beginning at 6002 and moving to another free port through 6020.
  • DRAWIO_DATA_DIR changes the storage directory; setting it to off disables saving.
  • DRAWIO_AUTO_SCREENSHOT=true attaches a screenshot to create and edit results.
  • DRAWIO_BASE_URL points to another draw.io deployment.
  • DRAWIO_LANG, DRAWIO_UI, and DRAWIO_DARK set language and appearance preferences.
  • BROWSER=none prevents automatic browser opening while preserving the returned preview URL.
  • DEBUG=true writes diagnostic messages to stderr.

Custom drawing instructions can be placed in ~/.next-ai-drawio/instructions.md; the first 5,000 characters are added to the drawing guide.

Tools and capabilities

The core MCP operations are:

  • start_session opens or resumes a preview.
  • create_new_diagram creates a diagram from mxCell XML.
  • edit_diagram applies cell additions, changes, or deletions as one operation.
  • get_diagram returns the current XML, including browser edits.
  • get_selection reports selected shapes in the preview.
  • screenshot_diagram returns a PNG for visual checking.
  • restore_version returns to an earlier version while retaining a possible redo path.
  • list_saved_diagrams lists diagrams from previous sessions.

Additional operations load and export diagram files, manage pages, and return drawing guides or shape-library information.

Limitations and notes

A self-hosted draw.io instance can be selected with DRAWIO_BASE_URL, but cross-origin previews cannot provide change outlines, Ctrl+Z reversion, or selection reporting. The bundled editor omits some on-demand features, such as the org chart layout, and exported images may omit inserted pictures because the bundled copy has no image proxy. Codex may require approval for diagram-changing tool calls unless its MCP approval settings are adjusted.

Reviews

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

Frequently Asked Questions about Next AI Draw IO

DayuanJiang/next-ai-draw-io is an MCP server that connects AI agents to a live draw.io browser canvas. Its main tools create and edit diagrams, read current XML and selections, capture screenshots, start or resume sessions, restore versions, and list saved diagrams for continued work.

Install it as a stdio server with `npx @next-ai-drawio/mcp-server@latest`, using your client’s MCP configuration. Claude Code and Codex provide CLI commands, while VS Code, Cursor, Claude Desktop, and Cline use JSON configuration. Restart the client after registration.

Yes, DayuanJiang/next-ai-draw-io works with Cursor. Add a `drawio` MCP entry that runs `npx @next-ai-drawio/mcp-server@latest`, restart Cursor, and then ask the agent to create or edit a diagram.

It saves diagrams and their last 20 versions under `~/.next-ai-drawio` by default and retains the newest 50 diagrams. Set `DRAWIO_DATA_DIR` to change the location, or set it to `off` to disable saving.

Yes, it can save diagrams as `.drawio`, `.drawio.svg`, `.png`, and `.svg`. PNG exports use a white background by default, while `transparent: true` removes that background.

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/dayuanjiang-next-ai-draw-io?style=directory)](https://allmcps.com/mcp/dayuanjiang-next-ai-draw-io)
HTML Embed
<a href="https://allmcps.com/mcp/dayuanjiang-next-ai-draw-io"><img src="https://allmcps.com/api/badge/dayuanjiang-next-ai-draw-io?style=directory" alt="Next AI Draw IO on AllMCPs" /></a>