Drawio MCP
MCP server by jgraph Verified · npm:@drawio
Renders draw.io diagrams inline in AI chat from XML, Mermaid, PlantUML or CSV. It suits people who want editable diagrams made by their assistant.
Install Drawio MCP
Built from the published package, never by AI.
claude mcp add drawio-mcp -- npx -y @drawio/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"drawio-mcp": {
"args": [
"-y",
"@drawio/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"drawio-mcp": {
"args": [
"-y",
"@drawio/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"drawio-mcp": {
"args": [
"-y",
"@drawio/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add drawio-mcp -- npx -y @drawio/mcp{
"mcpServers": {
"drawio-mcp": {
"args": [
"-y",
"@drawio/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add drawio-mcp npx -y @drawio/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the drawio-mcp block.
About
The draw.io MCP server is the official draw.io server for LLMs. It lets an assistant create diagrams from draw.io XML, Mermaid, PlantUML or draw.io CSV, and search the shapes in draw.io's libraries. The hosted endpoint at mcp.draw.io shows diagrams inline in chat, where they can be opened in draw.io, copied or exported.
For some input, the server converts Mermaid flowcharts, ER and sequence diagrams, and some PlantUML and CSV, into editable draw.io shapes. Other types are handled by draw.io's own converters in the viewer. The server can also run locally with Node.js or the Docker image. It is aimed at people who want editable diagrams from an AI assistant, or who prefer local desktop workflows with draw.io.
Written from the project's README and checked against it.
Tools it gives your assistant
create_diagramRenders draw.io XML, Mermaid, PlantUML or CSV as an interactive diagram inline in chat.search_shapesSearches over 10,000 draw.io shapes by keyword and returns exact style strings for XML.get_drawio_referenceReturns the XML or Mermaid generation reference the model reads before its first diagram.create_semantic_diagramFast mode for flowcharts and swimlane diagrams when the user asks for a quick or cheap diagram.
What you need
- Node.js to run the server locally
- Docker, if using the jgraph/drawio-mcp image
- An MCP-compatible host such as Claude.ai, ChatGPT, VS Code or Cursor
Try asking
- Draw a swimlane diagram for requesting a new laptop, with lanes for Employee, Manager and IT.
- Find the AWS shapes I need for a three-tier web app diagram.
- Convert this Mermaid flowchart into an editable draw.io diagram.
Good to know
- Fast mode draws flowcharts and swimlanes only, in the calm theme.
- Flowcharts without lanes get up to 24 steps in fast mode.
- Marking shapes in chat is a prototype.
- Some parts of certain Mermaid diagram types come out as drawings rather than editable shapes.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Drawio MCP
All alternatives →Appllama gives AI assistants research on top-grossing mobile apps, plus a build bar for native-feeling Expo and React Native screens. It suits developers building mobile apps with AI assistants.
Creates, edits and exports editable designs for AI assistants through the CoDesign MCP server, built on IMG.LY's CE.SDK design engine. It suits social teams, agencies and designers who need posters, social posts, videos and print layouts.
Pascal 3D Editor lets AI agents inspect, edit, validate, and save editable 3D building scenes through an MCP server. It is aimed at architecture, engineering, construction, and operations teams. Local use needs no Pascal account.
Agent-Native Design is the Design agent in Agent-Native, an open-source TypeScript framework. It generates and refines interactive designs with agent help. The same actions serve both the agent and the UI.
Draws and edits draw.io diagrams on a live browser canvas for AI agents such as Claude Code, Cursor and VS Code. It suits people who want to draw diagrams with AI and keep editing them by hand.
Framelink MCP for Figma gives coding assistants access to your Figma files. It supplies design data so the assistant can implement designs in any framework, mainly for use with Cursor.
Compare with Appllama, codesign or Pascal 3D Editor
Drawio MCP: common questions
Is the draw.io MCP server official?
Yes. The source describes it as the official draw.io MCP server, published by jgraph.
Can the diagrams be edited after the assistant creates them?
Yes. Diagrams can be opened in draw.io with the Open in draw.io button, and the source says the converted Mermaid parts become native draw.io shapes.
Do I need to install anything to use it?
The hosted endpoint at mcp.draw.io needs no installation. Self-hosting uses Node.js or the Docker image, or Cloudflare Workers.
How do I install Drawio MCP?
In Claude Code run claude mcp add drawio-mcp -- npx -y @drawio/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Drawio MCP the official server?
Drawio MCP is published by npm:@drawio from its verified domain in the official MCP Registry.
Is Drawio MCP free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Drawio MCP safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Drawio MCP?
Similar MCP servers: Appllama, codesign, Pascal 3D Editor, Agent-Native Design.
Does Drawio MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
