isodia
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.
isodia-mcp
Isometric architecture diagrams that agents and people draw together: an MCP server, a browser canvas, revision history and share links, over one model.
New here? Start from a fresh checkout. Run the editor, explore a sample diagram, and preview a three-step article walkthrough.
I want to… | Start here |
Open a diagram someone sent me | |
Draw, export, or share a diagram | |
Link to or embed a walkthrough in an article | |
Host Isodia for other people | |
Run Isodia on Cloudflare without a server | |
Draw with an agent |
End-to-end demo

An MCP client builds the storefront and creates a focused checkout view.
In the editor, a person moves a component, searches for icons, opens revision history, and exports the checkout view as a PNG.
A reader opens a live, read-only share and clicks Orders to read its notes.
The author publishes a versioned snapshot. A reader opens a link to step 2, explores the payment provider, and returns to the guided focus.
Recorded in the real app with scripts/record-demo.ts. The captions and
pointer are recording overlays. See the editor and sharing guide and the
walkthrough publication guide to try the same workflow.
The same diagram as the renderer exports it, from one build_diagram call
(examples/storefront.ts); the layout, routing and artwork are isodia's:

Everything that draws or changes a diagram is this project's own: the model rules, the layout engine, the renderer, the canvas and the icon set. Diagrams are stored in the open Isoflow model format, so files move between isodia and other tools that read it; isodia includes no Isoflow code and is not affiliated with it.
The canvas is one surface; the product is the model, the history and the agent interface. Agents create, lay out, edit and render diagrams through MCP, and people get the same diagrams in a browser with autosave, revision history and read-only share links. A person's edit on the canvas and an agent's edit over MCP are the same operations, and the canvas is drawn by the same renderer that exports the pictures.
Quick start
Install Bun and Node.js 22.12 or newer. In one terminal, install dependencies and start the API:
bun install --frozen-lockfile
bun run dev:apiLeave it running on port 4400. In a second terminal, start the editor:
bun run dev:webOpen http://localhost:4401. To use other ports, see Use different local ports.
For a single-origin deployment, build the web app once and let the API serve it:
bun run build # writes dist/
bun start # serves the app and the API togetherThe build is a normal deploy step, so run it in CI or at release time.
Docker
docker build -t isodia-mcp .
docker run -p 4400:4400 -v isodia-data:/data \
-e ISODIA_TOKEN="$(openssl rand -hex 32)" \
-e ISODIA_URL=https://diagrams.example.com isodia-mcpSet ISODIA_URL to the address clients reach, not localhost. MCP uses this address in its
editor and share links. Projects live in /data/isodia.db, so
mount a volume or they are lost with the container; the image runs as the unprivileged bun user
and the volume is created with the right ownership. The image listens on all interfaces
(HOST=0.0.0.0), so it refuses to start without ISODIA_TOKEN, the bearer token the API and
the HTTP MCP endpoint then require.
The base image must be glibc, because @resvg/resvg-js ships a prebuilt native binary and does
not run on musl; the provided image is Debian-based, and most of its size is the Bun base. The
runtime stage installs production dependencies only, and the build fails unless that install can
check a model and render a picture.
Cloudflare
Isodia also runs as one Cloudflare Worker: the web app as static assets, and projects in one
SQLite-backed Durable Object. There is no stdio MCP there, and pictures have no fallback fonts
for scripts outside IBM Plex. See docs/cloudflare.md for setup, deploys,
data and rollback.
Related MCP server: Excalidraw Architect MCP
Connect an agent
MCP lets an agent call Isodia's diagram tools. Choose one connection method. The editor's Agent panel shows both configurations. Use your MCP client's settings to add a server. The examples below use a common JSON format. Your client may use different keys or a settings form.
stdio, for a client on the same machine. The client starts its own Isodia process:
{
"mcpServers": {
"isodia": {
"command": "bun",
"args": ["/absolute/path/to/isodia-mcp/src/server/mcp-stdio.ts"],
"env": { "ISODIA_URL": "http://localhost:4401" }
}
}
}Replace the script path with the absolute path to your checkout. Set ISODIA_URL to the origin where you open the editor. If the web instance uses a custom ISODIA_DB, add the same absolute database path to env. Set these in the client configuration so they reach the process even if the client filters your shell environment. The stdio process can draw without a web server, but its browser links need the editor to be running.
HTTP, for a running server. This is the direct MCP endpoint for the default dev API:
{ "mcpServers": { "isodia": { "type": "http", "url": "http://localhost:4400/mcp" } } }In development the Agent panel may show http://localhost:4401/mcp. Vite forwards that endpoint to the same API. For a hosted instance, use its reachable HTTPS URL with /mcp. If the server requires ISODIA_TOKEN, configure your HTTP client to send it as an Authorization: Bearer header.
First diagram with an agent
Connect the client and check that it lists Isodia tools. Ask it to run
list_projectsto check the connection. An empty list is normal for a fresh database.Ask the agent to make a test diagram. For example: “Create a project named Event processing. Show Collector → Buffer → Processor. Add a note on why the buffer is there. Give me a PNG and an editor link.”
Check that the agent uses
create_projectandbuild_diagram. Open the link returned bybuild_diagramand check the view, both connections, and the Buffer note.Have the agent run
render_diagramwithformat: "png". Inspect the image before calling it done.
If the link opens the API port and returns 503, check that the server uses bun run dev:api, or set ISODIA_URL to the editor's origin. For stdio, make that change in the client configuration. Reconnect the client and ask for a new link with list_projects.
Tools
Tool | Purpose |
| Project lifecycle |
| Read a view: items with tiles, connectors, regions, text |
| Replace a view with nodes/edges/groups, laid out automatically |
| Atomic batch of edits: add, place, update, move, remove, connect, regions (draw, retitle, move with contents), text, |
| Create, rename, copy or delete views |
| Find icon ids in the bundled set by keyword ( |
| PNG image or SVG source of a view |
| History |
| Create, list and revoke read-only share links |
| Model JSON (Isoflow format) in and out |
render_diagram returns a picture an agent can inspect if its client supports images. If not, a person can download and open the PNG in the editor's Export panel.
Revision history keeps the newest 100 revisions, the original import and any revision named with
save_checkpoint; older unnamed autosaves are pruned so storage stays bounded. Each revision is a
full model snapshot, so name the ones worth keeping.
bun scripts/mcp-demo.ts # every tool over stdio, with a real MCP client
bun scripts/mcp-http-demo.ts # the same over the HTTP endpoint
bun scripts/registration-check.ts # handshake against the stdio entry pointexamples/busy.ts is a worked example against a real repository: it builds five views
(deployment, message path, durable work, trust boundaries, repository map) through the MCP
server, saves a checkpoint and writes an SVG and a 1600 px PNG per view plus the model JSON.
--png-only skips the SVGs, which embed the icon artwork and are large. It runs against a live
server and recreates its own project each time:
PORT=4410 ISODIA_DB=/tmp/busy-docs.db bun src/server/index.ts &
bun examples/busy.ts --url http://127.0.0.1:4410 --out /tmp/busy-diagramsModel and layout
A project is one model: a shared list of items (name, icon, description) plus one or more views that place those items on a tile grid. So "the same systems, for a different audience" is a second view, not a second diagram.
build_diagram lays out a graph: edges flow from the upper left toward the lower right, each
group becomes a titled coloured region. The layout reserves a row for the title. This does not
prevent every overlap, especially after you move items. Use edit_diagram for local changes.
The renderer places connector labels along their routes and looks for open space around them. Short or crowded routes can still leave labels partly hidden. Inspect the render after automatic layout and after edits.
Every change is checked against the model schema (src/core/schema.ts) before it is stored:
whole-number tiles, unique ids, and every reference to an item, icon, colour or anchor resolved.
A model that cannot be drawn cannot enter the database.
Icons
The bundled icons are generic nouns (server, database, queue, user, gateway…) drawn as
uncoloured isometric paper models and generated from code in src/core/iconset/. There are no
vendor logos: name the product in the item's label. Search answers to the names people use, so
postgres, s3 or lambda find the right noun. A model can carry its own icons in icons
(any image as a data URI); they travel with the model and win over a bundled icon of the same
id. bun scripts/icon-sheet.ts --out sheet.png renders the whole set.
The canvas
Tools are words in one bar: Select (click, drag to move, drag empty space to pan),
Connect (click one item, then another), Region (drag across tiles), Text (click a
tile), then Add item, Undo, Redo and Tidy (lay the view out again). The
selection's properties appear beside it and are shown on the canvas as you type. Dragging a
region moves what stands in it; a selected region resizes by its corner handles. The wheel pans,
Ctrl or Cmd with the wheel zooms. Keys: V C R T I, Del, Esc, Ctrl+Z,
Ctrl+Shift+Z. A share page is the same canvas, read-only: clicking an item shows its name and
notes.
Published walkthroughs
A technical article can link to, or embed, a read-only walkthrough of an architecture: a few
ordered steps, each with prose, a view and an optional focused component, that readers can
follow, leave to explore the other published views, and return to. A walkthrough is a reviewed,
versioned snapshot file, prepared from an exported model and a short manifest, that the server
reads from ISODIA_WALKTHROUGHS_DIR; it never exposes the live project. Only the article's own
origin may embed it.
bun scripts/prepare-walkthrough.ts docs/sample/walkthrough/checkout.isoflow.json \
docs/sample/walkthrough/checkout.walkthrough.json /tmp/checkout-architecture-v1.jsondocs/walkthroughs.md covers writing the manifest, reviewing what goes
public, publishing locally and in production, the iframe snippet, local embed previews, and
revising or withdrawing a publication. docs/sample/walkthrough/
is a complete synthetic example with three views and three steps.
Design
One look runs through the app and the pictures it renders: warm paper, one ink, pale washes
for regions, neutral lines, IBM Plex, and a single orange accent kept for what an agent did
and where you are. DESIGN.md has the tokens, the rules for drawing a diagram,
the reasons, and the known debts. The values live in src/core/theme.ts and
web/src/styles.css.
Colours are stored in each model, so a project made before a palette change, or imported from another tool, keeps the colours it was drawn with.
Storage
One SQLite file (WAL, so several processes can share it). On Cloudflare the same tables live in the workspace Durable Object's SQLite database.
projects— the current model and a revision counterrevisions— every saved state, with what made it (editor,mcp,api,import,restore)share_links— tokens granting read access to one project
Editor autosaves collapse into one revision per two-minute burst, so a burst of keystrokes does not bury the history. Agent edits and checkpoints always stand alone.
Optimistic concurrency: the editor saves against the revision it loaded. If an agent changed the
project meanwhile, the save is refused (409) and the browser shows the newer revision.
Configuration
Variable | Default | Meaning |
|
| Interface to listen on. Anything but localhost requires |
|
| HTTP port |
|
| SQLite file shared by all processes |
|
| Public base URL used in links and MCP output |
| unset | When set, the API, |
| unset | Directory of published walkthrough files, read only. Unset turns walkthroughs off; see |
Share links are always public: the token is the credential. That is what makes a shared diagram openable by a client without an account.
Security
Local only by default. The server listens on
127.0.0.1with no authentication, so only programs on this machine can read, change and delete projects through the API and/mcp.Serving other machines needs a token. Setting
HOSTto anything but localhost makes the server refuse to start unlessISODIA_TOKENis set. The Docker image setsHOST=0.0.0.0.Custom icons are inline pictures. An icon
urlmust be adata:image/…URL; file paths and remote addresses are rejected, on import too.A share link is a credential. Anyone holding it can read that project until you revoke it.
A published walkthrough is public. Anyone can read every component, note and label in its views, without a token, until its file is removed; removal does not recall copies already taken. Review the prepared file before publishing it.
Diagram text is user content and is only ever shown as text. Names, labels and notes are escaped by the renderer and reduced to plain text by the canvas; no HTML from a model is inserted into the page. A model's own icons are images shown through SVG
<image>, which does not run scripts.The stdio MCP server has the same access as the user who starts it; it does not check the token.
On Cloudflare, closed until configured. The Worker answers
503on the API and/mcpuntil theISODIA_TOKENsecret is set.
Report vulnerabilities privately through the repository's security advisories, not public issues.
HTTP API
GET/POST /api/projects, GET/DELETE /api/projects/:id, PUT /api/projects/:id/model,
POST /api/projects/:id/build, POST /api/projects/:id/operations,
GET /api/projects/:id/render, GET /api/projects/:id/export,
GET /api/projects/:id/revisions, POST /api/projects/:id/revisions/:n/restore,
POST /api/projects/:id/checkpoints, GET/POST /api/projects/:id/shares,
DELETE /api/shares/:token, GET /api/icons, POST /mcp,
and the public GET /api/shared/:token. When walkthroughs are on, GET /api/walkthroughs/:id,
/w/:id and /w/:id/embed are public as well.
Tests
bun test # unit and integration suites
bun scripts/seed-demo.ts # rebuild the two demo projects the browser check drives
export CHROME_PATH=/usr/bin/chromium # any Chrome or Chromium binary
bun scripts/browser-check.ts # browser smoke test; needs both dev servers
bun scripts/worker-runtime-check.ts # the Cloudflare Worker in workerd; needs dist/ and Node.js 22.18+
bun scripts/mcp-demo.ts # MCP over stdio, end to end
bun scripts/mcp-http-demo.ts # MCP over HTTP, end to endbrowser-check.ts expects the payments-platform and acme-retail-platform demo projects, so run
seed-demo.ts first on a fresh database. Both scripts read API_URL/WEB_URL and default to the
dev ports; the browser check also needs CHROME_PATH. It drives every canvas tool on a scratch
project, checks each edit against what the server stored, and exits non-zero when a step fails
or when a page logs an error, a failed request or an uncaught exception. The only complaint it
expects, and discounts, is the 404 for the share link it revokes.
Both serving modes are covered. Point both variables at a single-origin server to check the
production path, where no proxy sits in front of /api or /mcp:
bun run build
PORT=4500 ISODIA_URL=http://127.0.0.1:4500 bun src/server/index.ts &
API_URL=http://127.0.0.1:4500 bun scripts/seed-demo.ts
WEB_URL=http://127.0.0.1:4500 API_URL=http://127.0.0.1:4500 bun scripts/browser-check.tsCI owns the full build and test gates; bun run build is a deploy step, not part of a code
change.
Notes
Stored models keep only their own icons. Bundled icons are resolved by id when a model is drawn, and embedded on export so the file is complete on its own.
Import and export run through the server, so history and validation always apply.
A model made elsewhere that names an icon it does not carry, and that the bundled set does not have (a vendor icon from another tool's pack, for example), is refused with the icon's name. Embed the icon in the file's
icons, or change the item to a bundled noun.
Licence
MIT, see LICENSE: the code and the icon artwork. The dependencies keep their own
licences, all permissive or weak-copyleft and none modified; NOTICE.md lists
them, and should travel with anything you ship or host.
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
Create and edit architecture diagrams from your AI agent; get an SVG and a live editable canvas.
Create, read and edit architecture, flow and ER diagrams on a live canvas shared with your team.
Software diagrams for developers, teams and agents — give your AI agents diagramming superpowers.
Immutable diagrams for AI agents: create, edit, validate and render versioned diagrams over MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceGenerates editable .drawio architecture diagrams from descriptions or reference images, with secure asset resolution, validation, and revision-based approvals.1162 npm1MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to turn architecture and data into living, queryable knowledge graphs and generate 25 types of hand-drawn, auto-laid-out diagrams that remain editable. It supports natural-language revisions, architecture-aware styling, SVG/PNG export, and fully offline use without API keys.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to turn natural-language descriptions of systems, flows, and data into 25 types of hand-drawn Excalidraw diagrams with automatic layout and architecture-aware styling, then revise them conversationally and export to SVG or PNG. It can also persist a system as a version-controlled, queryable architecture knowledge graph, running fully offline without API keys.-
- FlicenseNot gradedqualityAmaintenanceEnables users to turn architecture into a queryable knowledge graph and produce editable, hand-drawn, auto-laid-out diagrams across 25 types, with natural-language revisions and SVG/PNG export. It runs fully offline without API keys.-