drawloop
Provides a live Excalidraw board and tools to draw, update, erase, inspect, export, and share diagrams while syncing user edits back to the agent.
Converts Mermaid diagram text into editable Excalidraw shapes on the board.
Exports the board to a standalone SVG file.
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.
drawloop
A live Excalidraw board your coding agent draws on, with a chat beside it.
You edit the drawing by hand and write what you want. The agent receives your message, the shapes it points at, and a list of every edit you made.

How it works
The agent calls
draw. The shapes appear on your board as it draws.You change the board. Drag a box, sketch over it, delete an arrow, or select a shape and press "Note to agent" to write about it.
You press Send. The agent's
pollreturns your notes and your edits as plain sentences.The agent updates the same shapes in place and replies in the chat.
Your edits are applied to the board the moment you make them. The agent does not redraw the diagram to pick them up. It reads what changed and continues from there.
This is what the agent gets from one Send:
{
"status": "feedback",
"messages": [
{ "text": "Add a read replica next to this", "about": ["ellipse \"Postgres\" (db) at (620, 350)"] }
],
"canvas_edits": [
"Moved diamond \"Queue\" (queue) by (+10, +50) to (350, 390)",
"Added rectangle \"Cache\" (k3f9) at (441, 607) 267x167",
"Deleted arrow (a7)"
],
"next_step": "Apply this feedback with draw and erase. Then call poll again with reply ..."
}Related MCP server: excalidraw-mcp
The panel
The panel on the right has three tabs and collapses to a narrow strip with Ctrl+I (Cmd+I on a Mac). The strip still shows new replies, unsent notes and issue counts.
Chat. Notes attach to the shapes you have selected. Queue several, then send them together. Paste or drop an image and the agent receives it as a file. When the agent asks a question it can offer answers as buttons.
Issues. The board checks every change for labels that do not fit, overlapping shapes and arrows that cross a shape. Pick the ones you care about and they become a note. Nothing here reaches the agent until you send it.
History. The board keeps the version from before each round of agent work. Restore one and the agent is told what you undid.
"End the session" in the panel menu makes the agent's poll return with an instruction to stop waiting.
Install
drawloop needs Node 20 or newer.
git clone https://github.com/amrtawfik160/drawloop
cd drawloop
npm install # also builds the web app
npm link # puts `drawloop` on your PATHTo run it without cloning, replace drawloop with npx -y github:amrtawfik160/drawloop in any command below. The first run takes about half a minute while it builds.
Connect your agent
Use either way. Both drive the same board with the same operations.
MCP
Claude Code:
claude mcp add drawloop -- drawloop mcpAny other MCP client:
{
"mcpServers": {
"drawloop": { "command": "drawloop", "args": ["mcp"] }
}
}CLI and skill
drawloop install-skill # copies the skill to .claude/skills/drawloop
drawloop install-skill ~/.codex/skillsThe skill tells the agent to run drawloop guide, which prints the workflow.
Then ask your agent for a diagram: "Draw the architecture of this service on the drawloop board." The board opens at http://127.0.0.1:4747.
Commands
The MCP tools and the CLI commands have the same names and arguments.
Command | What it does |
| Prints the workflow and the element format |
| Opens a board and returns its URL. The board is that |
| Adds elements, or changes existing ones by id. |
| Searches and installs icon libraries from the Excalidraw collection |
| Deletes elements by id, or the whole board |
| Returns the board as text, and as a PNG with |
| Converts Mermaid text into editable shapes |
| Scrolls your view to elements |
| Waits for your next Send and returns your notes, images and edits |
| Posts a message from the agent in the chat. |
| Writes the board to a file: a standalone HTML page, SVG or PNG |
| Creates a link on another service: an Excalidraw link or a public page |
| Saves, restores or lists named copies of the board |
| Writes the board to a |
drawloop open docs/architecture.excalidraw
drawloop draw '[{"id":"api","type":"rectangle","x":100,"y":100,"label":"API"},
{"id":"db","type":"ellipse","x":420,"y":100,"label":"Postgres"},
{"type":"arrow","from":"api","to":"db","label":"SQL"}]'
drawloop poll --reply "Drew the API and its database."Layout is done for you
An agent placing 50 shapes by coordinates produces clipped labels and arrows through boxes. With layout, the agent lists shapes, frames and arrows, and drawloop places them with the ELK layout engine.
drawloop draw --layout right '[
{"id":"region","type":"frame","name":"us-east-1"},
{"id":"clients","type":"rectangle","label":"Clients"},
{"id":"api","type":"rectangle","label":"API","frameId":"region"},
{"id":"db","type":"ellipse","label":"PostgreSQL","frameId":"region"},
{"type":"arrow","from":"clients","to":"api","label":"HTTPS"},
{"type":"arrow","from":"api","to":"db","label":"SQL"}]'Frames wrap their members, shapes grow to fit their labels, and arrows take right-angle routes. Excalidraw reroutes those arrows when you drag a shape. After every draw the agent also gets warnings for anything that still overlaps or hides a label.
Icon libraries
The public Excalidraw library collection has more than 200 libraries: AWS, Azure, Google Cloud, Kubernetes, UML, network gear, people, devices and more. An agent can search it, install a library and draw its icons by name.
drawloop library top # recommended libraries by topic
drawloop library install --topic aws # every recommended library for a topic
drawloop library search "lambda"
drawloop draw --layout right '[
{"id":"api","type":"icon","icon":"childishgirl/aws-architecture-icons/API Gateway","label":"Public API"},
{"id":"fn","type":"icon","icon":"Lambda","label":"Resize images"},
{"type":"arrow","from":"api","to":"fn","label":"invoke"}]'library toplists 13 topics: aws, google-cloud, azure, kubernetes, system-design, patterns, logos, people, icons, wireframes, charts, uml and data-structures. Every library in it was checked to have named items, so an agent can pick an icon by name.drawloop guide iconstells the agent when an icon beats a plain shape and how to pick one.An icon behaves like a shape. Arrows attach to it, layout places it, and it moves as one piece.
An installed library also appears in your own Library panel, so you can drag the same icons onto the board.
Libraries are downloaded from libraries.excalidraw.com on
installand kept in~/.drawloop/libraries. drawloop ships none of them. Each belongs to its author, named in the result ofinstall.
Share and export
Open "Share or export" in the panel menu, or let the agent do it.
What | Command | Where the drawing goes |
A standalone HTML page with pan and zoom |
| A file on your machine. It works offline and can be hosted anywhere |
SVG or PNG |
| A file on your machine |
A link that opens in Excalidraw |
| An encrypted copy on excalidraw.com. Anyone with the link can open it and edit their own copy. It cannot be deleted |
A public view-only page |
| ht-ml.app, a separate hosting service. Anyone with the link can see it |
drawloop share page --password <word>puts the page behind a password.Publishing again updates the same address.
drawloop share unpublishtakes the page down.The HTML page keeps HTML cards live. A PNG, an SVG and an Excalidraw link show them as empty boxes.
The agent's guide tells it to run
shareonly when you ask for a link.
Boards are files, and there can be many
drawloop open docs/architecture.excalidraw makes that file a board. Every change by you or the agent is saved to it, so the diagram lives in your repo and opens in Excalidraw or the Excalidraw plugin for Obsidian or VS Code.
One server holds any number of boards. Each file has its own URL, its own chat and its own waiting agent, so two agents in two projects never see each other's board.
An agent's calls go to the board it opened last.
--board <file>(orboardover MCP) sends one call to another board.The panel menu lists the other open boards.
drawloop statuslists every board with its URL.
The chat stays out of the repo, in ~/.drawloop/state.
HTML on the canvas
An element of type html puts a live web page on the board. Use it for a table, a chart or a UI mockup next to the diagram.
drawloop draw '[{"type":"html","x":640,"y":100,"width":420,"height":300,
"html":"<h2>p95 latency</h2><p>212 ms</p>"}]'The page runs in a sandboxed frame. You can move, resize and annotate it like any shape. Click it once to interact with it.
Settings
Variable | Default | Meaning |
|
| Port of the board server |
|
| Where the default board, the chat and the server log are kept |
| none | Extra hostnames the server answers to, comma separated. Needed behind a reverse proxy or tunnel |
| none | The base URL to give the user when it differs from the local one |
| none | The board an agent uses when it has not opened one |
| unset | Set to |
| unset | Set to |
Open the board from another device
The server listens on your machine only. To reach it from a phone or another computer on your Tailscale network, proxy it and tell drawloop its outside name:
tailscale serve --bg --https=4747 http://127.0.0.1:4747
DRAWLOOP_ALLOWED_HOSTS=my-machine.my-tailnet.ts.net \
DRAWLOOP_URL=https://my-machine.my-tailnet.ts.net:4747/ drawloop serveAny reverse proxy works the same way. A request under a hostname that is not in DRAWLOOP_ALLOWED_HOSTS is refused.
Limits
lookwith an image andmermaidneed the board open in a browser tab, because Excalidraw does the rendering.lookas text works with no tab.An HTML card shows as a placeholder box in a PNG.
The server listens on your machine only. It has no accounts and no sharing.
The network is used only by
library(libraries.excalidraw.com) andshare(excalidraw.com or ht-ml.app), and only when one of them is run.exportto HTML, SVG or PNG andshare pageneed the board open in a browser tab.
Credits
drawloop combines two ideas and is built on Excalidraw. See NOTICE.md.
lavish-axi for the review loop: a chat beside the work, notes attached to what they are about, and a long poll that hands them to the agent.
mcp_excalidraw for the live canvas an agent edits element by element.
How the parts fit together is in docs/architecture.md.
License
MIT
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
A shared Excalidraw board that people and agents draw on together
Online whiteboard your AI agent draws on: live shared canvases, solo or with your team.
Real-time collaborative whiteboard — AI agents and humans edit the same board live over MCP.
Create, read and live-edit visual boards, Kanban plans, Gantt timelines and diagrams with AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to programmatically generate, edit, and view Excalidraw diagrams with real-time browser synchronization. It provides a suite of tools for adding shapes, text, and arrows to diagrams through natural language interactions.11102MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create and manipulate live visual diagrams on an Excalidraw canvas in real-time via MCP tools.21 PyPI15BSD 3-Clause
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to collaboratively draw and annotate Excalidraw diagrams in real-time via MCP tools, synced to a browser canvas.11Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, modify, and share diagrams on a live Excalidraw canvas through MCP tools, supporting shapes, text, arrows, batch operations, and export to shareable links with images.8MIT