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
Available components
Last scanned (1 hour ago)
Scores higher than 93% of npm servers
Category Design and Media
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. How we score → Why this is hard to score →
Supply Chain Security98
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- No install/post-install scripts declared.Pass
- 36 of 127 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency97
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Cryptographically verified build provenance (signed, bound to DayuanJiang/next-ai-draw-io). View diagnostics → Pass
- Clear OSI-approved license (Apache-2.0).Pass
- Actively maintained (last published 5 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability79
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (excellent).Pass
- 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. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management70
- Stability observed for 21 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Tool Safety75
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- 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. See how to fix → Fail
- An AI judge read all 17 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Checks we ran (16)
- Malware scan
- Known CVEs
- Install scripts
- Dependency health
- Source repository
- Provenance
- License
- Maintenance
- Security disclosure
- Schema quality
- Stability
- Tool coverage
- Injection markers
- Destructive annotations
- Judged manipulation
- MCP protocol
Does not apply to this package (2)
- Endpoint SecurityScored on hosted endpoints only. A package has no live endpoint of its own for us to probe.
- Transport & ReachabilityScored on hosted endpoints only. A package has no live endpoint of its own for us to probe.
The score does not measure everything. What the score does not measure →
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 5 Nov 26 +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.
- 2 Nov 26 +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.
- 1 Nov 26 +15
- Stability: 0.50 → unverified ▼ security
- Tool safety: pass → unverified ▼ security
- Malware scan: unverified → pass ▲ security
- Capabilities: pass → unverified ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- Schema quality: 100 → unverified ▼ functional
- Package version: 0.4.7 → 0.4.11 functional
- Package version: 0.4.7 → 0.4.9 functional
- 31 Oct 26 −14
- Malware scan: pass → unverified ▼ security
- Package version: 0.4.5 → 0.4.7 functional
- 29 Oct 26 +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.
- 27 Oct 26 +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.
- 25 Oct 26 +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.
- 23 Oct 26 +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.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 6 Nov 2026 · Analysed npm/@next-ai-drawio/mcp-server@0.4.11
Provenance Verified
A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.
| Result | Verified |
|---|---|
| Ecosystem | npm |
| Reason | Verified |
| Discovered via | Registry attestation endpoint |
| Source repo | DayuanJiang/next-ai-draw-io |
| Certificate issuer | https://token.actions.githubusercontent.com |
| Certificate SAN | https://github.com/DayuanJiang/next-ai-draw-io/.github/workflows/publish-mcp.yml@refs/heads/main |
| Rekor log index | 3617435085 |
| Predicate type | SLSA build provenance https://slsa.dev/provenance/v1 |
| Subject digest | sha512:0f102a38b5eca56347bd67a9ca65aaff923e3f69a4b47cd32f2e405159f4a866033cf897351a47262a8a3b3ece6ae46d4267e378c70281adac7e568fe |
Background: How many MCP packages publish verified provenance →
Dependencies 127 packages
| Packages resolved | 127 |
|---|---|
| Stale | 36 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
add_page Add page ~255
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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. |
No output schema declared.
No examples provided.
create_new_diagram Create new diagram ~482
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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 | yes | REQUIRED: the mxCell elements of one page, a bare <mxGraphModel>, or a full <mxfile> with one or more <diagram> pages. |
No output schema declared.
No examples provided.
delete_page Delete page ~146
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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. |
No output schema declared.
No examples provided.
edit_diagram Edit diagram ~607
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"}]}
| Name | Type | Req | Description |
|---|---|---|---|
| operations | array | yes | 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… |
No output schema declared.
No examples provided.
export_diagram Export diagram ~403
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).
| Name | Type | Req | Description |
|---|---|---|---|
| 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 | yes | 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. |
No output schema declared.
No examples provided.
get_diagram Get diagram ~209
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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. |
No output schema declared.
No examples provided.
get_drawing_guide Get drawing guide ~83
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.
| Name | Type | Req | Description |
|---|---|---|---|
| topic | string | – | Return only the XML reference for this topic instead of the whole guide. |
No output schema declared.
No examples provided.
get_selection Get selection ~93
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.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
get_shape_library Get shape library ~185
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
| Name | Type | Req | Description |
|---|---|---|---|
| library | string | yes | Library name, e.g. aws4, kubernetes, flowchart |
No output schema declared.
No examples provided.
list_pages List pages ~66
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.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
list_saved_diagrams List saved diagrams ~49
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.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
load_diagram Load diagram file ~361
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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… |
No output schema declared.
No examples provided.
rename_page Rename page ~159
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.
| Name | Type | Req | Description |
|---|---|---|---|
| new_name | string | yes | 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. |
No output schema declared.
No examples provided.
restore_version Restore version ~113
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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… |
No output schema declared.
No examples provided.
screenshot_diagram Screenshot diagram ~179
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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. |
No output schema declared.
No examples provided.
start_session Start session ~117
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.
| Name | Type | Req | Description |
|---|---|---|---|
| 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. |
No output schema declared.
No examples provided.
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.
npm · @next-ai-drawio/mcp-server
claude mcp add dayuanjiang-next-ai-drawio -- npx -y @next-ai-drawio/mcp-server
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.