drawio-mcp-server

lgazo/drawio-mcp-server

3.9

The Draw.io MCP server is a Model Context Protocol implementation that integrates Draw.io's diagramming capabilities with AI agentic systems.

Tools

Functions exposed to the LLM to take actions

get-selected-cell

This tool allows you to retrieve selected cell (whether vertex or edge) on the current page of a Draw.io diagram. The response is a JSON containing attributes of the cell.

add-rectangle

This tool allows you to add new Rectangle vertex cell (object) on the current page of a Draw.io diagram. It accepts multiple optional input parameter.

add-edge

This tool creates an edge, sometimes called also a relation, between two vertexes (cells).

delete-cell-by-id

Deletes a cell, 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 new vertex cell (object) on the current page of a Draw.io diagram by its shape name. It accepts multiple optional input parameter.

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources