Skip to content
← All MCP servers

Is the draw.io MCP server safe? What it can reach

What the draw.io MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

The official draw.io MCP server comes from jgraph, the maker of draw.io, in two forms. The app server is hosted at mcp.draw.io or self-hosted and renders diagrams inline in chat, and the tool server runs locally through npx and opens diagrams in the editor. Neither one needs a sign-in, none of the documented tools delete anything, and the main data flow is that your diagram text goes to the hosted endpoint.

Who maintains it

ImplementationKindStatus
draw.io MCP App Server (jgraph/drawio-mcp, hosted or self-hosted)Officialactive
@drawio/mcp Tool Server (jgraph/drawio-mcp, local npx)Officialactive

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://mcp.draw.io/mcp.

How it signs in

The hosted endpoint and the tool server document no sign-in, so the server holds no account rights. A self-hosted app server can require a bearer token set with AUTH_TOKEN.

What its tools can do

KindTools
Readsearch_shapes, get_drawio_reference
Writecreate_diagram, create_semantic_diagram, open_drawio_xml, open_drawio_csv, open_drawio_mermaid
Can’t be undonenone documented

create_diagram, create_semantic_diagram and search_shapes belong to the app server; open_drawio_xml, open_drawio_csv, open_drawio_mermaid and search_shapes belong to the tool server; get_drawio_reference is in both. The tools render or open diagrams and do not delete anything.

Built-in limits

OptionWhat it does
AUTH_TOKENSelf-hosted app server only: requires a bearer token on requests. The README says a shared machine needs it.
DRAWIO_SEMANTIC_TYPES=offSelf-hosted servers leave out create_semantic_diagram.
DRAWIO_ICON_SERVICE_URL=offStops search_shapes from sending search terms to icons.diagrams.net.
DRAWIO_CONVERT=offTurns off the server-side conversion of Mermaid, PlantUML and CSV.
Loopback bindingSelf-hosted, the app server listens on loopback only and checks the Origin header; publish Docker as -p 127.0.0.1:3001:3001.

The risks

  • On the hosted endpoint, every diagram the model writes is sent to mcp.draw.io as the request, so a diagram of internal architecture leaves your machine.
  • search_shapes sends search terms to icons.diagrams.net unless DRAWIO_ICON_SERVICE_URL is off, so a prompt-injected query could carry text out in the search string.
  • The tools only render and open diagrams, so a prompt injection mostly risks a misleading diagram or link, not data deletion.
  • Published with a plain docker -p 3001:3001, the self-hosted server bypasses ufw and firewalld and is reachable from the network.
  • The viewer loads code from app.diagrams.net and viewer.diagrams.net, so the page depends on those hosts.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http drawio https://mcp.draw.io/mcp

Claude Code names MCP tools mcp__drawio__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__drawio__create_diagram",
      "mcp__drawio__create_semantic_diagram",
      "mcp__drawio__open_drawio_xml",
      "mcp__drawio__open_drawio_csv",
      "mcp__drawio__open_drawio_mermaid"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.drawio]
url = "https://mcp.draw.io/mcp"

Checklist

  • Do not put secrets or customer data in diagrams sent to the hosted endpoint.
  • Self-host the app server if diagrams are confidential, and set AUTH_TOKEN on shared machines.
  • Set DRAWIO_ICON_SERVICE_URL=off when self-hosting for strict isolation.
  • Bind Docker to 127.0.0.1 only.

Checked against the vendor documentation on November 25, 2026. jgraph/drawio-mcp README · README raw text: tools, auth, data flows

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing