draw.io MCP: Turning What You Describe to Your Assistant Into an Editable draw.io Diagram
You describe a process, system or plan to your assistant: something like "draw a restaurant's order, kitchen and courier flow with two decision points." draw.io's official MCP server turns it not into a picture but into a real draw.io diagram whose shapes and connectors you can edit one by one. In Claude, ChatGPT, VS Code and Cursor the diagram appears inside the chat and opens in the editor with "Open in draw.io"; the Claude Code, Codex and Copilot plugins write a .drawio file into your project and export it to PNG, SVG or PDF. The hosted server needs no installation, account or sign-in.
- What it does
- Turns your description into an editable draw.io diagram
- Type
- MCP server (hosted) + assistant plugins
- Made by
- draw.io (official, Apache-2.0)
- Where
- Claude, ChatGPT, VS Code, Cursor, Claude Code, Codex, Copilot CLI
- Output
- .drawio; PNG, SVG, PDF with the plugin
- Account
- None; no sign-in
- Price
- No price on the official pages; open source
What is draw.io MCP for?
Turning a workflow, customer journey or system architecture into a diagram takes hours; asking an AI to "draw it" often gives you an image you can't edit. draw.io MCP closes that gap: what you describe comes back as a diagram built from draw.io's own shapes, connectors and labels. You move a box, fix a label, change a color; it's no different from a diagram drawn by hand in draw.io.
MCP is the common standard that lets an AI assistant connect to an outside service. At the far end of this bridge sits draw.io's server: the assistant writes the diagram as text (draw.io XML or Mermaid), and the server turns it into shapes, lays it out and hands it back to the chat.
The server needs no account and doesn't see your conversation or files; it receives only the diagram the assistant sends.
Who it helps: agencies presenting a process or campaign flow to a client, developers documenting system architecture, and consultants and business owners who want to map a restaurant's order-kitchen-courier flow or a hotel's check-in process. The resulting diagram goes into a client presentation as a PDF or PNG and keeps being updated in draw.io afterwards.
How does draw.io MCP work?
The server has four tools: diagram creation (create_diagram), search across more than 10,000 shapes in the draw.io libraries (search_shapes), get_drawio_reference, where the model reads the writing guide, and a fast mode (create_semantic_diagram) used only when you ask for something "quick" or "rough". The fast mode draws only flowcharts and swimlane diagrams; up to 24 steps in a flowchart without lanes, and no choice of colors.
If you already have Mermaid, PlantUML or CSV, you can paste that too, but it depends on the route: the hosted server takes XML, Mermaid, PlantUML and CSV; the npm Tool Server takes XML, Mermaid and CSV; the plugins take XML and Mermaid. On the hosted server, Mermaid flowcharts, ER and sequence diagrams, PlantUML sequence and activity diagrams and CSV are converted into editable shapes on the server; the in-chat viewer converts the other types. In a few types, such as timelines and Ishikawa diagrams, some parts still come out as drawings.
Four routes: which one should you pick?
The same repository offers four routes. All of them produce real draw.io diagrams (.drawio); the difference is where the diagram appears and what gets installed.
| Route | Where the diagram appears | What you install | For whom |
|---|---|---|---|
| MCP App Server (hosted) | Inside the chat; in the editor via "Open in draw.io" | Nothing (mcp.draw.io) | Claude, ChatGPT, VS Code, Cursor |
| MCP Tool Server | The draw.io editor in a new browser tab | The npm package @drawio/mcp | MCP clients on your computer (Claude Desktop, Cursor, OpenCode) |
| Plugins (skill) | A .drawio file in the project; PNG, SVG, PDF or a link | The plugin; draw.io Desktop for export | Claude Code, Codex CLI, Copilot CLI, Cursor, Antigravity |
| Project instructions (no MCP) | A clickable draw.io link | Nothing; you paste instructions | claude.ai with Projects |
If you don't want diagrams to leave your network, you can run the same server with the Docker image (jgraph/drawio-mcp) on your own machine or server; the diagram still appears in the chat.
What do you type, and what do you get? Ready-made requests
The requests come from the examples on drawio.com/mcp; the unedited result of each one is published there and can be opened in draw.io. The more clearly you state the diagram type (flowchart, sequence diagram, mind map) and the details, the closer the result.
How do you set up draw.io MCP? Steps by assistant
In chat assistants you don't install anything; you connect the hosted server, and no account or sign-in is asked for. In coding agents, the recommended route is the plugin. The commands are copied exactly from drawio.com/mcp.
- Open the Claude connectors directory with + on Customize then Connectors, find draw.io and connect it.
- Start a new chat and describe the diagram you want.
- Click "Open in draw.io" under the diagram to edit it in the draw.io editor.
› https://mcp.draw.io/mcp› /plugin marketplace add jgraph/drawio-mcp
/plugin install drawio@drawioThen just ask for a diagram; the skill kicks in on its own. To call it explicitly, type /drawio:drawio. Add png, svg or pdf to the request to export (draw.io Desktop required), or url to open it in draw.io in your browser.
› claude mcp add drawio -- npx -y @drawio/mcp@1.13.0The official page gives the command without a version (@drawio/mcp); here it's pinned to the latest version as of November 18, 2026. Claude Code's terminal can't show the diagram in the chat; you get a file or a link.
- Open draw.io in ChatGPT Plugins and select Install plugin.
- In a new conversation, type @, pick draw.io and ask for a diagram.
To add it as a custom MCP server, enter https://mcp.draw.io/mcp under Connection in ChatGPT Plugins › + › Add custom MCP server and leave Authentication off. If the option is missing, your workspace admin may have disabled it.
› codex plugin marketplace add jgraph/drawio-mcp
codex plugin add drawio@drawio› codex mcp add drawio -- npx -y @drawio/mcp@1.13.0draw.io is also in the plugin directory that ChatGPT and Codex share.
› {
"servers": {
"drawio": {
"type": "http",
"url": "https://mcp.draw.io/mcp"
}
}
}Click Start above the server entry, confirm you trust the folder if VS Code asks, and use Copilot Chat in Agent mode. In GitHub Copilot CLI: copilot mcp add --transport http drawio https://mcp.draw.io/mcp (the terminal can't show the diagram; you get a link).
› {
"mcpServers": {
"drawio": {
"url": "https://mcp.draw.io/mcp"
}
}
}Enable the server when prompted or under Cursor Settings then MCP, then ask the Agent for a diagram. Installing the draw.io plugin from the Cursor Marketplace is another route.
In any other assistant that supports MCP, you add https://mcp.draw.io/mcp as a remote server. In any MCP client on your computer, npx @drawio/mcp opens diagrams in the draw.io editor in your browser.
Which files do you get? PNG, SVG, PDF and draw.io Desktop
Every route's core output is a .drawio file, draw.io's own file format; the plugins also export to the formats above if you ask.
| Downloading the diagram from the chatYes | The viewer downloads PNG or SVG without draw.io Desktop, in apps that allow downloads. |
|---|---|
| PNG, SVG, PDF export with the pluginPartly | draw.io Desktop must be installed on the computer; otherwise the .drawio file stays and nothing is sent out. |
| .drawio file and linkYes | draw.io Desktop isn't needed. Without Desktop, an installed Chrome, Edge or Chromium is used to convert Mermaid. |
| Editing in VS CodePartly | The official page points to an unofficial draw.io extension for VS Code for this. |
The diagram itself is embedded inside exported PNG, SVG and PDF files; you can open the file in draw.io and keep editing.
Which assistants does draw.io MCP work with?
| Claude (claude.ai)Yes | The diagram appears in the chat; in the connector directory. The official docs mention Claude Desktop for the Tool Server route. |
|---|---|
| ChatGPTYes | The diagram appears in the chat; in the plugin directory. |
| VS Code (GitHub Copilot) 1.109+Yes | Inside Copilot Chat. |
| Cursor 2.6+Yes | In the Agent chat; the npm Tool Server on older versions. |
| Claude Code, Codex CLI, Copilot CLI, AntigravityYes | Files via the plugin; the terminal can't show the diagram, so you get a link or a file. |
Where does my diagram go? Data and privacy
The diagram text and shape search keywords the assistant sends, plus connection details (the assistant software's name, a random session ID, the connecting computer's IP address; in Claude on the web that's Anthropic's server, in a coding agent it's your computer). It doesn't receive your conversation, prompts, uploaded files or account details; there's no account or sign-in.
draw.io states that it doesn't store diagrams, doesn't sell the data and doesn't use it to train AI models. Shape search keywords go to draw.io's icon service, where they stay in a cache for up to 30 days and in request logs for 7 days.
- Hosted server: yes, it goes to draw.io's server
- Your own server with Docker: no
- npm Tool Server: no, it's carried in the # part of the link
- Plugins: files are written locally; but the Claude Code and Cursor plugins (since 1.2.3) also bundle the hosted server, and diagrams drawn with it go to mcp.draw.io. To keep everything local, turn off the drawio MCP server that comes with the plugin (
/mcpin Claude Code). The skill downloads its writing guides from GitHub (the diagram isn't sent).
The assistant's model writes the diagram; if you use a cloud model, the diagram content is produced at that provider. Full isolation also needs a local model.
!A diagram that carries personal data, such as an org chart or a client list, goes to the hosted server with that data; draw such diagrams with Docker, the npm Tool Server or a plugin with its hosted server turned off. If you use a cloud model, the content still goes to the model provider. When the npm package is installed, it caches routing code from viewer.diagrams.net.
Is draw.io MCP free?
The official pages mention no price, plan or usage quota; the hosted server needs no account or sign-in. All of the code is open source under Apache-2.0: the npm package, the plugins and the Docker image are free too. The assistant that writes the diagram (Claude, ChatGPT, Cursor) has its own plan and usage allowance.
No request limit for the hosted service is stated in the official documentation.
Common problems and fixes
| What happens | What to do |
|---|---|
| The diagram doesn't appear in the chat | In-chat diagrams only work in assistants that support MCP Apps: Claude, ChatGPT, VS Code 1.109+ and Cursor 2.6+. In Claude Code or Copilot CLI, the server returns a link that opens in draw.io. |
| Can't add a custom MCP server in ChatGPT | Your workspace admin may have disabled the option; ask them to enable it or install the plugin from the directory. |
| VS Code doesn't use the draw.io tools | Click Start above the server in mcp.json, trust the folder, switch Copilot Chat to Agent mode, and check that the draw.io tools are on under Configure Tools in the chat input. |
| The plugin doesn't produce PNG, SVG or PDF | Install draw.io Desktop; export runs through its command-line tool. Without it you can get .drawio or url output. |
| The Claude Code plugin is stuck on an old version | Claude Code keeps the version you installed: run claude plugin marketplace update drawio and claude plugin update drawio@drawio, then restart Claude Code. |
How do you remove it?
- Claude: disconnect draw.io under Customize then Connectors.
- Claude Code plugin: remove it from the Installed tab of the
/pluginpanel or with/plugin uninstall. - Tool Server:
claude mcp remove drawio(in Codex and VS Code, delete the server entry from the config file).
The .drawio files you drew stay in your project or in draw.io; because the hosted server doesn't store diagrams, there's no account data to delete.
How it differs from the Diagram Design skill
| What | Output |
|---|---|
| draw.io MCP (this page) | A .drawio diagram you edit in draw.io; it appears in the chat; an official tool published by draw.io itself. |
| Diagram Design | A community skill that has a coding agent draw a single-file HTML and inline SVG diagram; it doesn't produce draw.io files. |
Frequently asked questions
What is draw.io MCP?
draw.io's official MCP server and assistant plugins. It draws the process or architecture you describe to your assistant not as a picture but as a real diagram you can open and edit in draw.io. In Claude, ChatGPT, VS Code and Cursor the diagram appears in the chat.
How do I install draw.io in Claude Code?
Inside Claude Code, run /plugin marketplace add jgraph/drawio-mcp and /plugin install drawio@drawio. Then just ask for a diagram; add png, svg or pdf to the request to export (draw.io Desktop required).
How do I connect draw.io to Claude?
Open the Claude connector directory with + on Customize > Connectors and connect draw.io, or add https://mcp.draw.io/mcp as a custom connector on the same page. No account or sign-in is required.
What is the draw.io MCP server URL?
The hosted server's address is https://mcp.draw.io/mcp. For a version that runs on your computer, use npx @drawio/mcp.
Do I need to install draw.io Desktop?
Only for PNG, SVG and PDF export and auto-layout in the plugins. It isn't needed for the MCP servers, .drawio files or links; the in-chat viewer downloads PNG and SVG without Desktop.
Does draw.io MCP work in ChatGPT?
Yes. You install draw.io in ChatGPT Plugins and pick it with @ in a new chat; the diagram appears in the chat. You can also add https://mcp.draw.io/mcp as a custom MCP server.
Is draw.io MCP free?
The official pages list no price or plan; the hosted server needs no account or sign-in, and the code is open source under Apache-2.0. The assistant's own plan is separate.
Are my diagrams stored or used for training?
draw.io states that the hosted server doesn't store diagrams and doesn't use the data to train AI. If you don't want the diagram to go to draw.io's server, use Docker, the npm Tool Server or a plugin with its hosted server turned off via /mcp; with a cloud model, the content still goes to the model provider.
Related guides
Sources
- draw.io for AI assistants
- GitHub: jgraph/drawio-mcp
- Claude Code plugin (README)
- Privacy policy for draw.io in AI assistants
- npm: @drawio/mcp
- Claude Code: MCP
- Claude Code: discover and remove plugins
Not clear in the official sources: The hosted service's request limit (not in the official documentation) · how diagram labels with Turkish characters behave (the documentation doesn't give this detail; check your first diagram) · the Claude directory page is behind sign-in, so its listing is taken from draw.io's own documentation. Each is covered in the relevant section along with what you can do.
You can do it yourself; if you’d like support
The guide is free and needs no sign-up; you can follow the steps here yourself. If you’d like professional support at some point, choose the option that fits your needs. This doesn’t affect the rankings in the guide.




