Create editable Draw.io architecture diagrams from prompts and reference images.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Turn architecture prompts and reference images into portable, natively editable Draw.io files.
Your MCP host does the visual reasoning. DrawArch does the deterministic rendering, asset embedding, validation, and delivery.
Quick start Β· See the workflow Β· Architecture Β· Contribute
This is not a screenshot pasted into a diagram. Containers, labels, icons, shapes, connector endpoints, ports, and waypoints remain separate native mxCell objects. Assets are embedded inside the .drawio file, so the result remains portable and editable offline.
[!IMPORTANT] DrawArch does not call another LLM and does not require a second LLM API key. ChatGPT, Claude, Codex, Cursor, or another vision-capable MCP host analyzes the request or image and supplies the scene graph.
| Capability | What it means | |
|---|---|---|
| π§© | Native editability | Move, restyle, relabel, reconnect, or delete individual objects in diagrams.net. |
| π― | Reference recreation | Rebuild an attached architecture image with absolute geometry, layers, z-order, ports, and waypoints. |
| π | Real-world assets | Use bundled icons, Iconify-compatible icons, user images, or approved HTTPS image sources. |
| π¦ | Portable artifacts | The generated .drawio is returned directly through MCP with all image assets embedded. |
| π | Approval-aware rendering | Immutable plan revisions and revision-bound approval tokens prevent stale or unreviewed renders. |
| β | Validation built in | Check Draw.io structure, references, asset safety, and structural coverage before accepting output. |
Attach an architecture image to your MCP host and ask:
Recreate this image with DrawArch. Preserve its layout, labels, icons, grouping, and connector routing. Keep every visible object editable and use real icons where appropriate.
The host and DrawArch then follow a reviewable four-step loop:
prepare_reference_recreation with a typed absolute scene graph.create_reference_drawio safely resolves and embeds assets, renders native cells, validates the file, and returns the .drawio resource.compare_reference_recreation measures structural coverage; the host adjusts the plan and repeats when needed.In plain terms: your existing AI analyzes the image; DrawArch turns that analysis into a controlled, validated, editable file. The complete contract is demonstrated in examples/reference-recreation.json.
| Requirement | DrawArch | Flat image generation |
|---|---|---|
| Edit individual components | β | β |
| Reattach and reroute connectors | β | β |
| Preserve explicit IDs and hierarchy | β | β |
| Work offline after generation | β | Usually |
| Validate structure automatically | β | β |
| Recreate with real embedded icons | β | Inconsistent |
| Iterate through a reviewable plan | β | β |
| Guarantee pixel-identical output | No β host-guided iteration | No |
DrawArch optimizes for high-fidelity, editable reconstruction, not an opaque pixel replica. The host vision model can inspect the result, update geometry or styling, and render another immutable revision.
Requires Node.js 20+ or Docker.
DrawArch uses stdio by default. Diagnostics go to stderr, preserving stdout for MCP messages.
On Windows hosts that do not resolve npx directly, set command to npx.cmd. You can also use the source checkout and configure an absolute dist/src/index.js path.
Then configure your host:
The container runs Streamable HTTP on http://localhost:3000/mcp. Its public health probe is GET /health; MCP and file downloads require the configured bearer token.
| Host type | Recommended transport | Notes |
|---|---|---|
| Claude Desktop / Claude Code | stdio or remote HTTP | Local stdio is simplest; remote connectors can use /mcp. |
| Codex / Cursor / VS Code | stdio or remote HTTP | Use local stdio for per-developer output or a shared authenticated service. |
| ChatGPT | remote Streamable HTTP | ChatGPT cannot spawn the local stdio process; deploy the container behind HTTPS first. |
| CI and team services | Streamable HTTP | Set bearer auth, stable approval secret, exact host/origin allowlists, TLS, and a persistent output volume. |
DrawArch currently provides the deployable server and public container, not a managed hosted endpoint. Operators supply the HTTPS domain and infrastructure.
| Tool | Purpose |
|---|---|
list_themes | List six built-in visual themes. |
list_assets | Search the bundled real-world icon catalog. |
resolve_asset | Resolve a bundled or opt-in online SVG with provenance. |
create_drawio | Generate a deterministic themed architecture diagram. |
validate_drawio | Validate a generated architecture file. |
| Tool | Purpose |
|---|---|
prepare_reference_recreation | Store an absolute editable scene graph and optionally approve its sources. |
update_reference_plan | Create an immutable next revision and invalidate earlier approvals. |
get_reference_plan | Read the latest scene-graph revision for review. |
create_reference_drawio | Render an approved plan and return the portable .drawio artifact. |
validate_reference_drawio | Validate native structure, references, and embedded-image safety. |
compare_reference_recreation | Score structural coverage and report missing editable elements. |
Reference plans support four asset modes:
| Mode | Source | Server opt-in required? |
|---|---|---|
bundled | Original MIT-licensed DrawArch SVG catalog | No |
online | Iconify-compatible icon query | Yes |
data | User-provided SVG, PNG, JPEG, or WebP data URI | No |
remote | Explicit approved HTTPS image URL | Yes |
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/drawarch)<a href="https://allmcps.com/mcp/drawarch"><img src="https://allmcps.com/api/badge/drawarch?style=directory" alt="Drawarch on AllMCPs" /></a>