Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 86
  • 1.5k stars
  • 3.8k a week
  • MIT
  • Updated

Install Drawio MCP Server

Built from the published package, never by AI.

claude mcp add drawio-mcp-server -- npx -y drawio-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Drawio MCP Server in Claude Code

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

A

No 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 →

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.

Drawio MCP Server Install

Add to stack

Loading.