Best for
- Programming agents that need iterative diagram design
- Teams that want diagrams managed as repository artifacts
- Environments using agents like Claude Code, Cursor
This server is powerful and well-suited for agents needing programmatic diagram control. It provides element-level CRUD, layout tools, screenshot feedback, and file export, especially useful for diagrams as repo artifacts. However, note that the canvas is in-memory and clears on restart, and screenshots require a browser tab.
mcp-excalidraw-server gives AI agents a live Excalidraw canvas to draw on, look at, refine, and save into your repo. Agents can create architecture diagrams and flowcharts programmatically, see their own work via screenshots, fix layout issues, and export .excalidraw files that live alongside code. Core drawing runs fully locally with no API keys (Node ≥ 18, MIT licensed). It offers a CLI, an MCP server with 26 tools, and a REST API.
Prerequisite: Node.js ≥ 18.
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "mcp-excalidraw-server"]
}
}
}npx -y mcp-excalidraw-server start.{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": [
"-y",
"mcp-excalidraw-server"
]
}
}
}