Excalidraw MCP Server

Excalidraw MCP Server

Scofieldfree

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.

79620 views4Local (stdio)

What it does

  • 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

Best for

AI-powered visual thinking and brainstormingCreating architecture diagrams through conversationConverting text descriptions to visual diagramsCollaborative diagram editing with AI assistance
Real-time browser synchronizationMermaid syntax supportMulti-session support

Tools (11)

start_session

Start browser preview and open Excalidraw editor interface. Multi-session support: - No sessionId: Uses default session (default) - sessionId specified: Open/Create specific session - Multiple sessions can be opened simultaneously for different diagrams After calling this tool: 1. Browser window opens automatically 2. Excalidraw editor loads 3. WebSocket realtime connection is established Please pass the same sessionId when using tools like add_elements, update_element subsequently.

list_sessions

List all currently active Excalidraw sessions.

create_diagram

Create a new diagram or clear an existing session. This action will: 1. If a sessionId is specified, clear all elements in that session. 2. If no sessionId is specified, create a new session. 3. Reset the application state. Usage scenarios: • Starting a new project (no sessionId specified) • Clearing an existing diagram (sessionId specified) • Creating multiple independent diagrams (specify different sessionIds each time)

delete_diagram

Delete the specified diagram session. Note: This will completely delete the session and all its elements, and cannot be undone. If you only want to clear elements but keep the session, use create_diagram and specify the sessionId.

add_elements

Add multiple Excalidraw elements to the canvas. Supported element types: - rectangle - ellipse - diamond - arrow - text - line - freedraw - image - frame/magicframe - iframe/embeddable Style options: - strokeColor: e.g. #1e1e1e - backgroundColor: e.g. #D97706 - fillStyle: solid/hachure/cross-hatch - strokeWidth: 1-4 - roughness: 0=architect, 1=artist, 2=cartoonist Advanced options: - label: Auto-create bound text inside shape/arrow containers - start/end: Arrow endpoint binding to new or existing elements - containerId: DEPRECATED (use label instead) Multi-session support: Specify sessionId to target a specific session.

Alternatives