1. Conduid
  2. Cloud
  3. Drawio MCP Server
MCP server · Cloud

Drawio MCP Server

A Model Context Protocol (MCP) server for programmatic diagram generation using Draw.io (Diagrams.net). This server generates Draw.io XML directly — no browser extension or Draw.io instance required.

Unclaimed MIT last commit 6 months ago mcpdiagrammcp-servercloudaiazure
62Good

Scored 22 hours ago · breakdown

About Drawio MCP Server

Drawio MCP Server is an MCP server published by simonkurtz-MSFT in the Cloud category: a Model Context Protocol (MCP) server for programmatic diagram generation using Draw.io (Diagrams.net). This server generates Draw.io XML directly — no browser extension or Draw.io instance required. Conduid read 31 tools from its source: add-cells, add-cells-to-group, clear-diagram, create-groups, create-layer, create-page and 25 more. No package is published for it, so it installs from a source checkout.

The repository has 82 stars and 18 forks, is licensed MIT, and its last commit was on 15 May 2026. The latest release is 3.0.1 (21 Feb 2026): Reduced container image size — Now stripping debug symbols from the deno compilation. The release before it was 3.0.0 (20 Feb 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include diagram, cloud and azure.

Install

From source
git clone https://github.com/simonkurtz-MSFT/drawio-mcp-server

Tools (31)

add-cellsAdd vertices and/or edges. Supports `shape_name` for icon resolution, `temp_id` for within-batch references, and `dry_run` validation.
ParameterTypeDescription
cellsarrayCell type: 'vertex' for shapes, 'edge' for connections
dry_runbooleanIf true, validates the batch without persisting changes. Use to check for errors before committing.
add-cells-to-groupAssign cells to groups.
ParameterTypeDescription
assignments *arrayID of the cell to add to a group
clear-diagramClear all cells and reset the diagram.
create-groupsCreate group/container cells for VNets, subnets, resource groups, etc.
ParameterTypeDescription
groupsarrayX-axis position of the group
create-layerCreate a new layer.
ParameterTypeDescription
name *stringName for the new layer
create-pageCreate a new page (tab) in the diagram.
delete-cell-by-idRemove a cell (vertex or edge) by ID. Cascade-deletes connected edges for vertices.
ParameterTypeDescription
cell_id *stringThe ID of a cell to delete. The cell can be either vertex or edge. The ID is located in `id` attribute.
delete-pageDelete a page and all its contents. Cannot delete the last page.
edit-cellsUpdate vertex cell properties (position, size, text, style).
ParameterTypeDescription
cellsarrayID of the cell to update
edit-edgesUpdate edge properties (text, source, target, style).
ParameterTypeDescription
edgesarrayIdentifier (`id` attribute) of the edge cell to update. The ID must reference an edge.
export-diagramExport the diagram as Draw.io XML.
ParameterTypeDescription
backgroundstringBackground color for the diagram (e.g. "#FFFFFF" for white). Use "none" for a transparent background. Defaults to "#FFFFFF" (white).
compressbooleanWhen true, deflate-compress and base64-encode the diagram content inside the <diagram> element (Draw.io native format). Reduces output size by 60-80%. Defaults to false (plain XML).
finish-diagramCRITICAL: You MUST call this tool at the end of any transactional workflow to resolve placeholders to real SVG shapes and return production-ready XML. If you do not call this, the user will receive an incomplete diagram. Use this after a transactional workflow and before export-diagram. Compressed output is recommended for large diagrams.
ParameterTypeDescription
backgroundstringBackground color for the diagram (e.g. "#FFFFFF" for white). Use "none" for a transparent background. Defaults to "#FFFFFF" (white).
compressbooleanWhen true, deflate-compress and base64-encode the diagram content inside the <diagram> element (Draw.io native format). Defaults to true for efficient output.
get-active-pageGet the currently active page.
get-diagram-statsStatistics about cell counts, bounds, and layer distribution.
get-shape-categoriesList all shape categories (General, Flowchart, Azure categories).
get-shapes-in-categoryList all shapes in a category by `category_id`.
ParameterTypeDescription
category_id *stringIdentifier (ID / key) of the category from which all the shapes should be retrieved.
get-style-presetsGet built-in style presets (Azure colors, flowchart shapes, edge styles).
import-diagramImport a Draw.io XML string, replacing the current diagram.
ParameterTypeDescription
xml *stringThe Draw.io XML string to import
list-group-childrenList all cells contained in a group.
ParameterTypeDescription
group_id *stringID of the group/container cell
list-layersList all layers with IDs and names.
list-paged-modelPaginated view of all cells with filtering by type.
ParameterTypeDescription
filterobjectFilter by cell type: 'edge' for connection lines, 'vertex' for vertices/shapes
pagenumberZero-based page number for pagination. Page 0 returns the first batch of cells, page 1 returns the next batch, etc. Default is 0.
page_sizenumberMaximum number of cells to return in a single page. Controls response size and performance. Must be between 1 and 1000. Default is 50.
list-pagesList all pages with IDs and names.
move-cell-to-layerMove a cell to a different layer.
ParameterTypeDescription
cell_id *stringID of the cell to move
target_layer_id *stringID of the target layer where the cell will be moved
remove-cell-from-groupRemove a cell from its group, returning it to the active layer.
ParameterTypeDescription
cell_id *stringID of the cell to remove from its group
rename-pageRename an existing page.
search-shapesFuzzy search for shapes including 700+ Azure icons. Pass all queries in the `queries` array.
ParameterTypeDescription
limitnumberMaximum results to return per query (1-50)
queries *arrayArray of ALL search terms — main flow AND cross-cutting services. Gather every shape you need and pass them all here in a SINGLE call. Example: ['front door', 'container apps', 'app service', 'key vault', 'monitor', 'entra id', 'azure policy', 'container registry']
set-active-layerSet the active layer for new elements.
ParameterTypeDescription
layer_id *stringID of the layer to set as active
set-active-pageSwitch to a different page.
set-cell-shapeApply library shape styles to existing cells.
ParameterTypeDescription
cells *arrayCell ID to update
suggest-group-sizingSuggest group/container width and height based on vertically stacked children, spacing, and padding. Use before create-groups to avoid overflow.
ParameterTypeDescription
child_count *numberNumber of children that will be placed in the group
child_heightnumberTypical child height in pixels
child_widthnumberTypical child width in pixels
horizontal_paddingnumberLeft/right padding inside the group in pixels
min_heightnumberMinimum recommended group height
min_widthnumberMinimum recommended group width
vertical_paddingnumberTop/bottom padding inside the group in pixels
vertical_spacingnumberVertical spacing between stacked children in pixels
validate-group-containmentValidate that all child cells of a group are visually inside the group's boundary. Returns out-of-bounds warnings and guidance for fixing placement.
ParameterTypeDescription
group_id *stringID of the group/container cell to validate

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.5K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by deno.lock.
  • ✓No dynamic code executionScanned 14 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/index.ts:14
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
No file writes or deletes
Lockfile
deno.lock

Pattern matches on the source text of 14 files: places to read, not proof of what the code does at run time.

Releases

3.0.1v3.0.1 · 21 Feb 2026Changed Reduced container image size — Now stripping debug symbols from the deno compilation. These are not relevant for runtime. Results in a significant reduction from 192 -> 170 MB (-22 MB / -11.4%) on disk and 49.3 -> 45.5 MB (-3.8 MB…
3.0.0v3.0.0 · 20 Feb 2026Added Transactional (placeholder) workflow — multi-step diagram creation now uses lightweight placeholders (70–90% smaller) instead of full SVG data, dramatically reducing payload sizes and latency. New tools: finish-diagram, edit-edges…

README

The repository's README runs to about 2.5K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Drawio MCP Server

How do I install Drawio MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Drawio MCP Server safe to use with an AI agent?

Its trust score is 62 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 14 source files found that it serves MCP over stdio. Its dependencies are pinned by deno.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Drawio MCP Server still maintained?

The last commit was 6 months ago and 4 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Drawio MCP Server provide?

Conduid read 31 tools from the source: add-cells, add-cells-to-group, clear-diagram, create-groups, create-layer, create-page, delete-cell-by-id, delete-page and 23 more. 20 of them publish their parameters, listed under Tools above.

What license is Drawio MCP Server released under?

The repository declares the MIT license. That applies to the latest release, 3.0.1, as well.