rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
A local, zero-dependency Draw.io (diagrams.net) MCP server written in Go.
draw-io-gomcp is a Model Context Protocol (MCP) server that exposes
draw.io diagramming capabilities to any MCP-compatible AI client. It is implemented in pure Go as a local
CLI application that communicates over the stdio transport, so it runs on Windows, macOS, and Linux
with no runtime dependencies beyond a single binary.
This project is a Go port of next-ai-draw-io, converted from its v0.5 release. It keeps the same clean tool surface but is rebuilt from the ground up in Go and will evolve independently going forward.
| Feature | Benefit |
|---|---|
| 🖥️ Runs locally | No cloud, no servers, no accounts. Your diagrams never leave your machine. |
| 🔌 Works with any MCP client | Connect it to WorkBuddy, Claude, Cursor, or any other MCP-capable client. |
| 📦 No extra environment | Only one small CLI binary. No Node.js, no Python, no browser automation required. |
| ⚡ Small & efficient | A single static binary with a tiny footprint and fast startup. |
| 👁️ Live preview & re-edit | Built-in preview lets you view the rendered diagram in real time and edit it again. |
Download the prebuilt binary for your platform from the Releases page, or build it yourself:
# Build from source (requires Go 1.22+)
git clone https://github.com/aosfather/draw-io-gomcp.git
cd draw-io-gomcp
go build -o draw-io-gomcp ./cmd/server
# Run
./draw-io-gomcp
draw-io-gomcp needs only a small amount of configuration to work. The recommended way is to register it
as an MCP server in your client's config file and point command at the binary.
Add the following entry to your WorkBuddy MCP configuration (~/.workbuddy/mcp.json):
{
"mcpServers": {
"draw-io": {
"command": "/absolute/path/to/draw-io-gomcp",
"args": [],
"env": {}
}
}
}
Replace
/absolute/path/to/draw-io-gomcpwith the actual path to the binary on your machine.
The same shape applies to any client that supports the stdio transport:
{
"mcpServers": {
"draw-io": {
"command": "/absolute/path/to/draw-io-gomcp"
}
}
}
After adding the configuration, trust / enable the server in your client, then start a new session. The draw.io tools will appear automatically.
Once connected, simply ask your AI assistant to draw something, for example:
The assistant generates the diagram, and you can preview it live and ask for refinements ("make the database box red", "add an error path", etc.).
Tool descriptions and all four MCP behaviour hints are generated from
internal/capabilities/capabilities.json, which also drives the registry
index and the bundled skill's routing table. Long-form drawing rules are split
into nine guide sections and loaded on demand with get_guide(sections=[...]);
start_session returns a next_step instead of injecting the whole guide.
get_drawing_guide remains as a legacy full-text alias.
go run ./cmd/capgen -check # lint the catalogue
go run ./cmd/capgen -out build/capabilities.index.json # registry / router index
go run ./cmd/capgen -skill skills/draw-io-gomcp/references/routing-index.md
go test ./... fails if the generated routing table or the skill's frontmatter
description drifts from the catalogue, so regenerate both before committing.
Restart the MCP session after changing the catalogue: tools/list is fetched
once per connection and cached.
skills/draw-io-gomcp/ is a self-contained Agent Skill package (frontmatter,
installer and references) that lives in this repository. Releasing the server
no longer requires tracking down a separate copy of the docs. To publish, zip
that directory with SKILL.md at the archive root; the PUBLISH.md inside it
has the full checklist.
┌──────────────┐ stdio (MCP) ┌────────────────────┐ draw.io ┌──────────────┐
│ AI Client │ ───────────────▶│ draw-io-gomcp │ ───────────▶│ Diagram / │
│ (WorkBuddy) │ ◀───────────────│ (Go, local CLI) │ ◀───────────│ Preview │
└──────────────┘ JSON-RPC └────────────────────┘ .drawio └──────────────┘
draw-io-gomcp processes the request locally and produces the draw.io diagram source.This is a Go port of next-ai-draw-io, converted from its
v0.5 release. The Go version shares the same tool surface but is maintained separately and will
diverge and evolve independently with improvements such as:
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、mcp-server。