
drawio-mcp-server
by simonkurtz-MSFT·★ 71·Score 48
Draw.io MCP server enabling programmatic diagram generation with 700+ Azure icons and batch operations.
Overview
This MCP server allows AI models to programmatically generate diagrams using Draw.io without needing a browser or Draw.io instance. It provides access to over 700 Azure architecture icons organized into categories, along with basic shapes and flowchart elements. The server supports batch operations for better performance, layer management, and style presets. It can generate standard Draw.io XML format that's compatible with both desktop and web versions of Draw.io.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when you need to generate diagrams programmatically without human intervention, especially when working with Azure architecture or technical documentation.
When NOT to choose this
Don't choose this if you need real-time collaborative editing or export formats beyond XML, as it focuses on programmatic generation rather than interactive design.
Tools this server exposes
12 tools extracted from the READMEsearch-shapesFuzzy search for shapes including 700+ Azure icons.
get-shape-categoriesList all shape categories (General, Flowchart, Azure categories).
add-cellsAdd vertices and/or edges to the diagram.
edit-cellsUpdate vertex cell properties (position, size, text, style).
export-diagramExport the diagram as Draw.io XML.
import-diagramImport a Draw.io XML string, replacing the current diagram.
list-layersList all layers with IDs and names.
create-layerCreate a new layer.
create-pageCreate a new page (tab) in the diagram.
list-pagesList all pages with IDs and names.
get-diagram-statsGet statistics about cell counts, bounds, and layer distribution.
set-cell-shapeApply library shape styles to existing cells.
Comparable tools
Installation
Installation
From Source
deno run --allow-net --allow-read --allow-env src/index.tsClaude Desktop
Edit claude_desktop_config.json:
{
"mcpServers": {
"drawio": {
"command": "deno",
"args": ["run", "--allow-net", "--allow-read", "--allow-env", "/path/to/drawio-mcp-server/src/index.ts"]
}
}
}Docker
docker pull simonkurtzmsft/drawio-mcp-server:latest
docker run -d --name drawio-mcp-server -p 8080:8080 simonkurtzmsft/drawio-mcp-server:latestFAQ
- Can I export to PNG/SVG/PDF format?
- The server generates Draw.io XML format. For PNG/SVG/PDF conversion, use jgraph's Draw.io `skill-cli` workflow.
- How do I find specific shapes?
- Use the `search-shapes` tool with fuzzy search to find shapes by partial name across the entire icon library.
Compare drawio-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.