Excalidraw Architect MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add excalidraw-architect -- uvx excalidraw-architect-mcp
README.md

Generate beautiful Excalidraw architecture diagrams with perfect auto-layout

Excalidraw Architect MCP

It's been a constant struggle trying to understand unfamiliar and complex codebases - managing cognitive overload and trying to imagine how everything fits together.

The Problem

When you're onboarding onto a codebase, designing a new system, or documenting existing architecture, a visual diagram communicates in seconds what pages of text can't. But the options today aren't great. Mermaid diagrams are quick to generate but have limited capabilities - you can't drag a node to reposition it, group components visually. Excalidraw solves these problems, but when LLMs try to generate Excalidraw directly, they hallucinate coordinates - boxes overlap, arrows tangle, and you end up fixing the diagram manually.

The Solution

excalidraw-architect-mcp separates the what from the where - the AI focuses on structure, the engine handles the pixel math.

Your LLM describes the components and connections, and the MCP handles layout, styling, and rendering using a proper graph layout algorithm. 50+ technologies (Kafka, PostgreSQL, Redis, etc.) get auto-styled, you can iteratively edit diagrams with natural language ("add a cache in front of the DB"), and it runs fully offline in Cursor/Windsurf - no API keys needed.

  • Perfect layouts every time - Sugiyama algorithm with adaptive spacing; no overlapping boxes
  • Architecture-aware styling - say "Kafka" and get a stream-styled node, not a generic rectangle
  • Talk to your diagrams - add, remove, or rewire components on an existing diagram with natural language
  • Hub node visualization - gateways and load balancers auto-stretch to span their connected services

See It In Action

Every frame below is generated entirely by AI using this MCP - zero manual positioning.

E-Commerce Platform Architecture

E-Commerce Platform Demo

Payment Processing Flow

Payment Processing Flow Demo

Use Cases

  • Onboarding onto a new codebase - point it at a microservice and get a high-level architecture diagram without reading a single line of code. Point it to a set of classes for a low-level flow diagram when you need the details.
  • Brainstorming and system design - when you're whiteboarding a new service or debating trade-offs, ask it to visualize the architecture as you go. Iterate by saying "add a cache here" or "swap Kafka for SQS" instead of redrawing from scratch.
  • Documentation that stays alive - drop the .excalidraw file into your repo and update it with natural language as the system evolves. No more stale diagrams from six sprints ago.

Quick Start

Install

pip install excalidraw-architect-mcp

Or run without installing (requires uv):

uvx excalidraw-architect-mcp

Configure MCP in Your IDE

Cursor - Add to .cursor/mcp.json:

{
  "mcpServers": {
    "excalidraw-architect": {
      "command": "excalidraw-architect-mcp",
      "transport": "stdio"
    }
  }
}

Windsurf / Other IDEs - Same pattern; point to the excalidraw-architect-mcp command over stdio.

Install the Diagram Design Skill (recommended)

This repo includes a Diagram Design Skill that teaches the AI how to structure diagrams for the best results - node count limits, topology rules, edge label guidelines, and common patterns.

For Cursor users:

mkdir -p ~/.cursor/skills/excalidraw-diagram-design && \
curl -o ~/.cursor/skills/excalidraw-diagram-design/SKILL.md \
  https://raw.githubusercontent.com/BV-Venky/excalidraw-architect-mcp/main/.skills/excalidraw-diagram-design/SKILL.md

For other IDEs: Download the SKILL.md file and add it to your IDE's prompt context or system instructions.

The AI will automatically pick up the skill and apply it when generating diagrams. Feel free to modify the rules to suit your preferences - tweak node limits, add your own patterns, or adjust styling guidelines.

A note on diagram complexity: As the number of components and connections grows, diagrams inevitably become harder to read - this is true for humans drawing by hand too, not just automated layout. For best results, aim for 6-15 nodes in architecture diagrams and **

Tools (2)

generate_diagramGenerates an Excalidraw diagram based on natural language descriptions of components and connections.
edit_diagramModifies an existing Excalidraw diagram using natural language instructions.

Configuration

claude_desktop_config.json
{"mcpServers": {"excalidraw-architect": {"command": "excalidraw-architect-mcp", "transport": "stdio"}}}

Try it

Create an architecture diagram for a microservices-based e-commerce platform with a load balancer, two web services, and a PostgreSQL database.
Add a Redis cache in front of the PostgreSQL database in the current diagram.
Visualize the payment processing flow including the payment gateway, internal API, and external bank service.
Swap the Kafka message broker for SQS in the existing architecture diagram.

Frequently Asked Questions

What are the key features of Excalidraw Architect?

Perfect auto-layout using the Sugiyama algorithm with adaptive spacing. Architecture-aware component styling for 50+ common technologies. Iterative editing of diagrams using natural language. Hub node visualization for gateways and load balancers. Fully offline operation with no API keys required.

What can I use Excalidraw Architect for?

Onboarding onto a new codebase by generating high-level architecture diagrams. Brainstorming and system design by visualizing architecture during whiteboarding. Maintaining living documentation by updating .excalidraw files with natural language. Creating low-level flow diagrams for specific class interactions.

How do I install Excalidraw Architect?

Install Excalidraw Architect by running: pip install excalidraw-architect-mcp

What MCP clients work with Excalidraw Architect?

Excalidraw Architect works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Excalidraw Architect docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare