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.1.tar.gz (13.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.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_excalidraw_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 13.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.1.tar.gz
Algorithm Hash digest
SHA256 7c0775894f4afe617e13ad6d7719ad61f2ab9182116e0650ae73baf5b7486feb
MD5 3e18256c4172c575e598e2c6596a6c01
BLAKE2b-256 7caf922ed5a8a338f5d357f7c3213cbd92152c6d0aeab067307a0baa7bf0be32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_excalidraw_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9c45d6f0f6749ddf299d7d5a9e048b06fad8041bf019be63b72097f9750055c
MD5 53bc9ff8202bc677a7f6db326f7e68d4
BLAKE2b-256 956146e8d0918a5eb38bcf6da12a155933adf525a4be4ac548a291f363e59b27

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