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

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.

  • Score 94
  • 5.9k stars
  • 44k a week
  • Apache-2.0
  • Updated

Install Drawio MCP

Built from the published package, never by AI.

claude mcp add drawio-mcp -- npx -y @drawio/mcp

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

Step-by-step: install Drawio MCP 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 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

A

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

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.

Drawio MCP Install

Add to stack

Loading.