Feedback

draw.io MCP Server (jgraph/drawio-mcp)

@draw.io Claim

Basic information

Transport
Streamable HTTP
Authentication
None
Version
1.4.1
Category
Author
draw.io
Quality
100 (A+)
Views
837

About draw.io MCP Server

Official draw.io MCP app: create diagrams from Mermaid or draw.io XML and view them inline in your AI chat.

draw.io is a remote MCP server in the Media & Design category listed in the AddMCP.net directory, published by draw.io. It exposes 3 tools, including create_diagram, search_shapes, get_drawio_reference. Supported transport: Streamable HTTP. License: Apache-2.0. Source code is hosted on github.com. Related topics: architecture, diagrams, flowcharts, mermaid, visualization.

Connection details

https://mcp.draw.io/mcp

Setup

claude mcp add drawio --transport http https://mcp.draw.io/mcp

draw.io MCP Server (jgraph/drawio-mcp) config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "drawio": {
            "type": "http",
            "url": "https://mcp.draw.io/mcp"
        }
    }
}

draw.io MCP Server (jgraph/drawio-mcp) tools

  • create_diagram — Creates and displays an interactive draw.io diagram from Mermaid.js syntax or draw.io XML — provide exactly one. **Choose the format first.** Use `xml` for diagrams of boxes and lines up to about 30 shapes: flowcharts, pipelines, decision trees, org charts, ER schemas, UML class, state and use case diagrams, mind maps, timelines, architecture, cloud and network diagrams, swimlanes, UI mockups, floor plans and anything with stencils. You place every shape yourself, laid out for the chat view (see the XML reference). Use `mermaid` for sequenceDiagram, gantt, gitGraph, pie, journey, quadrantChart, xychart-beta, sankey-beta, requirementDiagram, C4Context/C4Container/C4Component, block-beta, packet-beta, kanban, radar-beta, treemap-beta, treeView-beta, venn-beta, ishikawa-beta, zenuml, wardley-beta, eventmodeling, and for flowcharts, class and state diagrams of more than about 30 shapes (flowcharts with postLayout elk). Whenever the user asks for draw.io XML or no Mermaid, use XML for the rest of the conversation. **Call `get_drawio_reference` before your first diagram in a conversation**, once per format, with the format you chose: "mermaid" has the syntax for every type (a misspelled header renders blank), "xml" the styles, layout grid, edges, containers, layers and dark mode. Call `search_shapes` first for industry icons (AWS, Azure, GCP, Cisco, Kubernetes, P&ID, electrical) or logos. XML essentials: <mxGraphModel adaptiveColors="auto"><root><mxCell id="0"/><mxCell id="1" parent="0"/>…</root></mxGraphModel>. Every cell has a unique id. Vertices: vertex="1" with <mxGeometry x y width height as="geometry"/>. Edges: edge="1" with source and target, always with a child <mxGeometry relative="1" as="geometry"/>. Put html=1 in every style and XML-escape HTML in values (&lt; &gt; &amp; &quot;). No XML comments. Don't add waypoints. Place the shapes yourself (no postLayout) and set `routing: "libavoid"` only when an edge would otherwise cross a shape.
    xml:string, mermaid:string, postLayout:string, direction:string, routing:string
  • search_shapes — Search the draw.io shape library by keywords. Returns matching shapes with their exact style strings, dimensions, and titles. Covers ~10,000 built-in stencils (cloud architecture, network topology, P&ID, electrical, Cisco, Kubernetes, BPMN) and, when those are sparse, supplements results with the draw.io icon service (brand/product logos and general-purpose concept icons, e.g. 'react', 'slack', 'shopping cart', 'solar panel'). Use ONLY for diagrams that need industry-specific, branded, or pictorial icons. Do NOT use for standard diagram types like flowcharts, UML, ERD, org charts, or mind maps — these use basic geometric shapes (rectangles, diamonds, circles, cylinders) that are already covered in the XML reference. Also skip if the user asks to use basic/simple shapes or says not to search. The style string from the results can be used directly in mxCell style attributes.
    query:string*, limit:number
  • get_drawio_reference — Returns the draw.io diagram generation reference as Markdown. Format "xml": styles, the layout grid, edges, containers, swimlanes, layers, tags, metadata, dark mode, the layout and routing passes, and the well-formedness rules for create_diagram's xml. Format "mermaid": the header keyword and syntax hints for every Mermaid type draw.io supports, flowchart styling and the ELK layout. Call it once per format and conversation, before the first diagram in that format; the reference stays valid for the rest of the conversation.
    format:string*

Overview

What is draw.io?

The draw.io MCP Server is the official hosted MCP App from the draw.io team. It turns Mermaid.js or draw.io XML into interactive diagrams that appear inline in Claude.ai, ChatGPT, VS Code and Cursor, with no installation and no sign-in.

draw.io (also known as diagrams.net) is a widely used diagramming tool from JGraph. The hosted server at https://mcp.draw.io/mcp uses the MCP Apps extension: when the model calls create_diagram, the host renders the diagram in a sandboxed iframe using the official draw.io viewer, with zoom, pan, layers, fullscreen and an "Open in draw.io" button to keep editing. The code is open source under Apache 2.0 in jgraph/drawio-mcp, and the same server can be self-hosted.

How to use draw.io?

Add the URL as a remote MCP server; the server needs no sign-in, so leave authentication off.

https://mcp.draw.io/mcp

Diagrams render inline in hosts that support MCP Apps: Claude.ai, ChatGPT, VS Code with GitHub Copilot 1.109 or later, and Cursor 2.6 or later. In other hosts, such as Claude Code, the server returns a link that opens the diagram in draw.io.

Claude Code

claude mcp add --transport http drawio https://mcp.draw.io/mcp

Claude Code's terminal can't show diagrams inline, so you get an app.diagrams.net link for each diagram.

Claude Desktop and claude.ai

draw.io is listed in Claude's connector directory and can be added in one click. You can also open Settings → Connectors → Add custom connector and paste the URL.

Cursor

From the draw.io README, in ~/.cursor/mcp.json or .cursor/mcp.json:

{
  "mcpServers": {
    "drawio": {
      "url": "https://mcp.draw.io/mcp"
    }
  }
}

VS Code

From the draw.io README, in .vscode/mcp.json:

{
  "servers": {
    "drawio": {
      "type": "http",
      "url": "https://mcp.draw.io/mcp"
    }
  }
}

Click Start above the entry, then ask Copilot Chat in Agent mode for a diagram.

Key features of draw.io

  • Official server from the draw.io team, hosted at mcp.draw.io with no account required.
  • Inline, interactive diagrams in MCP Apps hosts, with zoom, pan, layer toggling, lightbox and fullscreen.
  • Accepts Mermaid (flowcharts, sequence, class, state, ER, Gantt, mindmap, timeline, C4, architecture and more) or native draw.io XML.
  • Mermaid is parsed and laid out natively, then converted to draw.io.
  • Optional ELK layered layout pass for XML diagrams.
  • Shape search across about 10,000 built-in stencils (cloud architecture, network, Cisco, Kubernetes, BPMN, P&ID, electrical) plus the draw.io icon service.
  • "Open in draw.io" hands off to the full editor.
  • Open source (Apache 2.0) and self-hostable via Node.js, Docker or Cloudflare Workers.

draw.io tools

Diagram creation. create_diagram takes exactly one of mermaid or xml and renders it. Its description tells the model to prefer Mermaid for every diagram type Mermaid has a header for, and to use XML otherwise. Options include postLayout: "elk" and a direction for XML layouts.

Reference. get_drawio_reference returns the generation reference for xml or mermaid as Markdown. The model calls it once per format per conversation, before its first diagram; this keeps create_diagram's description short.

Shapes. search_shapes finds shapes by keyword and returns exact style strings, sizes and titles. It is meant for industry-specific, branded or pictorial icons, not for standard flowcharts or UML.

Use cases of draw.io

  • Architecture diagrams: "Draw an AWS architecture with an ALB, two ECS services and an RDS database, using AWS icons."
  • Explaining code: "Make a sequence diagram of how a login request flows through these services."
  • Data modeling: "Create an ER diagram for these three tables."
  • Planning: "Turn this project plan into a Gantt chart."
  • Network maps: "Diagram this office network with Cisco shapes."
  • Brainstorming: "Make a mind map of ideas for our product launch."

draw.io MCP Server vs alternatives

draw.io also publishes a stdio tool server, @drawio/mcp (npx -y @drawio/mcp), that opens diagrams in the full draw.io editor in your browser instead of rendering them inline. Use it in hosts without MCP Apps support or if you prefer the browser editor. There is also a community Draw.io MCP server that works differently and is not made by the draw.io team.

Troubleshooting draw.io MCP Server

  • The diagram shows as a link instead of inline. Your host doesn't support MCP Apps (for example Claude Code or older Cursor builds). Open the link, or use a supported host.
  • Cursor shows nothing to render. Inline rendering needs Cursor 2.6 or later; on older builds, use the stdio @drawio/mcp server.
  • The model sends the wrong input shape. Provide exactly one of xml or mermaid as a plain string, not an object or array.
  • Diagrams can't leave your network. With the hosted endpoint, the diagram is sent to draw.io's server; self-host the MCP App server if data must stay internal.

Frequently asked questions

1 Is the draw.io MCP Server official?

Yes. It is built and hosted by the draw.io team (JGraph), and the source is in jgraph/drawio-mcp on GitHub.

2 Is it free? Do I need an account?

The hosted endpoint needs no sign-in or account, and the project is open source under Apache 2.0.

3 Which clients show diagrams inline?

Claude.ai, ChatGPT, VS Code with GitHub Copilot 1.109+ and Cursor 2.6+. Other clients get a link that opens the diagram in draw.io.

4 Can I edit the diagram afterwards?

Yes. Each rendered diagram has an "Open in draw.io" button that opens it in the full editor.

5 Does it support Mermaid?

Yes. create_diagram accepts Mermaid for many diagram types and converts it to a native draw.io diagram.

6 Can I self-host it?

Yes. The MCP App server runs on Node.js, as the jgraph/drawio-mcp Docker image, or on Cloudflare Workers.

Videos

Tutorials, guides, and showcases related to draw.io MCP Server (jgraph/drawio-mcp). The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬