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

Register with Claude Code

claude mcp add excalidraw excalidraw-mcp

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

claude_excalidraw_mcp-0.1.3.tar.gz (14.7 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.3-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_excalidraw_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 14.7 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.3.tar.gz
Algorithm Hash digest
SHA256 1fff3720222dc3ceccd5faa672c0d1e727106eeae939d9f2c991be9b318b8e1f
MD5 0e5e829534a7251386e7dafba15e1cb5
BLAKE2b-256 6f551393fabcdc7b882566d787585290c38145df8920d1238587d8598eea1b2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_excalidraw_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79a80b0bb6904692c013744138e5da816e9d38d1e5e022d511404f9d9b29b2c9
MD5 0285b3d6f4ca611abd308eb1fcf6985b
BLAKE2b-256 da9b53e81f8354a046d38fbfa7996b8201d04d1f28031261f24a13afd1100b39

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