prompts.chat
MCPShips with promptschat: f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open…
Ships with drawio-mcp: The official draw.io MCP (Model Context Protocol) server that enables LLMs to create and open diagrams in the draw.io editor. ▶ Watch the video and set up draw.io in your AI…
Claude Code
> /plugin marketplace add jgraph/drawio-mcp> /plugin install drawio@drawio
Codex
$ codex mcp add drawio --url https://mcp.draw.io/mcp
Cursor
{ "mcpServers": { "drawio": { "url": "https://mcp.draw.io/mcp" } } }
Add it to mcp.json.
Gemini CLI
$ gemini mcp add --transport http drawio https://mcp.draw.io/mcp
GitHub Copilot
$ copilot mcp add --transport http drawio https://mcp.draw.io/mcp
OpenCode
{ "mcp": { "drawio": { "type": "remote", "url": "https://mcp.draw.io/mcp" } } }
Add it to opencode.json.
Windsurf
{ "mcpServers": { "drawio": { "serverUrl": "https://mcp.draw.io/mcp" } } }
Add it to mcp_config.json.
Security report
Low risk
Known flaws
Not published
Signed build
Not published
Maintained
Nov 20, 2026
Last push
Licence
Apache-2.0
Runs as
Remote
mcp.draw.io
Deprecated
Not published
Signals from public registries, not an audit. Checked Nov 20, 2026.
The official draw.io MCP (Model Context Protocol) server that enables LLMs to create and open diagrams in the draw.io editor.
▶ Watch the video and set up draw.io in your AI assistant on drawio.com/mcp.
This repository offers four approaches for integrating draw.io with AI assistants. Pick the one that fits your setup:
| MCP App Server | MCP Tool Server | Assistant Plugins | Project Instructions | |
|---|---|---|---|---|
| How it works | Renders diagrams inline in chat | Opens diagrams in your browser | Generates .drawio files, optional PNG/SVG/PDF export or browser URL | Claude generates draw.io URLs via Python |
| Diagram output | Interactive viewer embedded in conversation | draw.io editor in a new tab | .drawio, .drawio.png / .svg / .pdf, or browser URL | Clickable link to draw.io |
| Requires installation | No (hosted at mcp.draw.io) | Yes (npm package) | One-line plugin install (draw.io Desktop only for PNG/SVG/PDF export) | No — just paste instructions |
| Supports XML, CSV, Mermaid | ✅ All three, and PlantUML | ✅ All three | XML and Mermaid (Mermaid converted by draw.io Desktop or an installed Chrome, Edge or Chromium) | ✅ All three |
| Editable in draw.io | Via "Open in draw.io" button | ✅ Directly | ✅ Directly | Via link |
| Works with | Claude.ai, ChatGPT, VS Code, Cursor, GitHub Copilot CLI, any MCP Apps host | Claude Desktop, Cursor, OpenCode, Gemini CLI, any MCP client | Claude Code, Codex CLI, GitHub Copilot, Cursor, Antigravity, OpenCode | Claude.ai (with Projects) |
| Best for | Inline previews in chat | Local desktop workflows | Local development workflows | Quick setup, no install needed |
Every way takes Mermaid and gives a native draw.io diagram, not a picture of one: shapes, connectors that end on the shapes they join, and labels that are the shapes' own text, so the diagram can be edited, moved and restyled in draw.io like one drawn there. draw.io converts Mermaid with its own parser and layout, the same in the editor, draw.io Desktop, the tool server and the app server's viewer: the 28 diagram types of the Mermaid reference, plus swimlane, use case, agent flow, railroad and Cynefin diagrams.
.drawio file, or without Desktop the skill's mermaid-to-drawio.js runs the same converter in an installed Chrome, Edge or Chromium.mcp-app-server/test/mermaid-types.test.js converts a diagram of each type both ways and checks the result. In a few types some parts still come out as drawings: loose lines in timelines, tree views, Ishikawa, railroad, event modeling and Cynefin diagrams, radar curves as images, and names beside their shapes in architecture and Wardley diagrams (details).
User guides with tested prompts and examples are in the draw.io documentation, and the setup for each assistant is on drawio.com/mcp:
The gallery is generated from docs/images/gallery/gallery.json and the editable light and dark SVGs next to it; drawio.com reads them when the site is built.
The MCP App server renders draw.io diagrams inline in AI chat interfaces using the MCP Apps protocol. Instead of opening a browser tab, diagrams appear directly in the conversation as interactive iframes.
The official hosted endpoint is available at:
https://mcp.draw.io/mcp
Add this URL as a remote MCP server in Claude.ai, ChatGPT, VS Code (GitHub Copilot), Cursor, GitHub Copilot CLI, or any MCP Apps-compatible host — no installation required. On Claude.ai, draw.io is also listed in the connector directory and can be added from there in one click; in ChatGPT and Codex, in the plugin directory. In Cursor (≥ 2.6), diagrams render inline in the Agent chat (one-click install); on older builds, use the stdio @drawio/mcp tool server instead. In GitHub Copilot CLI, run copilot mcp add --transport http drawio https://mcp.draw.io/mcp; a terminal can't show diagrams inline, so it gets a link that opens each diagram in draw.io.
You can also run the server locally via Node.js or the jgraph/drawio-mcp Docker image, or deploy your own instance to Cloudflare Workers.
Tools:
create_diagram — Renders draw.io XML, Mermaid (28 diagram types), PlantUML or draw.io CSV as an interactive diagram inline in chat. Mermaid flowcharts, ER and sequence diagrams, PlantUML sequence and activity diagrams and CSV are converted on the server into editable draw.io shapes, laid out and styled, and a syntax error comes back with its line and how to fix itsearch_shapes — Searches 10,000+ shapes across all draw.io libraries (AWS, Azure, GCP, P&ID, electrical, Cisco, Kubernetes, UML, BPMN, etc.) by keyword, supplemented by the draw.io icon service (brand logos and general-purpose concept icons) when the built-in libraries have no good match. Returns exact style strings that can be used directly in XML. Use this to find the correct shape before calling create_diagram.get_drawio_reference — Returns the XML or Mermaid generation reference, which the model reads once per format before its first diagram.create_semantic_diagram — The fast mode for flowcharts and swimlane diagrams, used only when you ask for a quick or cheap diagram (see below).Fast mode. Ask for speed or economy in so many words, in any language, and the model describes a flowchart or swimlane diagram instead of placing every shape: the steps, the lanes, the transitions and a row and a column per step. The server lays it out, routes the lines and styles it. For example:
Without such words, and for every other diagram type, the model uses create_diagram, which places the shapes with more care. In the benchmark of 15 November 2026 (Claude Code with Sonnet 5.5 and Opus 5.5, 20 prompts in English and German written for the test, three runs each), the models chose the right tool in 118 of 120 sessions. With the wish, the diagram came 3 to 4 times sooner (Sonnet 14 s instead of 46 s, Opus 27 s instead of 108 s), with less than half the output tokens. In blind comparisons with the diagrams the models placed themselves, the fast ones won 0.61 (Sonnet) and 0.67 (Opus) of the judgements, but each model lost on one flowchart without lanes. Limits:
create_diagram gives a sketch.create_diagram.Self-hosted servers leave the tool out with DRAWIO_SEMANTIC_TYPES=off. Details are in shared/semantic/FAST-MODE.md.
Mermaid, PlantUML and CSV. Besides draw.io XML, create_diagram takes Mermaid, PlantUML and draw.io CSV. The model picks a format, or uses the one you ask for or paste. These types are converted on the server into editable draw.io shapes, laid out and styled, and the model gets the diagram back as draw.io XML:
flowchart, graph), ER diagrams and sequence diagramsnone layouts; each row keeps its columns as shape dataA syntax error comes back to the model with its line and how to fix it, so the model can correct the source and send it again. Everything else goes to the viewer, which converts it with draw.io's own converters, as Arrange > Insert > Advanced does in the editor, and the model gets a note that says so: the other Mermaid types (class, state, Gantt, mind map, …), the other PlantUML types (class, use case, component, state, activity in the old syntax, …) and CSV with # list, # container, the circle layout or a custom layout. Self-hosted servers leave all of it to the viewer with DRAWIO_CONVERT=off.
One example per format, each converted on the server. Mermaid, a flowchart with a decision shape and labelled connectors:
flowchart LR
A[Order received] --> B{Paid?}
B -->|yes| C[Ship order]
B -->|no| D[Send reminder]
PlantUML, a sequence diagram with a lifeline for each participant and a line for each message:
@startuml
Customer -> Shop: Place order
Shop --> Customer: Confirmation
@enduml
CSV, an org chart drawn as a tree, each shape keeping its name and manager as shape data:
# label: %name%
# connect: {"from": "manager", "to": "name", "invert": true}
# layout: verticaltree
name,manager
CEO,
CTO,CEO
CFO,CEO
Note: Diagrams appear inline in hosts that support the MCP Apps extension, such as Claude.ai, ChatGPT, VS Code with GitHub Copilot and Cursor. In other hosts, such as GitHub Copilot CLI, the tool still works and answers with a link that opens the diagram in draw.io.
The original MCP server that opens diagrams directly in the draw.io editor. Supports XML, CSV, and Mermaid.js formats with lightbox and dark mode options. Published as @drawio/mcp on npm.
Quick start: npx @drawio/mcp
Ships with promptschat: f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open…
Ships with emdash: A full-stack TypeScript CMS built on Astro. EmDash takes the ideas that made WordPress dominant --…
Ships with openmotion: OpenMotion is a full-stack agentic video studio and an open-source alternative to Claude Motion and…