v0.1 released

Draw diagrams with your AI — right on your machine.

A local, zero-dependency Draw.io MCP server in Go. Plug it into any MCP-compatible AI client and let your assistant create, edit, and export diagrams — all over stdio, no cloud required.

Built for local-first AI diagramming

Everything runs on your machine. No servers, no telemetry, no accounts.

🏠

100% local

Single static binary. Your diagrams never leave your machine — no cloud backend, no account needed.

🔌

Any MCP client

Implements the Model Context Protocol over stdio. Works with Claude Desktop, Cursor, Cline, WorkBuddy, and more.

⚡

Tiny & fast

Stripped Go binary, ~3–4 MB per platform. Instant startup, zero runtime dependencies.

👁️

Live preview

Built-in browser preview renders diagrams in real time. Refine with follow-up edits until it's perfect.

🛠️

Full tool set

14 MCP tools covering session lifecycle, diagram CRUD, page management, shape libraries, and export.

🎯

Routing-aware

Bundled skill package lets your AI assistant pick the right tool at the right time — no manual prompting.

Simple architecture

Three pieces, one stdio pipe. That's it.

🤖
AI Client
Claude, Cursor, Cline…
→
⚙️
draw-io-gomcp
Go · stdio · local
→
📊
Diagram & Preview
.drawio · browser

MCP JSON-RPC over stdio → Go processes locally → draw.io XML + live preview

Get started in minutes

Three steps from download to first diagram.

1

Download the binary

Grab the build for your platform from the Releases page, or build from source with go build -o draw-io-gomcp ./cmd/server.

2

Register in your MCP client

Add the server to your client's MCP config file. The exact location varies — here's the shape:

{
  "mcpServers": {
    "draw-io": {
      "command": "/absolute/path/to/draw-io-gomcp",
      "args": []
    }
  }
}
3

Start a session & draw

Trust the server in your client, start a new conversation, and ask: "Draw a sequence diagram of a login flow."

14 MCP tools, fully typed

Every tool ships with clear "when to use" / "when not to use" hints, error codes, and tier annotations.

start_session Open the live browser preview write
get_guide Load only needed drawing sections read
get_drawing_guide Legacy full-text guide read
get_shape_library List vendor shape libraries read
create_new_diagram Replace document from XML destructive
load_diagram Open .drawio file from disk destructive
edit_diagram Add / update / delete cells write
get_diagram Read current diagram XML read
screenshot_diagram Render diagram to PNG read
export_diagram Save as .drawio / .png / .svg write
list_pages List all pages in document read
add_page Append new tab write
rename_page Rename existing tab write
delete_page Remove tab (keeps 1) destructive

Prebuilt for every major platform

Download, unzip, run. No compilation needed.

🍎
macOS arm64
Apple Silicon · M1/M2/M3
Download →
💻
macOS amd64
Intel Mac
Download →
🐧
Linux amd64
x86_64 · glibc
Download →
🐧
Linux arm64
aarch64 · Raspberry Pi 4+
Download →
🪟
Windows amd64
x86_64 · 10 / 11
Download →

Start diagramming with AI today

v0.1 is out — grab a binary, plug it into your MCP client, and ask your assistant to draw something.