# draw.io

Lets an agent build draw.io diagrams from Mermaid or XML and show them in the chat, with an Open in draw.io button for editing. Searches 10,000+ shapes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5876 repo stars
- Author: jgraph
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jgraph/drawio-mcp
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/drawio

## What it does

The server is hosted, so there is nothing to install: add `https://mcp.draw.io/mcp` as a remote MCP server in your client. The agent sends it draw.io XML or Mermaid code (28 Mermaid diagram types), and the conversation gets a live viewer that you can send to the draw.io editor.

\`create_diagram` renders the result. `search_shapes` looks up shapes by keyword across AWS, Azure, GCP, Kubernetes, UML, BPMN, Cisco and other libraries, and returns style strings ready to paste into XML, so the agent should call it before `create_diagram`. `get_drawio_reference` hands the model a format guide, which it reads once per format before its first diagram.

Inline rendering needs a host with MCP Apps support: Claude.ai, ChatGPT, VS Code with GitHub Copilot, Cursor. A terminal has no place to draw, so GitHub Copilot CLI gets a link that opens the diagram in draw.io. On Cursor older than 2.6 the diagram will not render in chat, and you need the stdio server `@drawio/mcp` instead.

## Requirements
- Remote server: `https://mcp.draw.io/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://mcp.draw.io/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add drawio --url https://mcp.draw.io/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "drawio": {
            "url": "https://mcp.draw.io/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "drawio": {
            "type": "http",
            "url": "https://mcp.draw.io/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http drawio https://mcp.draw.io/mcp
```

## When to use it
- draw a process flowchart from a plain-text description
- turn Mermaid code into an editable draw.io diagram
- find AWS, Kubernetes or Cisco shapes with ready-made styles
- build a UML or BPMN diagram and open it in the draw.io editor

## Example prompts
- Draw a refund flowchart in draw.io and show it in the chat
- Use draw.io to find AWS shapes and lay out a load balancer in front of a database
- Convert this Mermaid diagram into a draw.io diagram I can open in the editor

## Similar
- [drawio-logical-diagrams](https://affpapa.org/en/nevibecode/skills/drawio-logical-diagrams.md) — skill · 4200 installs
- [draw-io-diagram-generator](https://affpapa.org/en/nevibecode/skills/draw-io-diagram-generator.md) — skill · 2800 installs
- [drawio](https://affpapa.org/en/nevibecode/skills/bahayonghang-drawio.md) — skill · 8800 installs
- [drawio-diagrams](https://affpapa.org/en/nevibecode/skills/drawio-diagrams.md) — skill · 2700 installs
- [drawio-mcp](https://affpapa.org/en/nevibecode/mcp/drawio-mcp.md) — MCP server · ★ 6 repo stars
- [draw-io](https://affpapa.org/en/nevibecode/skills/draw-io.md) — skill · 757 installs

From the same set: [jgraph/drawio-mcp](https://affpapa.org/en/nevibecode/by/jgraph/drawio-mcp.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
