drawionotator
Enables AI agents to open, view, annotate, and edit draw.io/diagrams.net diagram files, with shape- and area-level comments, XML edits, and automatic reload of the rendered diagram.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.

drawionotator is a desktop viewer for .drawio files that sits next to your coding agent (Claude Code, GitHub
Copilot, …). Click a shape and type what should change – the comment goes to the agent over the
Model Context Protocol with the cell's id, label, style, bounds and line in
the file. The agent edits the XML, and the diagram reloads by itself. It is the draw.io sibling of
PDFnotator and shares its architecture.
Quick start
Build & install (see Development), or run
npm run tauri dev.Connect your agent once – click the agent chip in the title bar and copy the ready-made command, or:
# macOS claude mcp add --scope user drawionotator -- /Applications/drawionotator.app/Contents/MacOS/drawionotator --mcp code --add-mcp '{"name":"drawionotator","type":"stdio","command":"/Applications/drawionotator.app/Contents/MacOS/drawionotator","args":["--mcp"]}' copilot mcp add drawionotator -- /Applications/drawionotator.app/Contents/MacOS/drawionotator --mcpSay “open in drawionotator” in your agent chat. That's it.
Drawing and commenting
One tool palette on the left does both:
Draw – rectangle, rounded rectangle, ellipse, diamond, triangle, hexagon, parallelogram, cylinder, cloud, document, note, person, container, text, and line, arrow, double arrow, elbow connector, curved connector. Drag on the canvas to draw (
⇧: square / 45°), click for the default size. A line that starts or ends on a shape is connected to it. Double-click a tool (orQ) to keep it.Agent (bottom of the palette) – comment on a shape (
C, then click;⇧-click adds shapes; with a selectionCcomments on it right away), comment on an area (⇧C, drag; the agent gets a screenshot and the cells inside), sketch (P, from PDFnotator: draw freehand, arrows, rectangles and typed notes in red over the diagram, then just start typing;⇥switches the shape,⌘Ztakes back a stroke; the agent gets the screenshot with and without the sketch and, per stroke, the cells it circles, crosses or points at), message to the agent (/). In the comment box⇥switches to Rename or Delete (asks the agent to do it).Style bar on top – line colour, fill colour (or none), line width, line pattern, arrow heads, rounded corners, opacity, font size and colour. With a selection it changes the selection; without one it sets the style of the next shapes you draw.
draw.io's handles to move, resize, rotate and reconnect, the blue hover arrows to connect and clone, in-place text editing, and a format panel (Style · Text · Arrange · Diagram) for the details.
Groups like in draw.io:
⌘Ggroups the selection (⇧-click adds shapes), a click selects the group, a second click the shape inside;⇧⌘Uungroups. Comments on a group tell the agent what it contains.Context menus and the page bar (add, rename, duplicate, move, delete). Right-click a tab to copy its path (
⌥⌘C), file name or a ready prompt for the agent, reveal it in Finder, open it in the default app (e.g. draw.io desktop), or close it, the others, the ones to the right or all.
Keys | Action |
| Select · hand |
| Rectangle · ellipse · diamond · text |
| Line · arrow · elbow connector |
| Comment on a shape · on an area · sketch · message |
| Edit the label |
| Undo · redo |
| Copy, cut, paste (draw.io compatible) · duplicate |
| Delete · delete with connections |
| Group · ungroup · to front · to back |
Arrows ( | Move |
| Bold, italic, underline · edit style |
| Align |
Space + drag · scroll | Pan |
Pinch · | Zoom · fit |
| Pages · tabs |
Changes are saved automatically (like draw.io desktop), uncompressed with one cell per line. If the agent changes the file while you have unsaved edits, drawionotator asks whether to keep your version or reload. The agent is told which cells you changed (“The user edited the diagram themselves (cells …) — re-read the file”) with its next result, so it never overwrites your work from memory.
The status chip shows who is listening (“Claude Code listening”). Comment badges sit on the shapes until the agent resolves them; the cells the agent changed flash green after each reply. If an edit breaks the file (invalid XML, duplicate ids, edges pointing nowhere), the viewer keeps showing the last valid version and the agent is told what to fix.
Related MCP server: drawio-live
What the agent sees
## [c3] page 1 "Overview" · 1 cell(s)
- vertex `orders` "Order Service ⏎ Java 21" (line 22) at (610, 150) 140×60 in cluster "Kubernetes cluster"
· style: rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;
Make this bigger and blueMCP tools
Tool | Purpose |
| Open a |
| Block until the user comments; returns compact comments (+ small screenshots for areas) |
| Full details of delivered comments (complete styles, all cells of an area, full-res image) |
| Show a message, resolve comment ids, flash |
| Validity, pages, current page, queued comments and all open diagrams |
Plus a review prompt. Clients that declare the MCP Tasks extension (io.modelcontextprotocol/tasks) get
wait_for_feedback as a task (taskSupport: "required"): the wait runs in the background for up to 9 minutes
and the client polls tasks/get, so no request timeout cuts the review loop short. Everyone else gets a normal
blocking call (50 s by default, with notifications/progress keep-alives). Supported protocol revisions:
2024-11-05 … 2025-11-25 via initialize, and the stateless 2026-07-28 revision (server/discover).
Development
Requirements: Rust (stable), Node ≥ 20, and the Tauri prerequisites.
npm install # also fetches draw.io's viewer into public/vendor (Apache-2.0)
# (run `node scripts/fetch-viewer.mjs` if your npm skips install scripts)
npm run tauri dev # run the app
npm run dev # UI only, in a browser, with a scripted demo agent (src/demo.ts)
npm run check # typecheck, lint, vitest, rustfmt, clippy, cargo test
npm run test:ui # UI tests in WebKit + Chromium (npx playwright-core install chromium webkit)
npm run coverage # unit + UI test coverage
npm run demo:record # re-record docs/demo.mp4 and docs/demo.gif (needs ffmpeg)
npm run tauri build # bundleDiagrams are rendered by draw.io's own Graph from viewer-static.min.js, so shapes look exactly like in draw.io.
The script is downloaded by scripts/fetch-viewer.mjs on install and bundled with the app; only rare stencils
are loaded from viewer.diagrams.net on demand.
Variable | Meaning |
| Local HTTP port (4757) |
| Other draw.io viewer build |
See docs/ARCHITECTURE.md for how the pieces fit together.
License
ISC. draw.io's viewer (fetched at install time) is © JGraph Ltd, Apache License 2.0.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Design tool for agents: draw, edit and check designs in files your team edits and comments on.
Software diagrams for developers, teams and agents — give your AI agents diagramming superpowers.
Comment.io lets people and trusted agents work on the same files. Review edits and comments in the browser, manage structured data with DocDB, and build apps over your workspace. Connect your preferred agent through a single run tool using OAuth and Streamable HTTP.
Comment on AI-generated webpages; feedback flows back to your coding agent. Free, MIT, local-first.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI agents to programmatically create, modify, and analyze Draw.io diagrams through the Model Context Protocol. Supports generating architectural diagrams, flowcharts, and visualizations with bidirectional communication between AI systems and Draw.io.131,504MIT
- AlicenseNot gradedqualityCmaintenanceLaunches/connects to the visible draw.io desktop editor and edits its active graph model in real time, allowing AI agents to draw scientific figures step by step.1,474MIT
- AlicenseAqualityDmaintenanceEnables AI agents to generate and edit draw.io diagrams with real-time browser preview.556 npmApache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create and edit diagrams in the draw.io desktop app through the Model Context Protocol.Apache 2.0