lgazo/drawio-mcp-server
Draw.io Model Context Protocol (MCP) Server
7922a095105bdrawio-mcp-server2.1.0 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 3 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 5 source files could be read only in part
- 26 of 30 tools, prompts and resources could not be followed through the code
Top risks in plain words
- HIGH1 production dependency has known vulnerabilities (worst: high).
- MEDIUMTool
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.reads or writes any file path by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.can read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file., switch them off. - Update its vulnerable packages
Use
zod4.6.6 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 30 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.No tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (30: 30 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.tool Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.FilesReads/writes files
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.
Appends a new blank page to the current Draw.io document without changing the visible page when the runtime supports background page insertion.tool Appends a new blank page to the current Draw.io document without changing the visible page when the runtime supports background page insertion.
Appends a new blank page to the current Draw.io document without changing the visible page when the runtime supports background page insertion.
Creates a copy of an existing page in the target/current Draw.io document, appends the copy to the end of the page list, and returns the copied page metadata. When possible, the previously visible page is restored after the copy is created.tool Creates a copy of an existing page in the target/current Draw.io document, appends the copy to the end of the page list, and returns the copied page metadata. W
Creates a copy of an existing page in the target/current Draw.io document, appends the copy to the end of the page list, and returns the copied page metadata. When possible, the previously visible page is restored after the copy is created.
Creates a new layer on the target page.tool Creates a new layer on the target page.
Creates a new layer on the target page.
Deletes a cell from the target page, whether it is a vertex or edge.tool Deletes a cell from the target page, whether it is a vertex or edge.
Deletes a cell from the target page, whether it is a vertex or edge.
Gets the currently active layer information for the target page. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.tool Gets the currently active layer information for the target page. If the target page is not currently visible, Draw.io may switch the visible page first because
Gets the currently active layer information for the target page. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.
Gets the currently visible page metadata, including index, id, name, and whether it is active.tool Gets the currently visible page metadata, including index, id, name, and whether it is active.
Gets the currently visible page metadata, including index, id, name, and whether it is active.
Import a diagram from XML, SVG with embedded XML, or PNG with embedded XML into the current Draw.io instance. `target_page` is required for `replace` and `add`, and optional for `new-page`.tool Import a diagram from XML, SVG with embedded XML, or PNG with embedded XML into the current Draw.io instance. `target_page` is required for `replace` and `add`,
Import a diagram from XML, SVG with embedded XML, or PNG with embedded XML into the current Draw.io instance. `target_page` is required for `replace` and `add`, and optional for `new-page`.
Insert a Mermaid diagram into the target Draw.io page. Conversion runs inside the Draw.io editor via its bundled Mermaid pipeline (EditorUi.parseMermaidDiagram). mode='native' converts supported Mermaid types into native mxGraph cells; unsupported types fall back to an embedded image cell. mode='embed' always emits a single image cell that preserves the Mermaid source for re-editing inside Draw.io. `target_page` is required for `replace` and `add`, and optional for `new-page`.tool Insert a Mermaid diagram into the target Draw.io page. Conversion runs inside the Draw.io editor via its bundled Mermaid pipeline (EditorUi.parseMermaidDiagram)
Insert a Mermaid diagram into the target Draw.io page. Conversion runs inside the Draw.io editor via its bundled Mermaid pipeline (EditorUi.parseMermaidDiagram). mode='native' converts supported Mermaid types into native mxGraph cells; unsupported types fall back to an embedded image cell. mode='embed' always emits a single image cell that preserves the Mermaid source for re-editing inside Draw.io. `target_page` is required for `replace` and `add`, and optional for `new-page`.
Lists all available layers on the target page with their IDs and names.tool Lists all available layers on the target page with their IDs and names.
Lists all available layers on the target page with their IDs and names.
Lists all connected Draw.io document instances with their stable instance IDs and basic metadata.tool Lists all connected Draw.io document instances with their stable instance IDs and basic metadata.
Lists all connected Draw.io document instances with their stable instance IDs and basic metadata.
Lists all pages in the current Draw.io document with their index, id, name, and current-page flag.tool Lists all pages in the current Draw.io document with their index, id, name, and current-page flag.
Lists all pages in the current Draw.io document with their index, id, name, and current-page flag.
Moves a cell from its current layer to a target layer.tool Moves a cell from its current layer to a target layer.
Moves a cell from its current layer to a target layer.
Renames the current Draw.io document through its active storage provider while preserving the existing file extension when one is present.tool Renames the current Draw.io document through its active storage provider while preserving the existing file extension when one is present.
Renames the current Draw.io document through its active storage provider while preserving the existing file extension when one is present.
Renames the selected page without changing the visible page.tool Renames the selected page without changing the visible page.
Renames the selected page without changing the visible page.
Retrieve a specific shape by its name from all available shapes in the diagram's library. It returns the shape and also the category it belongs.tool Retrieve a specific shape by its name from all available shapes in the diagram's library. It returns the shape and also the category it belongs.
Retrieve a specific shape by its name from all available shapes in the diagram's library. It returns the shape and also the category it belongs.
Retrieve all shapes in the provided category from the diagram's library. A shape primarily contains `style` based on which you can create new vertex cells.tool Retrieve all shapes in the provided category from the diagram's library. A shape primarily contains `style` based on which you can create new vertex cells.
Retrieve all shapes in the provided category from the diagram's library. A shape primarily contains `style` based on which you can create new vertex cells.
Retrieves a paginated view of all cells (vertices and edges) on the target page. This tool provides access to the complete model data with essential fields only, sanitized to remove circular dependencies and excessive data.tool Retrieves a paginated view of all cells (vertices and edges) on the target page. This tool provides access to the complete model data with essential fields only
Retrieves a paginated view of all cells (vertices and edges) on the target page. This tool provides access to the complete model data with essential fields only, sanitized to remove circular dependencies and excessive data.
Retrieves available shape categories from the diagram's library. Library is split into multiple categories.tool Retrieves available shape categories from the diagram's library. Library is split into multiple categories.
Retrieves available shape categories from the diagram's library. Library is split into multiple categories.
Sets or updates a custom attribute on an existing cell.tool Sets or updates a custom attribute on an existing cell.
Sets or updates a custom attribute on an existing cell.
Sets the active layer for creating new elements. All subsequent element creation will happen in this layer. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.tool Sets the active layer for creating new elements. All subsequent element creation will happen in this layer. If the target page is not currently visible, Draw.io
Sets the active layer for creating new elements. All subsequent element creation will happen in this layer. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.
Sets the parent of a cell, making it a child of the specified parent cell. This allows creating hierarchical relationships where moving the parent also moves its children.tool Sets the parent of a cell, making it a child of the specified parent cell. This allows creating hierarchical relationships where moving the parent also moves it
Sets the parent of a cell, making it a child of the specified parent cell. This allows creating hierarchical relationships where moving the parent also moves its children.
This tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.tool This tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.
This tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.
This tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name.tool This tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name.
This tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name.
This tool creates an edge, sometimes called also a relation, between two vertexes (cells). When source and target are the same shape (self-connector), a loop edge style is automatically applied if no custom style is provided.tool This tool creates an edge, sometimes called also a relation, between two vertexes (cells). When source and target are the same shape (self-connector), a loop ed
This tool creates an edge, sometimes called also a relation, between two vertexes (cells). When source and target are the same shape (self-connector), a loop edge style is automatically applied if no custom style is provided.
This tool retrieves the selected cell on the target page of the current Draw.io document. If the target page is not currently visible, Draw.io may switch the visible page first because selection is UI-bound.tool This tool retrieves the selected cell on the target page of the current Draw.io document. If the target page is not currently visible, Draw.io may switch the vi
This tool retrieves the selected cell on the target page of the current Draw.io document. If the target page is not currently visible, Draw.io may switch the visible page first because selection is UI-bound.
Triggers Draw.io's existing File > Save action for the current document. The active storage provider may display an authentication, conflict, or Save As prompt that requires user interaction.tool Triggers Draw.io's existing File > Save action for the current document. The active storage provider may display an authentication, conflict, or Save As prompt
Triggers Draw.io's existing File > Save action for the current document. The active storage provider may display an authentication, conflict, or Save As prompt that requires user interaction.
Update properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge geometry control.tool Update properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge
Update properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge geometry control.
Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.tool Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.
Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.
Updates the visual style of an existing vertex cell to match a library shape by name.tool Updates the visual style of an existing vertex cell to match a library shape by name.
Updates the visual style of an existing vertex cell to match a library shape by name.
Text the model reads (30)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
This tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name. tool
This tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name.
This tool creates an edge, sometimes called also a relation, between two vertexes (cells). When source and target are the same shape (self-connector), a loop edge style is automatically applied if no custom style is provided. tool
This tool creates an edge, sometimes called also a relation, between two vertexes (cells). When source and target are the same shape (self-connector), a loop edge style is automatically applied if no custom style is provided.
This tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document. tool
This tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.
Creates a copy of an existing page in the target/current Draw.io document, appends the copy to the end of the page list, and returns the copied page metadata. When possible, the previously visible page is restored after the copy is created. tool
Creates a copy of an existing page in the target/current Draw.io document, appends the copy to the end of the page list, and returns the copied page metadata. When possible, the previously visible page is restored after the copy is created.
Creates a new layer on the target page. tool
Creates a new layer on the target page.
Appends a new blank page to the current Draw.io document without changing the visible page when the runtime supports background page insertion. tool
Appends a new blank page to the current Draw.io document without changing the visible page when the runtime supports background page insertion.
Deletes a cell from the target page, whether it is a vertex or edge. tool
Deletes a cell from the target page, whether it is a vertex or edge.
Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged. tool
Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.
Update properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge geometry control. tool
Update properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge geometry control.
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file. tool
Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.
Gets the currently active layer information for the target page. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound. tool
Gets the currently active layer information for the target page. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.
Gets the currently visible page metadata, including index, id, name, and whether it is active. tool
Gets the currently visible page metadata, including index, id, name, and whether it is active.
This tool retrieves the selected cell on the target page of the current Draw.io document. If the target page is not currently visible, Draw.io may switch the visible page first because selection is UI-bound. tool
This tool retrieves the selected cell on the target page of the current Draw.io document. If the target page is not currently visible, Draw.io may switch the visible page first because selection is UI-bound.
Retrieve a specific shape by its name from all available shapes in the diagram's library. It returns the shape and also the category it belongs. tool
Retrieve a specific shape by its name from all available shapes in the diagram's library. It returns the shape and also the category it belongs.
Retrieves available shape categories from the diagram's library. Library is split into multiple categories. tool
Retrieves available shape categories from the diagram's library. Library is split into multiple categories.
Retrieve all shapes in the provided category from the diagram's library. A shape primarily contains `style` based on which you can create new vertex cells. tool
Retrieve all shapes in the provided category from the diagram's library. A shape primarily contains `style` based on which you can create new vertex cells.
Import a diagram from XML, SVG with embedded XML, or PNG with embedded XML into the current Draw.io instance. `target_page` is required for `replace` and `add`, and optional for `new-page`. tool
Import a diagram from XML, SVG with embedded XML, or PNG with embedded XML into the current Draw.io instance. `target_page` is required for `replace` and `add`, and optional for `new-page`.
Insert a Mermaid diagram into the target Draw.io page. Conversion runs inside the Draw.io editor via its bundled Mermaid pipeline (EditorUi.parseMermaidDiagram). mode='native' converts supported Mermaid types into native mxGraph cells; unsupported types fall back to an embedded image cell. mode='embed' always emits a single image cell that preserves the Mermaid source for re-editing inside Draw.io. `target_page` is required for `replace` and `add`, and optional for `new-page`. tool
Insert a Mermaid diagram into the target Draw.io page. Conversion runs inside the Draw.io editor via its bundled Mermaid pipeline (EditorUi.parseMermaidDiagram). mode='native' converts supported Mermaid types into native mxGraph cells; unsupported types fall back to an embedded image cell. mode='embed' always emits a single image cell that preserves the Mermaid source for re-editing inside Draw.io. `target_page` is required for `replace` and `add`, and optional for `new-page`.
Lists all connected Draw.io document instances with their stable instance IDs and basic metadata. tool
Lists all connected Draw.io document instances with their stable instance IDs and basic metadata.
Lists all available layers on the target page with their IDs and names. tool
Lists all available layers on the target page with their IDs and names.
Retrieves a paginated view of all cells (vertices and edges) on the target page. This tool provides access to the complete model data with essential fields only, sanitized to remove circular dependencies and excessive data. tool
Retrieves a paginated view of all cells (vertices and edges) on the target page. This tool provides access to the complete model data with essential fields only, sanitized to remove circular dependencies and excessive data.
Lists all pages in the current Draw.io document with their index, id, name, and current-page flag. tool
Lists all pages in the current Draw.io document with their index, id, name, and current-page flag.
Moves a cell from its current layer to a target layer. tool
Moves a cell from its current layer to a target layer.
Renames the selected page without changing the visible page. tool
Renames the selected page without changing the visible page.
Triggers Draw.io's existing File > Save action for the current document. The active storage provider may display an authentication, conflict, or Save As prompt that requires user interaction. tool
Triggers Draw.io's existing File > Save action for the current document. The active storage provider may display an authentication, conflict, or Save As prompt that requires user interaction.
Sets the active layer for creating new elements. All subsequent element creation will happen in this layer. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound. tool
Sets the active layer for creating new elements. All subsequent element creation will happen in this layer. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.
Sets or updates a custom attribute on an existing cell. tool
Sets or updates a custom attribute on an existing cell.
Sets the parent of a cell, making it a child of the specified parent cell. This allows creating hierarchical relationships where moving the parent also moves its children. tool
Sets the parent of a cell, making it a child of the specified parent cell. This allows creating hierarchical relationships where moving the parent also moves its children.
Updates the visual style of an existing vertex cell to match a library shape by name. tool
Updates the visual style of an existing vertex cell to match a library shape by name.
Renames the current Draw.io document through its active storage provider while preserving the existing file extension when one is present. tool
Renames the current Draw.io document through its active storage provider while preserving the existing file extension when one is present.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 4 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 4 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path MEDIUM2 findings in Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.
- Requests any addressNo tool sends a request to an address the caller supplies — 4 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 4 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 30 capabilities; 4 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 30 capabilities touch files; 3 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 30 capabilities; 4 more call code the scanner could not follow, where it may happen
Where the code is: 30 handlers in 30 files at commit 7922a095105b
packages/drawio-mcp-server/src/tools/add-cell-of-shape.tsThis tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name.packages/drawio-mcp-server/src/tools/add-edge.tsThis tool creates an edge, sometimes called also a relation, between two vertexes (cells). When source and target are the same shape (self-connector), a loop edge style is automatically applied if no custom style is provided.packages/drawio-mcp-server/src/tools/add-rectangle.tsThis tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.packages/drawio-mcp-server/src/tools/copy-page.tsCreates a copy of an existing page in the target/current Draw.io document, appends the copy to the end of the page list, and returns the copied page metadata. When possible, the previously visible page is restored after the copy is created.packages/drawio-mcp-server/src/tools/create-layer.tsCreates a new layer on the target page.packages/drawio-mcp-server/src/tools/create-page.tsAppends a new blank page to the current Draw.io document without changing the visible page when the runtime supports background page insertion.packages/drawio-mcp-server/src/tools/delete-cell-by-id.tsDeletes a cell from the target page, whether it is a vertex or edge.packages/drawio-mcp-server/src/tools/edit-cell.tsUpdate properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.packages/drawio-mcp-server/src/tools/edit-edge.tsUpdate properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge geometry control.packages/drawio-mcp-server/src/tools/export-diagram.tsExport the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.packages/drawio-mcp-server/src/tools/get-active-layer.tsGets the currently active layer information for the target page. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.packages/drawio-mcp-server/src/tools/get-current-page.tsGets the currently visible page metadata, including index, id, name, and whether it is active.packages/drawio-mcp-server/src/tools/get-selected-cell.tsThis tool retrieves the selected cell on the target page of the current Draw.io document. If the target page is not currently visible, Draw.io may switch the visible page first because selection is UI-bound.packages/drawio-mcp-server/src/tools/get-shape-by-name.tsRetrieve a specific shape by its name from all available shapes in the diagram's library. It returns the shape and also the category it belongs.packages/drawio-mcp-server/src/tools/get-shape-categories.tsRetrieves available shape categories from the diagram's library. Library is split into multiple categories.packages/drawio-mcp-server/src/tools/get-shapes-in-category.tsRetrieve all shapes in the provided category from the diagram's library. A shape primarily contains `style` based on which you can create new vertex cells.packages/drawio-mcp-server/src/tools/import-diagram.tsImport a diagram from XML, SVG with embedded XML, or PNG with embedded XML into the current Draw.io instance. `target_page` is required for `replace` and `add`, and optional for `new-page`.packages/drawio-mcp-server/src/tools/import-mermaid.tsInsert a Mermaid diagram into the target Draw.io page. Conversion runs inside the Draw.io editor via its bundled Mermaid pipeline (EditorUi.parseMermaidDiagram). mode='native' converts supported Mermaid types into native mxGraph cells; unsupported types fall back to an embedded image cell. mode='embed' always emits a single image cell that preserves the Mermaid source for re-editing inside Draw.io. `target_page` is required for `replace` and `add`, and optional for `new-page`.packages/drawio-mcp-server/src/tools/list-documents.tsLists all connected Draw.io document instances with their stable instance IDs and basic metadata.packages/drawio-mcp-server/src/tools/list-layers.tsLists all available layers on the target page with their IDs and names.packages/drawio-mcp-server/src/tools/list-paged-model.tsRetrieves a paginated view of all cells (vertices and edges) on the target page. This tool provides access to the complete model data with essential fields only, sanitized to remove circular dependencies and excessive data.packages/drawio-mcp-server/src/tools/list-pages.tsLists all pages in the current Draw.io document with their index, id, name, and current-page flag.packages/drawio-mcp-server/src/tools/move-cell-to-layer.tsMoves a cell from its current layer to a target layer.packages/drawio-mcp-server/src/tools/rename-page.tsRenames the selected page without changing the visible page.packages/drawio-mcp-server/src/tools/save-document.tsTriggers Draw.io's existing File > Save action for the current document. The active storage provider may display an authentication, conflict, or Save As prompt that requires user interaction.packages/drawio-mcp-server/src/tools/set-active-layer.tsSets the active layer for creating new elements. All subsequent element creation will happen in this layer. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.packages/drawio-mcp-server/src/tools/set-cell-data.tsSets or updates a custom attribute on an existing cell.packages/drawio-mcp-server/src/tools/set-cell-parent.tsSets the parent of a cell, making it a child of the specified parent cell. This allows creating hierarchical relationships where moving the parent also moves its children.packages/drawio-mcp-server/src/tools/set-cell-shape.tsUpdates the visual style of an existing vertex cell to match a library shape by name.packages/drawio-mcp-server/src/tools/set-document-title.tsRenames the current Draw.io document through its active storage provider while preserving the existing file extension when one is present.
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests7 manifests: package.json, packages/drawio-mcp-claude-plugin/package.json, packages/drawio-mcp-compat/package.json, packages/drawio-mcp-dev-proxy/package.json, packages/drawio-mcp-extension/package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 8 not resolved: package.json: dependency ranges declared here were not resolved against a lockfile and were not checked; packages/drawio-mcp-claude-plugin/package.json: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies HIGH1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/ext-apps ^2.0.4, @modelcontextprotocol/sdk 1.32.1
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 30 capabilities; 4 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
zodnpm 4.1.8 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/ext-apps ^2.0.4, @modelcontextprotocol/sdk 1.32.1 |
| Servers in the code | 1 (drawio-mcp-server) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-01 |
| Signed releases | not checked yet |
Install it
For the server's own npm package drawio-mcp-server. Pin a version ([email protected]) so an update cannot change the tools without you noticing.
Claude Desktop claude_desktop_config.json
{
"mcpServers": {
"drawio-mcp-server": {
"command": "npx",
"args": [
"-y",
"drawio-mcp-server"
]
}
}
}Cursor ~/.cursor/mcp.json
{
"mcpServers": {
"drawio-mcp-server": {
"command": "npx",
"args": [
"-y",
"drawio-mcp-server"
]
}
}
}VS Code .vscode/mcp.json
{
"servers": {
"drawio-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"drawio-mcp-server"
]
}
}
}Claude Code terminal
claude mcp add drawio-mcp-server -- npx -y drawio-mcp-serverWhere it is published
| npm package | drawio-mcp-server |
|---|---|
| Downloads | 5 997 a month on npm |
| Listed in | 7 catalogs (awesome_habitoai, awesome_tensorblock, github_search, glama, mcp_toplist, mcpservers_org, npm) |
| License | MIT |
| Created | 2025-04-21 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.