// may the 4th be with you⚔️
developer-toolsdesign

Excalidraw MCP Server

by Scofieldfree

Excalidraw MCP Server: let AI agents generate, edit, and view Excalidraw diagrams via natural-language commands with rea

Enables AI agents to programmatically generate, edit, and view Excalidraw diagrams with real-time browser synchronization. It provides a suite of tools for adding shapes, text, and arrows to diagrams through natural language interactions.

github stars

79

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Real-time browser synchronizationMermaid syntax supportMulti-session support

best for

  • / AI-powered visual thinking and brainstorming
  • / Creating architecture diagrams through conversation
  • / Converting text descriptions to visual diagrams
  • / Collaborative diagram editing with AI assistance

capabilities

  • / Create and edit Excalidraw diagrams through conversation
  • / Add shapes, text, arrows, and elements to diagrams
  • / Convert Mermaid syntax to Excalidraw diagrams
  • / Preview diagrams in real-time in browser
  • / Manage multiple diagram sessions
  • / Export diagrams to PNG, SVG, or JSON

what it does

Lets AI assistants create, edit, and view Excalidraw diagrams with real-time browser synchronization. Supports natural language diagram creation with automatic layout and Mermaid syntax conversion.

about

Excalidraw MCP Server is a community-built MCP server published by Scofieldfree that provides AI assistants with tools and capabilities via the Model Context Protocol. Excalidraw MCP Server: let AI agents generate, edit, and view Excalidraw diagrams via natural-language commands with rea It is categorized under developer tools, design. This server exposes 11 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Excalidraw MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Excalidraw MCP Server is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Excalidraw MCP Server

npm version License: MIT

An MCP (Model Context Protocol) server that empowers AI agents (like Claude, Cursor, Windsurf) to create, edit, and manage Excalidraw diagrams directly within your conversation.

Why Excalidraw? Its hand-drawn aesthetic and JSON-based format are perfect for rapid, programmable diagramming. This server bridges standard MCP clients with a local Excalidraw instance, enabling AI-powered visual thinking.

<p align="center"> <img src="/images/excalidraw-mcp-architechture.png" alt="Excalidraw MCP Demo" width="700"> </p>

✨ Features

FeatureDescription
🎨 Real-time PreviewChanges appear instantly in a local browser window via WebSocket
📐 Smart LayoutAutomatically calculates text width and binds labels to containers
🔄 Multi-SessionSwitch between different diagrams seamlessly
🧜 Mermaid SupportConvert Mermaid syntax to Excalidraw diagrams instantly
📦 Export OptionsExport to PNG, SVG, or JSON formats
🏗️ TemplatesBuilt-in architecture diagram templates

🚀 Quick Start

You don't need to clone this repo. Just configure your MCP client:

Claude Code (cc)

claude mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp

Codex CLI

codex mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp

Cursor / Windsurf

Go to Settings > MCPAdd New MCP Server:

FieldValue
Nameexcalidraw
Typecommand
Commandnpx -y @scofieldfree/excalidraw-mcp

Cline (VS Code Extension)

Open Cline settings and add to MCP Servers:

{
  "mcpServers": {
    "excalidraw": {
      "command": "npx",
      "args": ["-y", "@scofieldfree/excalidraw-mcp"]
    }
  }
}

GitHub Copilot

Use the Copilot CLI to interactively add:

/mcp add

Alternatively, create or edit ~/.copilot/mcp-config.json:

{
  "mcpServers": {
    "excalidraw": {
      "type": "local",
      "command": "npx",
      "tools": ["*"],
      "args": ["-y", "@scofieldfree/excalidraw-mcp"]
    }
  }
}

Kiro

Follow the MCP Servers documentation. Add to .kiro/settings/mcp.json:

{
  "mcpServers": {
    "excalidraw": {
      "command": "npx",
      "args": ["-y", "@scofieldfree/excalidraw-mcp"]
    }
  }
}

opencode

opencode mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp

VS Code

One-click install:

<img src="https://img.shields.io/badge/Install_Server-VS_Code-blue?logo=visualstudiocode" alt="Install in VS Code"> <img src="https://img.shields.io/badge/Install_Server-VS_Code_Insiders-green?logo=visualstudiocode" alt="Install in VS Code Insiders">

Or install via CLI:

# For VS Code
code --add-mcp '{"name":"excalidraw","command":"npx","args":["-y","@scofieldfree/excalidraw-mcp"]}'

# For VS Code Insiders
code-insiders --add-mcp '{"name":"excalidraw","command":"npx","args":["-y","@scofieldfree/excalidraw-mcp"]}'

Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "excalidraw": {
      "command": "npx",
      "args": ["-y", "@scofieldfree/excalidraw-mcp"]
    }
  }
}

🛠️ Available Tools

ToolDescription
start_sessionStart browser preview and open Excalidraw editor
add_elementsAdd shapes, text, arrows to the canvas
update_elementModify existing element properties
delete_elementRemove elements from canvas
get_sceneRetrieve current diagram state
create_from_mermaidConvert Mermaid syntax to Excalidraw
add_template_architectureAdd a pre-built architecture diagram template
create_diagramCreate a new diagram or clear existing
export_diagramExport diagram to PNG, SVG, or JSON
list_sessionsList all active diagram sessions
delete_diagramDelete a diagram session

💬 Usage Examples

Example 1: Create a Simple Diagram

You say:

"Draw a flowchart with three boxes: Input → Process → Output"

AI uses:

start_session → add_elements (3 rectangles + 2 arrows)

Example 2: Convert Mermaid to Excalidraw

You say:

"Convert this Mermaid diagram to Excalidraw: graph LR: A[User] --> B[API Gateway] --> C[Service] --> D[(Database)]"

AI uses:

start_session → create_from_mermaid

Example 3: Architecture Diagram

You say:

"Create an architecture diagram for a microservices system"

AI uses:

start_session → add_template_architecture (or) add_elements with custom layout

🏗️ Architecture

┌─────────────────────────────────────────────────────────────┐
│                     AI Agent (Claude/Cursor)                │
└─────────────────────────┬───────────────────────────────────┘
                          │ MCP Protocol (JSON-RPC over stdio)
                          ▼
┌─────────────────────────────────────────────────────────────┐
│                   Excalidraw MCP Server                     │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐  │
│  │ Tool Router │──│ State Store │──│ WebSocket Broadcast │  │
│  └─────────────┘  └─────────────┘  └──────────┬──────────┘  │
└────────────────────────────────────────────────┼────────────┘
                                                 │ WebSocket
                                                 ▼
                          ┌───────────────────────────────────┐
                          │     Browser (Excalidraw Editor)   │
                          └───────────────────────────────────┘

🔧 Development

Prerequisites

  • Node.js >= 18
  • pnpm >= 9

Setup

# Clone the repository
git clone https://github.com/Scofieldfree/excalidraw-mcp.git
cd excalidraw-mcp

# Install dependencies
pnpm install

# Start development server
pnpm dev

Scripts

CommandDescription
pnpm devStart dev server (backend + frontend)
pnpm buildBuild for production
pnpm typecheckRun TypeScript type checking
pnpm lintRun ESLint
pnpm releaseCreate a new release version

📦 Project Structure

excalidraw-mcp/
├── packages/
│   └── mcp-server/          # Core MCP server + Excalidraw frontend
│       ├── src/
│       │   ├── index.ts     # Entry point
│       │   ├── state.ts     # Session state management
│       │   ├── http-server.ts
│       │   └── tools/       # MCP tool implementations
│       └── web/             # Excalidraw React frontend
├── docs/                    # Documentation
└── package.json             # Workspace configuration

🐛 Troubleshooting

Port Already in Use

The server automatically finds an available port starting from 3100. If you need a specific port, set the PORT environment variable.

Browser Doesn't Open

Ensure you have a default browser configured. The server uses the open package to launch the browser.

WebSocket Connection Failed

Check if any firewall or antivirus is blocking WebSocket connections on localhost.


🤝 Contributing

Contributions are welcome! Please read our Contributing Guide for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📜 License

MIT © Scofieldfree


🔗 Links

FAQ

What is the Excalidraw MCP Server MCP server?
Excalidraw MCP Server is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Excalidraw MCP Server?
This profile displays 37 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
MCP server reviews

Ratings

4.537 reviews
  • Neel Singh· Dec 20, 2024

    We wired Excalidraw MCP Server into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Pratham Ware· Dec 4, 2024

    Excalidraw MCP Server has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Chen Ramirez· Dec 4, 2024

    Excalidraw MCP Server is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Yash Thakker· Nov 23, 2024

    According to our notes, Excalidraw MCP Server benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Arya Taylor· Nov 19, 2024

    Excalidraw MCP Server is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Neel Bhatia· Nov 11, 2024

    We evaluated Excalidraw MCP Server against two servers with overlapping tools; this profile had the clearer scope statement.

  • Dhruvi Jain· Oct 14, 2024

    We wired Excalidraw MCP Server into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Arya Brown· Oct 14, 2024

    Excalidraw MCP Server reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Arya Martin· Oct 10, 2024

    Strong directory entry: Excalidraw MCP Server surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Neel Smith· Oct 2, 2024

    Excalidraw MCP Server has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

showing 1-10 of 37

1 / 4