Skip to main content

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 excalidraw-mcp

Register with Claude Code

claude mcp add excalidraw excalidraw-mcp

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

claude_excalidraw_mcp-0.1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_excalidraw_mcp-0.1.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file claude_excalidraw_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: claude_excalidraw_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for claude_excalidraw_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ba389eb6b9ca5f05c55b705fc895b2308c78d1715e3f53bd9b215b234dfbd83b
MD5 c89b13d04592d6b7c1ea7ca090811313
BLAKE2b-256 f5dc03383f071e3ba7c4df045a9276869b108ae3132b387287e8e64172b252ff

See more details on using hashes here.

File details

Details for the file claude_excalidraw_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_excalidraw_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecba205b04c720318a050c7822ea868dc0577658569b7ff34bdfb48d071cbef3
MD5 85a52891be6c67f1e86b293928fcc138
BLAKE2b-256 d4cca8a7e15de2c09dfa53fdb9f41a234c2dc48a365c15b9fbf1a351a031ae72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page