MCP Catalogs
Homedrawio-mcp-server screenshot

drawio-mcp-server

by simonkurtz-MSFT·71·Score 48

Draw.io MCP server enabling programmatic diagram generation with 700+ Azure icons and batch operations.

developer-toolsproductivityai-llm
14
Forks
3
Open issues
this month
Last commit
2d ago
Indexed

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:

you:Automatically generate architecture diagrams from AI descriptions
you:Create technical documentation with embedded diagrams
you:Rapid prototyping of system architectures
you:Can I export to PNG/SVG/PDF format?
you:How do I find specific shapes?

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 README
  • search-shapes

    Fuzzy search for shapes including 700+ Azure icons.

  • get-shape-categories

    List all shape categories (General, Flowchart, Azure categories).

  • add-cells

    Add vertices and/or edges to the diagram.

  • edit-cells

    Update vertex cell properties (position, size, text, style).

  • export-diagram

    Export the diagram as Draw.io XML.

  • import-diagram

    Import a Draw.io XML string, replacing the current diagram.

  • list-layers

    List all layers with IDs and names.

  • create-layer

    Create a new layer.

  • create-page

    Create a new page (tab) in the diagram.

  • list-pages

    List all pages with IDs and names.

  • get-diagram-stats

    Get statistics about cell counts, bounds, and layer distribution.

  • set-cell-shape

    Apply library shape styles to existing cells.

Comparable tools

drawio-mcp-server-lgazodiagrams.netmermaid-cliplantuml-mcp

Installation

Installation

From Source

deno run --allow-net --allow-read --allow-env src/index.ts

Claude 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:latest

FAQ

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.