An MCP server that generates beautiful Excalidraw architecture diagrams with perfect auto-layout, stateful editing, and architecture-aware component styling.
Project description
Excalidraw Architect MCP
An MCP server that generates beautiful Excalidraw architecture diagrams with perfect auto-layout, stateful editing, and architecture-aware component styling.
No API keys. No local models. Works with any AI IDE that supports MCP (Cursor, Windsurf, Antigravity etc.).
The Problem
AI IDEs/LLMs generate diagrams as Mermaid or ASCII art. When they try Excalidraw, they hallucinate coordinates - boxes overlap, arrows cross, and the result needs manual cleanup.
The Solution
Tell the AI what to draw. This MCP handles where and how.
- Perfect layouts every time - Sugiyama algorithm with adaptive spacing; no overlapping boxes
- Architecture-aware styling - Say "Kafka" and get a stream-styled node, not a generic rectangle
- Talk to your diagrams - Add, remove, or rewire components on an existing diagram with natural language
- Hub node visualization - Gateways and load balancers auto-stretch to span their connected services
Examples
All diagrams below were generated entirely by AI using this MCP -- zero manual positioning.
E-Commerce Platform Architecture
Payment Processing Flow
Quick Start
Install
pip install excalidraw-architect-mcp
Or run without installing (requires uv):
uvx excalidraw-architect-mcp
Configure MCP in Your IDE
Cursor - Add to .cursor/mcp.json:
{
"mcpServers": {
"excalidraw-architect": {
"command": "excalidraw-architect-mcp",
"transport": "stdio"
}
}
}
Windsurf / Other IDEs - Same pattern; point to the excalidraw-architect-mcp command over stdio.
Install the Diagram Design Skill (recommended)
This repo includes a Diagram Design Skill that teaches the AI how to structure diagrams for the best results -- node count limits, topology rules, edge label guidelines, and common patterns.
For Cursor users:
mkdir -p ~/.cursor/skills/excalidraw-diagram-design && \
curl -o ~/.cursor/skills/excalidraw-diagram-design/SKILL.md \
https://raw.githubusercontent.com/BV-Venky/excalidraw-architect-mcp/main/.skills/excalidraw-diagram-design/SKILL.md
For other IDEs: Download the SKILL.md file and add it to your IDE's prompt context or system instructions.
The AI will automatically pick up the skill and apply it when generating diagrams. Feel free to modify the rules to suit your preferences -- tweak node limits, add your own patterns, or adjust styling guidelines.
A note on diagram complexity: As the number of components and connections grows, diagrams inevitably become harder to read -- this is true for humans drawing by hand too, not just automated layout. For best results, aim for 6-15 nodes in architecture diagrams and 10-25 nodes in detailed flows. If your system is larger, split it into multiple focused diagrams rather than cramming everything into one.
Use It
Just ask your AI IDE naturally:
"Create a High Level architecture diagram of this codebase"
"Create an architecture diagram for a microservices system with an API Gateway, Auth Service, User Service, Order Service, PostgreSQL, Redis cache, and Kafka event bus"
"Convert this mermaid diagram to excalidraw diagram"
"Add a Caching layer to the Order Service in the High Level architecture diagram"
The AI calls the MCP tool with the relationship map. The MCP handles layout, styling, and output. Open the resulting .excalidraw file with the Excalidraw VS Code extension or drag it into excalidraw.com.
Features
Auto Layout Engine
Uses the Sugiyama hierarchical layout algorithm with:
- Adaptive layer gaps - spacing adjusts based on edge label length
- Hub node stretching - gateways/load balancers stretch to span connected services
- Obstacle-aware edge routing - arrows curve around intermediate nodes instead of cutting through them
- Disconnected component stacking - separate subgraphs (e.g., monitoring stack) are placed without overlap
Component Library
50+ technology mappings with automatic visual styling:
| Category | Technologies |
|---|---|
| Database | PostgreSQL, MySQL, MongoDB, DynamoDB, Cassandra, ClickHouse, SQLite, CockroachDB |
| Message Queue | Kafka, RabbitMQ, SQS, Redis Streams, NATS |
| Cache | Redis, Memcached, Varnish |
| Load Balancer | Nginx, HAProxy, ALB/ELB, Traefik, Envoy |
| Compute | Docker, Kubernetes, Lambda, ECS, Fargate |
| Storage | S3, GCS, Azure Blob, MinIO |
| API | REST, GraphQL, gRPC, WebSocket |
| CDN | CloudFront, Cloudflare |
| Monitoring | Prometheus, Grafana, Datadog, ELK |
| Client | Browser, Mobile, Desktop, CLI |
Stateful Editing
Diagram metadata is embedded in the .excalidraw file. Ask the AI:
"Add a Redis cache in front of the database in the existing diagram"
The MCP reads the current state, applies the modification, and re-renders with proper layout.
Mermaid Conversion
Already have a Mermaid flowchart? Convert it:
"Convert this Mermaid diagram to Excalidraw" (paste your Mermaid syntax)
MCP Tools
| Tool | Description |
|---|---|
create_diagram |
Create a new diagram from structured node/connection data |
mermaid_to_excalidraw |
Convert Mermaid flowchart syntax to .excalidraw |
modify_diagram |
Add/remove/update nodes and connections on an existing diagram |
get_diagram_info |
Read current diagram state (call before modifying) |
Contributing
See CONTRIBUTING.md for details.
License
MIT - see LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file excalidraw_architect_mcp-0.2.1.tar.gz.
File metadata
- Download URL: excalidraw_architect_mcp-0.2.1.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
636f8d6aca905c84d41d5fb3e30f0bc0924fce660322d5f4fca3e7887bec81a1
|
|
| MD5 |
66fa911d2368b48086bcd9738dba389b
|
|
| BLAKE2b-256 |
47ad20542b2fde241d9dfffe9cc47776400e6f432b4ba1db55236f298d6e1dc7
|
Provenance
The following attestation bundles were made for excalidraw_architect_mcp-0.2.1.tar.gz:
Publisher:
publish.yml on BV-Venky/excalidraw-architect-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
excalidraw_architect_mcp-0.2.1.tar.gz -
Subject digest:
636f8d6aca905c84d41d5fb3e30f0bc0924fce660322d5f4fca3e7887bec81a1 - Sigstore transparency entry: 1051986525
- Sigstore integration time:
-
Permalink:
BV-Venky/excalidraw-architect-mcp@7c5ffeb8969517f549e228574ba3bc29fa008ccb -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/BV-Venky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7c5ffeb8969517f549e228574ba3bc29fa008ccb -
Trigger Event:
release
-
Statement type:
File details
Details for the file excalidraw_architect_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: excalidraw_architect_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 39.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7e29ddd88271675908d606eaa2174f598cf89365f43180651fdca4ee8a4ab0
|
|
| MD5 |
9ee028ef6e2e193bec14bb35d06845c4
|
|
| BLAKE2b-256 |
3dfd450b2977f1dac5049b1ca804393661edd24f87ad1f3f4500a70172a74f47
|
Provenance
The following attestation bundles were made for excalidraw_architect_mcp-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on BV-Venky/excalidraw-architect-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
excalidraw_architect_mcp-0.2.1-py3-none-any.whl -
Subject digest:
2b7e29ddd88271675908d606eaa2174f598cf89365f43180651fdca4ee8a4ab0 - Sigstore transparency entry: 1051986563
- Sigstore integration time:
-
Permalink:
BV-Venky/excalidraw-architect-mcp@7c5ffeb8969517f549e228574ba3bc29fa008ccb -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/BV-Venky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7c5ffeb8969517f549e228574ba3bc29fa008ccb -
Trigger Event:
release
-
Statement type: