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.2.tar.gz (14.4 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.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_excalidraw_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 14.4 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.2.tar.gz
Algorithm Hash digest
SHA256 6e45e9d909f6d278faef60ed8f492d0d96f7635853795c9920e47d65e4b24d88
MD5 5914d753494cf7bc41d6af4471d5ce12
BLAKE2b-256 dee61ffa51bc9a6d66b695ab22ec4f9184085afc2b7aeb496e99dfe3334f58c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_excalidraw_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cafed19722a460dcca8b6c9111374d14b712a8120089c94c20bb6bb20515c4d9
MD5 4c6ba44b7b900f85a8eb734095407654
BLAKE2b-256 fdc17754e0f9e8902fc16f8ac2f0f2180c57aa088b6627faec3ff2d4afc0255c

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