Next AI Draw IO logo

Next AI Draw IO

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

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.

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

Overview

next-ai-draw-io connects AI agents to a live draw.io canvas through an MCP server, allowing diagrams to be created, edited, inspected, and exported. It provides tools for session management, XML-based diagram operations, page management, shape-library lookup, screenshots, saved diagrams, and version restoration. Reach for it when an agent needs to turn architecture descriptions, source files, or structured requirements into editable draw.io diagrams. The server runs through npx and supports clients including Claude Desktop, Claude Code, Cursor, VS Code, and Codex.

Use cases

  • Create cloud architecture diagrams from infrastructure descriptions
  • Edit existing draw.io files by cell ID through an AI agent
  • Inspect selected shapes and apply targeted diagram changes
  • Export diagrams as draw.io, PNG, SVG, or editable SVG files

Key features

  • Live browser preview backed by an embedded draw.io server
  • Multi-page diagram creation and management
  • Atomic XML cell editing with browser-change detection
  • Cloud, networking, business, and engineering shape libraries
  • Diagram screenshots, exports, and history restoration

Tools16

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

Verified live~4.5k 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.

63/63 checks healthy over the last 45d

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 · 2Makes changes · 5Read-only tools · 10
Tool definitions changed on 2026-11-30. Review them if you approved this server earlier.
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age348 days
Maintainers1

Observed 2026-11-30 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 stars37kStargazers 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 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 editing workflow to MCP-compatible AI clients. An agent can open a live browser preview, create a diagram from XML, load an existing .drawio file, modify individual cells, manage pages, and export the result. User edits made in the browser are visible to the agent through diagram and selection queries.

The workflow supports architecture diagrams, flowcharts, sequence diagrams, ER diagrams, BPMN processes, infrastructure layouts, and other draw.io-compatible content. Shape libraries cover cloud, networking, business, general diagramming, UI, enterprise, engineering, and icon categories, including AWS, Azure, GCP, Kubernetes, Cisco, and BPMN libraries.

How it works

start_session starts an embedded server, opens draw.io in a browser, and returns the drawing rules the agent should follow. The browser displays changes as they happen. Diagram content is represented as draw.io XML: the server accepts page cells, a bare graph model, or a complete multi-page file. Cell IDs must be unique within each page, and diagram geometry is expected within an 800 by 600 coordinate area.

For existing diagrams, load_diagram accepts either a filesystem path or XML content. After loading from a path or compressed XML, the agent should retrieve the diagram before editing so it knows the cell IDs. edit_diagram applies add, update, and delete operations atomically. If the user changed the canvas since the agent last saw it, the edit is rejected without applying partial changes and includes current page XML for rebuilding the operation.

Setup and configuration

A standard MCP configuration can launch the server with npx:

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

Claude Code can add it for all projects with:

Terminal
claude mcp add --scope user drawio -- npx @next-ai-drawio/mcp-server@latest

The project also provides a Claude Code community-marketplace plugin. VS Code and Cursor offer one-click installation links. Once configured, ask the connected client to create or modify a diagram; the result appears in the browser preview.

Tools and capabilities

  • Start or resume sessions and open the live draw.io preview with start_session.
  • Create a replacement document with create_new_diagram, or add a page without changing existing pages with add_page.
  • Load diagrams from paths or XML using load_diagram, then inspect them with get_diagram.
  • Apply ID-based cell additions, replacements, and deletions with edit_diagram.
  • List, rename, and delete pages with list_pages, rename_page, and delete_page.
  • Inspect the user’s selected cells with get_selection and render a page with screenshot_diagram.
  • Export .drawio, .png, .svg, or editable .drawio.svg files with export_diagram.
  • Restore earlier canvas states with restore_version.
  • Retrieve drawing rules with get_drawing_guide and exact shape-library syntax with get_shape_library.

Before using cloud or other icon shapes, the agent should query the relevant shape library rather than guessing style names. For complex diagrams, a final screenshot can reveal overlaps or crossing edges before export.

Limitations and notes

create_new_diagram replaces the entire document, including all pages and unsaved browser changes, although the previous state remains in History. Use add_page when another tab should be added without disturbing existing content. delete_page will not remove the final remaining page.

The preview must be open for selection queries and screenshots. Export behavior depends on the file type: a .drawio export can include all pages, while image exports without a page selector use the active browser page. Plain .png and plain .svg files cannot be loaded; .drawio, XML content, and editable .drawio.svg files can be used with the loading workflow.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

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 a live draw.io canvas in a browser. Its main tools start sessions, create or load diagrams, edit cells, manage pages, inspect selections, render screenshots, export files, query shape libraries, and restore earlier versions.

Install it by adding an npx MCP entry that runs `@next-ai-drawio/mcp-server@latest`. Claude Code users can run `claude mcp add --scope user drawio -- npx @next-ai-drawio/mcp-server@latest`; VS Code and Cursor also provide one-click installation links.

Yes, next-ai-draw-io works with Cursor through its MCP configuration. Add the server with npx or use Cursor’s one-click installation link, then ask the agent to create or edit a diagram shown in the browser preview.

Yes, it can load an existing `.drawio` file from a path or XML, inspect its pages and cells, and apply ID-based additions, updates, or deletions. After loading from a path or compressed XML, call `get_diagram` before editing so the agent knows the current cell IDs.

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>