MCP server that turns Claude Code into an Excalidraw diagram generator
Project description
excalidraw-mcp
An MCP server that turns Claude Code into an Excalidraw diagram generator.
Ask Claude to draw any architecture and it opens instantly in your browser — fully interactive, editable, and exportable.
"Draw the architecture of a web3 voting system."
↓
Claude calls draw_architecture_diagram
↓
Python computes layout + generates Excalidraw scene
↓
Browser opens with the diagram
Install
pip install claude-excalidraw-mcp
Register with Claude Code
claude mcp add excalidraw excalidraw-mcp
excalidraw-mcphere is the console command installed by the package — not a separate pip package.
Restart Claude Code. That's it.
Usage
Just ask Claude naturally:
Draw the architecture of a food delivery app.
Draw a CI/CD pipeline diagram.
Draw a microservices architecture for an e-commerce platform.
Claude generates the nodes and edges, the server handles layout, shapes, and rendering.
Shapes (auto-detected from label)
| Shape | Fill | Used for |
|---|---|---|
| Rectangle | Solid | Services, apps, APIs |
| Ellipse | Hachure | Databases, storage, infra |
| Diamond | Cross-hatch | Queues, external APIs |
Override with "shape": "ellipse" in the node definition.
How it works
Claude Code (MCP Client)
│ stdio / JSON-RPC 2.0
▼
excalidraw-mcp server
│
├── Sugiyama layout (longest-path layers + barycenter crossing reduction)
├── Smart arrow routing (straight → S-curve only when crossing detected)
└── Excalidraw scene JSON → local HTML → browser
Requirements
- Python 3.11+
- Claude Code CLI
- Internet (first load only — Excalidraw loads via CDN)
License
MIT
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 claude_excalidraw_mcp-0.1.4.tar.gz.
File metadata
- Download URL: claude_excalidraw_mcp-0.1.4.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
431a8a3e1bfbe1b4da6817f12cca1c109a8b35bdcd757941d57ca0b07716eed4
|
|
| MD5 |
9a04d223cd8c3a8863e485b461e4794e
|
|
| BLAKE2b-256 |
bd406f292f904c7c1021fbfdb9cbbfe862be3262613eb15d68d54aa78605f2da
|
File details
Details for the file claude_excalidraw_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: claude_excalidraw_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9bf08b54b49779775fafcbd63f83ce0cfa48bb48b6922721c780ac5fa612384
|
|
| MD5 |
5a98a85a6e6f811c4c12034a206b6f1e
|
|
| BLAKE2b-256 |
5c93bf8740a53bf1f34d88eabfabe10bf4c1b5ddba8bdbf4000c92aa4d8322af
|