# Next AI Draw.io (npm · @next-ai-drawio/mcp-server)

draw.io diagrams your AI agent draws on a live browser canvas that you can also edit by hand

- Trust score: 89/100 (high trust)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-06

## Components

- npm · `@next-ai-drawio/mcp-server`: 89/100 (this document), [markdown](https://verifymcp.io/servers/dayuanjiang-next-ai-drawio/next-ai-drawio-mcp-server.md), [page](https://verifymcp.io/servers/dayuanjiang-next-ai-drawio/next-ai-drawio-mcp-server)

## Channel facts

- Registry: `npm`
- Package: `@next-ai-drawio/mcp-server`
- Version: `0.4.11`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-06.

- **Supply Chain Security**: 98/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - 36 of 127 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to DayuanJiang/next-ai-draw-io).
  - Clear OSI-approved license (Apache-2.0).
  - Actively maintained (last published 5 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 79/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 3976 tokens (~248/item across 16 items; 16 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 70/100
  - Stability observed for 21 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 75/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - 0 of 1 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "delete_page" implies "delete" and declares no destructiveHint at all, which the MCP spec reads as destructive by default.
  - An AI judge read all 17 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the Next AI Draw.io MCP server?

Next AI Draw.io runs locally as an npm package, launched with npx -y @next-ai-drawio/mcp-server. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add dayuanjiang-next-ai-drawio -- npx -y @next-ai-drawio/mcp-server
```

### Cursor

```json
{
  "mcpServers": {
    "dayuanjiang-next-ai-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@next-ai-drawio/mcp-server"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "dayuanjiang-next-ai-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@next-ai-drawio/mcp-server"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add dayuanjiang-next-ai-drawio -- npx -y @next-ai-drawio/mcp-server
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "dayuanjiang-next-ai-drawio": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@next-ai-drawio/mcp-server"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add dayuanjiang-next-ai-drawio --command npx --arg -y --arg @next-ai-drawio/mcp-server
```

### Hermes

```yaml
mcp_servers:
  dayuanjiang-next-ai-drawio:
    command: "npx"
    args: ["-y", "@next-ai-drawio/mcp-server"]
```

### Netclaw

```json
{
  "McpServers": {
    "dayuanjiang-next-ai-drawio": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@next-ai-drawio/mcp-server"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add dayuanjiang-next-ai-drawio -t stdio -c npx -a -y @next-ai-drawio/mcp-server
```

### Other

```json
{
  "mcpServers": {
    "dayuanjiang-next-ai-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@next-ai-drawio/mcp-server"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-05 (score 89, +1)

No change was recorded against any check on this day. Stability & Change Management went from 63 to 67. That category is still filling its 30-day observation window: 19 days of observed history at the previous scan, 20 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-02 (score 88, +1)

No change was recorded against any check on this day. Stability & Change Management went from 53 to 57. That category is still filling its 30-day observation window: 16 days of observed history at the previous scan, 17 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-01 (score 87, +15)

- [security regression] Stability: 0.50 → unverified
- [security regression] Tool safety: pass → unverified
- [security improvement] Malware scan: unverified → pass
- [functional regression] Capabilities: pass → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Schema quality: 100 → unverified
- [functional] Package version: 0.4.7 → 0.4.11
- [functional] Package version: 0.4.7 → 0.4.9

### 2026-10-31 (score 72, −14)

- [security regression] Malware scan: pass → unverified
- [functional] Package version: 0.4.5 → 0.4.7

### 2026-10-29 (score 86, +1)

No change was recorded against any check on this day. Stability & Change Management went from 40 to 43. That category is still filling its 30-day observation window: 12 days of observed history at the previous scan, 13 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-27 (score 85, +1)

No change was recorded against any check on this day. Stability & Change Management went from 33 to 37. That category is still filling its 30-day observation window: 10 days of observed history at the previous scan, 11 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-25 (score 84, +1)

No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-23 (score 83, +1)

No change was recorded against any check on this day. Stability & Change Management went from 20 to 23. That category is still filling its 30-day observation window: 6 days of observed history at the previous scan, 7 at this one. The score rises as the window fills, whether or not the server changes.

## MCP tools (16)

### `get_drawing_guide` (~83 tokens)

Get drawing guide

Return the drawing guide: XML format, layout, edge routing, style and editing rules. start_session already returns it; call this only if the guide is no longer in your context. With topic, returns a short XML reference for tables, layers or groups.

Input parameters:

- `topic` (string): Return only the XML reference for this topic instead of the whole guide.

### `get_shape_library` (~185 tokens)

Get shape library

Get the style syntax and shape names of a draw.io icon library. Call this BEFORE drawing with cloud, network or other icon shapes, and use the exact names it returns; never guess them.

Libraries:
\- Cloud: aws4, azure2, gcp2, alibaba_cloud, openstack, salesforce
\- Networking: cisco19, network, kubernetes, vvd, rack
\- Business: bpmn, lean_mapping
\- General: flowchart, basic, arrows2, infographic, sitemap
\- UI/Mockups: android, material_design
\- Enterprise: citrix, sap, mscae, atlassian
\- Engineering: fluidpower, electrical, pid, cabinets, floorplan
\- Icons: webicons

Input parameters:

- `library` (string, required): Library name, e.g. aws4, kubernetes, flowchart

### `start_session` (~117 tokens)

Start session

Start a new diagram session, or continue a saved one with session_id, and open the browser for real-time preview. Starts an embedded server and opens a browser window with draw.io. The browser will show diagram updates as they happen. The result includes the drawing guide; follow it when drawing.

Input parameters:

- `session_id` (string): Id of a saved diagram (from list_saved_diagrams, or the Session ID of an earlier start_session) to continue it with the same preview URL and auto-save file. Omit to start a new diagram.

### `list_saved_diagrams` (~49 tokens)

List saved diagrams

List the diagrams saved by earlier sessions (auto-save files), newest first, with their pages. Continue one with start_session session_id=<id>; the file path also works with load_diagram.

### `create_new_diagram` (~482 tokens)

Create new diagram

Create a NEW diagram, REPLACING the whole document: every page and any unsaved user changes (the previous state stays in History). To add a tab use add_page; to change cells use edit_diagram.

Before using icon shapes (AWS, Azure, GCP, Kubernetes, Cisco...), call get_shape_library first. Follow the drawing guide returned by start_session (call get_drawing_guide if it is no longer in your context). Pass screenshot: true on the last call of a complex diagram to check the result.

Accepted xml:
1\) Only the mxCell elements of one page (recommended). The server adds <mxfile>, <mxGraphModel>, <root> and the root cells "0" and "1":
\<mxCell id="2" value="Shape" style="rounded=1;" x="40" y="40" w="120" h="60"/>
2\) A bare <mxGraphModel> with <root> (one page).
3\) A full <mxfile> with one or more <diagram> pages. Every page's <root> must start with <mxCell id="0"/><mxCell id="1" parent="0"/>.

Rules: cells are siblings (never nested), ids are unique per page and start from "2", parent only for shapes inside a container, no XML comments, and shapes stay within x 0 to 800 and y 0 to 600. A style used by several cells is defined once with <mxStyle name="..." value="..."/> before the cells and used by name (see the drawing guide); html=1 and whiteSpace=wrap are added automatically.

To clear the canvas to one blank page, send only the two root cells <mxCell id="0"/><mxCell id="1" parent="0"/>; the previous diagram stays in History.

Input parameters:

- `screenshot` (boolean): Also return a PNG of the result so you can check it for overlaps and edges crossing shapes. Needs the preview tab open and in front; adds 2 to 10 s. Default: the DRAWIO_AUTO_SCREENSHOT environment va…
- `xml` (string, required): REQUIRED: the mxCell elements of one page, a bare <mxGraphModel>, or a full <mxfile> with one or more <diagram> pages.

### `load_diagram` (~361 tokens)

Load diagram file

Load a .drawio diagram into the current session, REPLACING the entire diagram (all pages). To change an existing file, load it here, edit with edit_diagram, then export_diagram to the same path; never rewrite the file by hand. Provide ONE of two mutually exclusive sources: 'path' (the server reads the file from disk — you do NOT need to read the file yourself or pass its XML through create_new_diagram) or 'xml' (the raw file content you already have — from another tool, a repository read, or an API response — so no temporary file needs to be written first). Both accept plain XML and draw.io's compressed save format. .drawio.svg (Editable SVG, the format export_diagram writes) is accepted too; .png files (also draw.io's editable PNG) and plain .svg files cannot be loaded.

After loading from 'path' (or from compressed 'xml'), call get_diagram before edit_diagram — you haven't seen the file's cell IDs yet. Plain-XML 'xml' content you supplied yourself is already known and can be edited immediately.

Input parameters:

- `path` (string): Path to the .drawio or .drawio.svg file to load (e.g. /Users/me/diagram.drawio or ~/diagram.drawio). Relative paths resolve against the MCP server's working directory, which is often not your project…
- `xml` (string): Raw .drawio file content: a plain <mxfile>/<mxGraphModel>, or draw.io's compressed save format. Use when the content is already in hand (another tool's output, a repository read, an API response). Mu…

### `edit_diagram` (~607 tokens)

Edit diagram

Edit a specific page in the current diagram by ID-based operations (update/add/delete cells).

All-or-nothing: if any operation fails, nothing is applied and every failure is listed.

Freshness: the server remembers the last diagram state you have seen, and rejects this call only if the user edited the diagram in the browser since then. You do NOT need to call get_diagram before every edit: a rejected call changes nothing and includes the current XML of the page, so you can rebuild your operations and retry.

Call get_diagram first only when you don't know the current diagram content (cell IDs, structure) — e.g. the diagram wasn't created in this conversation, or you're unsure your memory of it is accurate.

Multi-page targeting:
\- page_id / page_name / page_index are optional; when all omitted, the FIRST page is targeted
\- Use list_pages to discover what pages exist

Operations:
\- add: Add a new cell. Provide cell_id (new unique id within the page) and new_xml. One cell per operation.
\- update: Replace an existing cell by its id. Provide cell_id and complete new_xml.
\- delete: Remove a cell by its id. Only cell_id is needed. Its children and connected edges are deleted too, so give only a container's id.

For add/update, new_xml is the complete mxCell (inside its <object> wrapper when it has custom data, see the drawing guide) in the compact form (a shape with x, y, w, h; an edge with source and target). No XML comments. Every " inside new_xml must be escaped as \" in the JSON.

Example - Add a rectangle on the default (first) page:
{"operations": [{"operation": "add", "cell_id": "rect-1", "new_xml": "<mxCell id=\"rect-1\" value=\"Hello\" style=\"rounded=1;\" x=\"100\" y=\"100\" w=\"120\" h=\"60\"/>"}]}

Example - Delete a cell on the default page:
{"operations": [{"operation": "delete", "cell_id": "rect-1"}]}

Input parameters:

- `operations` (array, required): Array of operations to apply
- `page_id` (string): Target a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set.
- `page_index` (integer): Target a page by its 0-based tab index. Used only when page_id and page_name are not set.
- `page_name` (string): Target a page by its display name (e.g. "CNN"). Used only when page_id is not set.
- `screenshot` (boolean): Also return a PNG of the result so you can check it for overlaps and edges crossing shapes. Needs the preview tab open and in front; adds 2 to 10 s. Default: the DRAWIO_AUTO_SCREENSHOT environment va…

### `get_diagram` (~209 tokens)

Get diagram

Get the current diagram XML (fetches latest from browser, including user's manual edits). Call this when you don't know the current diagram content (cell IDs, pages, structure) — e.g. before editing a diagram you didn't create in this conversation, or after edit_diagram was rejected because the user changed the diagram in the browser.

Returns the full <mxfile> by default. If a page selector is provided, returns just that page's <mxGraphModel> embedded in a one-page <mxfile> wrapper.

Input parameters:

- `page_id` (string): Target a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set.
- `page_index` (integer): Target a page by its 0-based tab index. Used only when page_id and page_name are not set.
- `page_name` (string): Target a page by its display name (e.g. "CNN"). Used only when page_id is not set.

### `get_selection` (~93 tokens)

Get selection

Return the cells the user has selected in the preview: their ids and labels, for edges the source and target ids, for shapes the position and size, and the page they are on. Call this when the user refers to what they selected ("this box", "these arrows", "the selected shapes"), then act on the ids with edit_diagram. Says when nothing is selected. Needs the preview tab to be open.

### `screenshot_diagram` (~179 tokens)

Screenshot diagram

Render the diagram in the preview and return it as a PNG image, so you can see your own result. Call this once after drawing or heavily editing a complex diagram, then fix overlaps and edges that cross shapes. Without a page selector it shows the page on screen; with one it renders that page without changing what the user sees. Needs the preview tab to be open.

Input parameters:

- `page_id` (string): Target a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set.
- `page_index` (integer): Target a page by its 0-based tab index. Used only when page_id and page_name are not set.
- `page_name` (string): Target a page by its display name (e.g. "CNN"). Used only when page_id is not set.

### `export_diagram` (~403 tokens)

Export diagram

Export the current diagram to a file. Supports .drawio (XML), .png, .svg, and .drawio.svg (an SVG with the diagram embedded, which draw.io and load_diagram can open again). The format is auto-detected from the file extension, or can be specified explicitly. Images get a 20 px margin; a PNG has a white background (or the page's own background color) unless transparent is true.

Multi-page behaviour:
\- .drawio with NO page selector: writes the full <mxfile> (all pages).
\- .drawio with a page selector: writes a single-page <mxfile> containing only that page.
\- .png / .svg with NO page selector: exports the currently active page in the browser.
\- .png with a page selector: renders that page without changing what the user sees.
\- .svg / .drawio.svg with a page selector: temporarily loads that page into the browser, captures it, then restores the full document (the user sees a brief flicker).

Input parameters:

- `format` (string): Export format. If omitted, detected from file extension. Defaults to drawio.
- `page_id` (string): Target a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set.
- `page_index` (integer): Target a page by its 0-based tab index. Used only when page_id and page_name are not set.
- `page_name` (string): Target a page by its display name (e.g. "CNN"). Used only when page_id is not set.
- `path` (string, required): Absolute file path to save to (e.g. /Users/me/diagram.drawio, ~/diagram.png). Relative paths resolve against the MCP server's working directory, which is often not your project.
- `transparent` (boolean): PNG only: a transparent background instead of white. Default false.

### `list_pages` (~66 tokens)

List pages

List every page (tab) in the current diagram. Returns each page's id, name, 0-based index, and cell count. Use this to discover what pages exist before targeting one with edit_diagram, get_diagram, export_diagram, rename_page, or delete_page.

### `add_page` (~255 tokens)

Add page

Append a new page (tab) to the current diagram WITHOUT touching existing pages or unsaved user changes. Use this when the user wants "another diagram alongside" — e.g. "add a CNN page" — instead of create_new_diagram which wipes everything.

Inputs:
\- name: optional display name for the tab (defaults to Page-N where N = existing-page-count + 1)
\- id: optional explicit page id; if omitted the server generates a short alphanumeric id
\- xml: optional starting content: the mxCell elements of the page (root cells "0" and "1" are added), or a bare <mxGraphModel>. If omitted, the page starts blank.

Returns the new page's id, name, and index so the caller can immediately target it with edit_diagram.

Input parameters:

- `id` (string): Optional explicit page id. If omitted the server generates one. Must be unique across pages.
- `name` (string): Optional display name for the new tab (e.g. "CNN"). Defaults to "Page-N".
- `xml` (string): Optional starting content: the mxCell elements of the page, or a bare <mxGraphModel>. If omitted the page starts blank.

### `rename_page` (~159 tokens)

Rename page

Rename an existing page (tab). At least one of page_id / page_name / page_index is required to identify which page to rename. The new_name becomes the visible tab label in the editor.

Input parameters:

- `new_name` (string, required): The new display name for the page tab.
- `page_id` (string): Target a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set.
- `page_index` (integer): Target a page by its 0-based tab index. Used only when page_id and page_name are not set.
- `page_name` (string): Target a page by its display name (e.g. "CNN"). Used only when page_id is not set.

### `delete_page` (~146 tokens)

Delete page

Delete a page (tab) from the current diagram. At least one of page_id / page_name / page_index is required. Refuses to delete the last remaining page — the editor needs at least one tab.

Input parameters:

- `page_id` (string): Target a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set.
- `page_index` (integer): Target a page by its 0-based tab index. Used only when page_id and page_name are not set.
- `page_name` (string): Target a page by its display name (e.g. "CNN"). Used only when page_id is not set.

### `restore_version` (~113 tokens)

Restore version

Undo: put an earlier version of the diagram from History back on the canvas (the current canvas is kept in History, so this can be undone too). Use it when the user asks to undo, revert or go back.

Input parameters:

- `steps_back` (integer): 1 = the newest version that differs from the canvas (default), 2 = the one before it, and so on. After an undo, steps_back=1 returns to the version you just left (redo) and steps_back=2 goes further…

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/dayuanjiang-next-ai-drawio/next-ai-drawio-mcp-server#diagnostics

## Score history

- 2026-11-06: 89
- 2026-11-05: 89
- 2026-11-04: 88
- 2026-11-03: 88
- 2026-11-02: 88
- 2026-11-01: 87
- 2026-10-31: 72
- 2026-10-30: 86
- 2026-10-29: 86
- 2026-10-28: 85
- 2026-10-27: 85
- 2026-10-26: 84
- 2026-10-25: 84
- 2026-10-24: 83
- 2026-10-23: 83
- 2026-10-22: 82
- 2026-10-21: 82
- 2026-10-20: 81
- 2026-10-19: 81
- 2026-10-18: 81
- 2026-10-17: 80
- 2026-10-16: 80

## Common questions

### What is the Next AI Draw.io MCP server?

Next AI Draw.io is an MCP server listed in the public MCP registry as io.github.DayuanJiang/next-ai-drawio. draw.io diagrams your AI agent draws on a live browser canvas that you can also edit by hand. This page covers its npm package (@next-ai-drawio/mcp-server).

### Is the Next AI Draw.io MCP server safe to use?

Next AI Draw.io scores 89 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 6 November 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Next AI Draw.io MCP server expose?

Next AI Draw.io exposes 16 tools: get_drawing_guide, get_shape_library, start_session, list_saved_diagrams, create_new_diagram, and 11 more. Their descriptions and schemas cost roughly 3,507 tokens of context every time the server is loaded.

### Is the Next AI Draw.io MCP server still maintained?

Next AI Draw.io is still listed as active in the MCP registry. We last reached this channel on 6 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the Next AI Draw.io MCP server under?

Next AI Draw.io declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

### What did VerifyMCP test on the Next AI Draw.io MCP server?

VerifyMCP ran 16 checks on Next AI Draw.io, covering Malware scan, Known CVEs, Install scripts, Dependency health and 12 more. Endpoint Security and Transport & Reachability do not apply to an npm package, so they were not tested. The score does not measure everything, and the scoring documentation lists what it leaves out.

## Links

- npm package: https://www.npmjs.com/package/@next-ai-drawio/mcp-server
- Socket report: https://socket.dev/npm/package/@next-ai-drawio/mcp-server
- Repository: https://github.com/DayuanJiang/next-ai-draw-io
- Website: https://github.com/DayuanJiang/next-ai-draw-io/tree/main/packages/mcp-server#readme
- Changelog RSS feed: https://verifymcp.io/servers/dayuanjiang-next-ai-drawio/next-ai-drawio-mcp-server.xml
- Changelog JSON feed: https://verifymcp.io/servers/dayuanjiang-next-ai-drawio/next-ai-drawio-mcp-server/changelog.json
- Trust report (JSON): https://verifymcp.io/servers/dayuanjiang-next-ai-drawio/next-ai-drawio-mcp-server.json
- HTML version of this page: https://verifymcp.io/servers/dayuanjiang-next-ai-drawio/next-ai-drawio-mcp-server
