Comparison

Self-hosted draw.io alternative for teams using coding agents

If your team already runs draw.io and wants an agent to edit diagrams, there is an official draw.io MCP server. If you want the diagram to be data an agent edits through typed operations, on your own server with no outbound connection, Draughtsman is built for that. This page says where they differ and where draw.io is the better fit.

Facts about other products

The claims about draw.io and Excalidraw below come from their own repositories and pages, read on 21 October 2026, and are linked. Check them before relying on them: both projects change.

What each one is

  • draw.io (diagrams.net) is a diagram editor. Its maintainers publish a Docker image, jgraph/drawio, whose README describes it as a test version for evaluating draw.io and says a paid version is available for production deployments (jgraph/docker-drawio). They also publish an MCP server (jgraph/drawio-mcp, Apache-2.0).
  • Excalidraw is a hand-drawn-style whiteboard. Its MCP server (excalidraw/excalidraw-mcp, MIT) streams diagrams into MCP Apps clients and can be run locally or deployed to your own Vercel project.
  • Draughtsman is a diagram server. A diagram is a typed graph of nodes and edges with a lossless text form, stored in SQLite or Postgres you run. The MCP server is part of the same binary. It is AGPL-3.0, with a commercial licence sold by email.

How an agent works with each

draw.io MCPExcalidraw MCPDraughtsman
Where it runsA hosted URL (mcp.draw.io), or run it yourself with Node, the jgraph/drawio-mcp Docker image or Cloudflare WorkersA hosted URL (mcp.excalidraw.com), a local build or bundle, or your own Vercel deploymentYour server only: one container or one archive
What the agent producesdraw.io XML or Mermaid, through create_diagramExcalidraw drawings (the README gives example prompts and lists no tools)A typed graph, as DSL, Mermaid, SQL DDL, draw.io, Visio or JSON
Editing an existing diagramThe README lists three tools: create_diagram, search_shapes, get_drawio_referenceNot described in the READMEAddressable operations (addNode, updateEdge, restyle and others); an unknown operation fails the whole patch and writes nothing
History and reviewNot part of the MCP serverNot part of the MCP serverVersions with compare and restore; diff_documents; draughtsman diff writes plain sentences for pull requests
ChecksNone listedNone listedcritique_document returns structural findings with element ids
Data leaving your networkThe hosted server receives the diagram; self-hosting keeps it local; rendering loads viewer code from draw.io hosts by default (per the README)The hosted server receives what the agent sends; local or your own deployment avoids thatNothing in a default install: no telemetry, no update check and no licence check; the pages and fonts are served by your server

The draw.io and Excalidraw cells are what their READMEs say, not a test of either product. We have not run their servers against Draughtsman's.

Where draw.io is the better fit

  • Existing diagrams and libraries. Draughtsman imports draw.io files and lists what it drops: stencil icons, data links and most styling do not survive. It has about 40 generic technology icons and no AWS, Azure or Google Cloud packs, and no custom shape libraries.
  • Maturity. Draughtsman is version 0.1.0 from one vendor. Weigh that against a project with a longer public record.
  • Real-time collaboration. Draughtsman has none. Two open editors merge each other's changes by polling about once a second, which is not co-editing. There are no per-document permissions: every signed-in person can read, overwrite and delete every diagram.
  • Single sign-on. Not built. Local accounts and API tokens only.

Where Draughtsman fits

  • The diagram is a model, not a picture. An agent reads the outline or the DSL, patches named nodes and edges, and the server checks that nobody wrote in between.
  • Reviewable changes. Diagrams are text you commit; draughtsman diff says what changed in sentences that use labels.
  • No outbound connection. It starts and works with networking removed (docker run --network none), which you can check yourself; see Air-gapped installs.
  • Leaving is easy. Export DSL, JSON, Mermaid or SVG. It does not write draw.io, Visio or Lucidchart files.

Try it

git clone https://github.com/overpassapps/draughtsman.git && cd draughtsman
docker compose up -d --build
docker compose logs draughtsman | grep "setup code"

Then open http://localhost:5180. To bring in a draw.io file, see Moving from draw.io, Visio and Lucidchart. To connect an agent, see Agents and MCP.