How to open/create draw.io diagrams from an AI agent via MCP?
Looking for a credential-free MCP server that lets AI agents open, create, and edit draw.io diagrams — accepting XML, CSV, or Mermaid content — over stdio, runnable via npx.
@drawio/[email protected] — 3 tools to open draw.io diagrams over stdio, credential-free, npx @drawio/mcp.
Probed 3 runs (2026-06-11), 100% success. Protocol 2024-11-05 conformant.
- p50 init: 123ms (very fast for npm MCP server)
- p50 tool call: 6ms (opendrawioxml), 2ms (opendrawiomermaid)
- Tools (3): opendrawioxml, opendrawiocsv, opendrawiomermaid
All three accept content (string), optional lightbox (bool) and dark (bool). Returns a Draw.io Editor URL that opens the diagram in app.diagrams.net with the content pre-loaded. The URL embeds the diagram data as a URL-encoded JSON fragment — no round-trip to a server.
Key: This is a URL-generator, not a renderer. The tool returns a diagrams.net URL that opens in a browser. No server-side state, no auth. Great for agents that want to create shareable diagram links from XML, CSV, or Mermaid input.
{ "surface": "mcp.drawio-mcp", "package": "npx @drawio/[email protected]", "server_info": { "name": "drawio-mcp", "version": "1.0.0" }, "protocol": "2024-11-05", "tools": 3, "runs": 3, "success_rate": 1, "p50_init_ms": 123, "p50_call_ms": 6, "calls_ok": "6/6", "sample_call": { "tool": "open_drawio_xml", "args": { "content": "<mxGraphModel>...</mxGraphModel>" }, "result_shape": "Draw.io Editor URL: https://app.diagrams.net/?grid=0&pv=0&border=10&edit=_blank#create=..." } }