Skip to content

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.

YouYou describe the process
AssistantWrites the diagram as XML or Mermaid
draw.io MCPmcp.draw.io; turns it into shapes, lays it out
DiagramIn the chat; in the editor via "Open in draw.io"

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?

You describeWith detail like "if the payment fails, retry up to 3 times"
The assistant writesdraw.io XML or Mermaid; looks up shapes first if needed
The server buildsEditable shapes, layout; a syntax error comes back with its line
You editAsk for changes in the chat or use "Open in draw.io"
Your model writes the diagram; the draw.io server converts it into its own shapes. In assistants that don't support MCP Apps, the diagram arrives as a link that opens in draw.io.

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.

RouteWhere the diagram appearsWhat you installFor 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 ServerThe draw.io editor in a new browser tabThe npm package @drawio/mcpMCP clients on your computer (Claude Desktop, Cursor, OpenCode)
Plugins (skill)A .drawio file in the project; PNG, SVG, PDF or a linkThe plugin; draw.io Desktop for exportClaude Code, Codex CLI, Copilot CLI, Cursor, Antigravity
Project instructions (no MCP)A clickable draw.io linkNothing; you paste instructionsclaude.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.

Order flow"Draw an online shop's order process as a diagram: a flowchart with at least two decisions and one retry loop (if the payment fails, retry up to 3 times)."What you get: an editable flowchart with decision shapes and labeled connectors. With the same pattern you can ask for a restaurant's order-kitchen-courier flow or a hotel's check-in process.
Cloud architecture"Draw the AWS architecture of a photo-sharing app as a diagram, using CloudFront, S3, API Gateway, Lambda, DynamoDB and Cognito."What you get: an architecture diagram with real icons from draw.io's AWS library. For another set, name it: for example, "use SAP icons".
Business model"Fill in a business model canvas for a meal-kit delivery startup."What you get: a filled-in business model canvas, editable in draw.io. Mind maps, floor plans, wireframes and infographics are also among the examples on the page.
Quick sketch"Quickly draw a flowchart of returning a book at a library kiosk. Just a rough sketch is fine."What you get: because you said "quick" or "rough," the fast mode kicks in; the diagram comes in the plain theme and, according to the maker's own measurement, sooner. The fast mode only works for flowcharts and swimlane diagrams. If you want colors or a hand-drawn look, don't use those words.
Ask for changes"Use another color theme on the same diagram and add a "stock check" step before payment."What you get: the updated diagram in the same chat. To edit it yourself, click "Open in draw.io".

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.

  1. Open the Claude connectors directory with + on Customize then Connectors, find draw.io and connect it.
  2. Start a new chat and describe the diagram you want.
  3. Click "Open in draw.io" under the diagram to edit it in the draw.io editor.
Or the custom connector address in Claude settings› https://mcp.draw.io/mcp

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

PNG.drawio.png (with editable XML inside)SVG.drawio.svg (with editable XML inside)PDF.drawio.pdf (with editable XML inside)

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 chatYesThe viewer downloads PNG or SVG without draw.io Desktop, in apps that allow downloads.
PNG, SVG, PDF export with the pluginPartlydraw.io Desktop must be installed on the computer; otherwise the .drawio file stays and nothing is sent out.
.drawio file and linkYesdraw.io Desktop isn't needed. Without Desktop, an installed Chrome, Edge or Chromium is used to convert Mermaid.
Editing in VS CodePartlyThe 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?

Inside the chat (Claude, ChatGPT, VS Code, Cursor)See the diagram in the chat and edit it with "Open in draw.io".Web, Desktop, Code editor · No account or sign-in; an assistant that supports MCP Apps · details
Coding agents (plugin)Have Claude Code, Codex, Copilot CLI, Cursor or Antigravity write a .drawio file into your project.Terminal, Code editor · draw.io Desktop for PNG, SVG, PDF · details
Local server (npm, Docker)Keep diagrams on your own computer or network.Terminal, Desktop · Node.js 18+ or Docker · details
Claude (claude.ai)YesThe diagram appears in the chat; in the connector directory. The official docs mention Claude Desktop for the Tool Server route.
ChatGPTYesThe diagram appears in the chat; in the plugin directory.
VS Code (GitHub Copilot) 1.109+YesInside Copilot Chat.
Cursor 2.6+YesIn the Agent chat; the npm Tool Server on older versions.
Claude Code, Codex CLI, Copilot CLI, AntigravityYesFiles 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

What the hosted server receives

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.

Storage and training

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.

Does the diagram leave your machine
  • 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 (/mcp in Claude Code). The skill downloads its writing guides from GitHub (the diagram isn't sent).
The model is a separate matter

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 happensWhat to do
The diagram doesn't appear in the chatIn-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 ChatGPTYour 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 toolsClick 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 PDFInstall 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 versionClaude 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?

  1. Claude: disconnect draw.io under Customize then Connectors.
  2. Claude Code plugin: remove it from the Installed tab of the /plugin panel or with /plugin uninstall.
  3. 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

WhatOutput
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 DesignA community skill that has a coding agent draw a single-file HTML and inline SVG diagram; it doesn't produce draw.io files.

Diagram Design guide

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

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.