What is the Excalidraw MCP Server?
mainThe mcp-excalidraw-server provides AI agents with a persistent, live Excalidraw canvas. Unlike one-shot diagram generators, this project allows agents to programmatically create, inspect, refine, and save diagrams as .excalidraw files within a repository.
It operates via three primary interfaces:
- Agent Skill + CLI: Recommended for coding agents (Claude Code, Cursor, etc.). Uses
npx -y mcp-excalidraw-server <command>for zero-config, composable JSON input/output. - MCP Server: Provides 26 tools over
stdiofor Model Context Protocol clients (Claude Desktop, Cursor, etc.). - REST API: Plain HTTP interface for LangChain or custom frameworks.
Core Architecture:
- Canvas Server: Runs the Excalidraw web UI, REST API, and WebSocket real-time sync (default
http://127.0.0.1:3000). - Drivers: The CLI, MCP server, or HTTP clients drive the same central canvas.
- Auto-start: Canvas-driving commands (CLI/MCP) automatically spawn the canvas server if it isn't already running. You can opt out by setting
EXCALIDRAW_NO_AUTOSTART=1.