Back to MCP marketplace
lgazo/drawio-mcp-server
development-it
In Review

lgazo/drawio-mcp-server

Added by github

About

Draw.io Model Context Protocol (MCP) Server

Tools

  • get-selected-cell
    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.
  • add-rectangle
    This tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.
  • add-edge
    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.
  • delete-cell-by-id
    Deletes a cell from the target page, whether it is a vertex or edge.
  • get-shape-categories
    Retrieves available shape categories from the diagram's library. Library is split into multiple categories.
  • get-shapes-in-category
    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.
  • get-shape-by-name
    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.
  • add-cell-of-shape
    This 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-shape
    Updates the visual style of an existing vertex cell to match a library shape by name.
  • set-cell-data
    Sets or updates a custom attribute on an existing cell.
  • edit-cell
    Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.
  • edit-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.
  • list-paged-model
    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.
  • list-layers
    Lists all available layers on the target page with their IDs and names.
  • set-active-layer
    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.
  • move-cell-to-layer
    Moves a cell from its current layer to a target layer.
  • set-cell-parent
    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.
  • get-active-layer
    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.
  • create-layer
    Creates a new layer on the target page.
  • export-diagram
    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.

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.