Drawio MCP Server
MCP server by lgazo Verified · npm:drawio-mcp-server
Lets AI assistants create, read, update, and delete Draw.io diagrams through MCP tools. It suits anyone who wants an assistant to build architecture diagrams, flowcharts, or visual documentation.
Install Drawio MCP Server
Built from the published package, never by AI.
claude mcp add drawio-mcp-server -- npx -y drawio-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"drawio-mcp-server": {
"args": [
"-y",
"drawio-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"drawio-mcp-server": {
"args": [
"-y",
"drawio-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"drawio-mcp-server": {
"args": [
"-y",
"drawio-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add drawio-mcp-server -- npx -y drawio-mcp-server{
"mcpServers": {
"drawio-mcp-server": {
"args": [
"-y",
"drawio-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add drawio-mcp-server npx -y drawio-mcp-serverGemini 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-server block.
About
Drawio MCP Server gives AI assistants MCP tools to create, read, update, and delete Draw.io diagram elements. The source says it lets assistants build architectural diagrams, flowcharts, and visual documentation automatically. It is published by lgazo and works with MCP clients such as Claude Desktop, Claude Code, Zed, and Codex.
The server can run in two ways. The built-in editor is hosted by the server and opens in a browser at localhost:3000 when started with the --editor flag. The alternative is a browser extension that connects to Draw.io running in the browser. The project is aimed at developers and teams who want AI agents to produce or edit diagrams. It supports multi-document and multi-page targeting, Mermaid import, and XML, SVG, and PNG import and export.
Written from the project's README and checked against it.
Tools it gives your assistant
list-documentsLists connected Draw.io document instances so later calls can target a specific tab or file.add-rectangleAdds a rectangle shape to a diagram on the target page.show-diagramOpens the diagram as an interactive editor inside the conversation on MCP Apps hosts.set-document-titleSets the title of the current Draw.io document.save-documentSaves the current Draw.io document.list-pagesLists the pages in a diagram.get-current-pageReturns the currently active page of a diagram.create-pageCreates a new page in a diagram.copy-pageCopies an existing page in a diagram.rename-pageRenames a page without forcing a visible page switch on supported runtimes.
What you need
- Node.js v22 or higher (tested against v22 LTS and v24 LTS)
- An MCP client such as Claude Desktop, Claude Code, Zed, Codex, or OpenCode
- Draw.io open in your browser, only when using the browser extension
Try asking
- Draw a CRUD API diagram with a database, API gateway, and four microservices
- Add a new layer called 'Background' and move all decorative elements to it
- Create an event-driven diagram with a message queue, producers and consumers
Good to know
- The draw.io desktop app integration is experimental and blocked by an upstream CSP issue.
- Syncing user edits made in the MCP Apps framed editor is pending real-browser verification.
- Remote browser sessions may not be able to reach the framed editor.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Drawio MCP Server
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 Server: common questions
Does it need a browser extension?
No. The built-in editor runs with the --editor flag and needs no browser extension. The extension is an alternative way to connect to Draw.io running in your browser.
Can several agents work on the same diagram project?
The source says per-document FIFO serialization lets multiple agents work on different files safely. It does not describe the same file being edited by several agents at once.
Which diagram formats can it import and export?
It imports and exports XML, SVG with embedded XML, and PNG with embedded XML. It can also import, embed, or expand Mermaid diagrams.
How do I install Drawio MCP Server?
In Claude Code run claude mcp add drawio-mcp-server -- npx -y drawio-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Drawio MCP Server the official server?
Drawio MCP Server is published by npm:drawio-mcp-server from its verified domain in the official MCP Registry.
Is Drawio MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Drawio MCP Server safe to use?
It scores 86 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 Server?
Similar MCP servers: Appllama, codesign, Pascal 3D Editor, Agent-Native Design.
Does Drawio MCP Server 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.
