Back to MCP marketplace
development-it
In Review
lgazo/drawio-mcp-server
Added by github
About
Draw.io Model Context Protocol (MCP) Server
Tools
- get-selected-cellThis 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.
- add-rectangleThis tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.
- add-edgeThis 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.
- delete-cell-by-idDeletes a cell from the target page, whether it is a vertex or edge.
- get-shape-categoriesRetrieves available shape categories from the diagram's library. Library is split into multiple categories.
- get-shapes-in-categoryRetrieve 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.
- get-shape-by-nameRetrieve 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.
- add-cell-of-shapeThis tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name.
- set-cell-shapeUpdates the visual style of an existing vertex cell to match a library shape by name.
- set-cell-dataSets or updates a custom attribute on an existing cell.
- edit-cellUpdate properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.
- edit-edgeUpdate properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge geometry control.
- list-paged-modelRetrieves 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.
- list-layersLists all available layers on the target page with their IDs and names.
- set-active-layerSets 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.
- move-cell-to-layerMoves a cell from its current layer to a target layer.
- set-cell-parentSets 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.
- get-active-layerGets 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.
- create-layerCreates a new layer on the target page.
- export-diagramExport 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.
Playground
Tested live
Checking your session…
Community reviews
Reports from signed-in users. These reviews describe individual experiences and are not security audits.
No published reviews yet. Share a specific setup result to help the next user evaluate this server.
Used this MCP server?
Sign in before writing so your review is never lost.