@scofieldfree/excalidraw-mcp
v0.1.1
Published
MCP server for Excalidraw - AI-powered diagram generation with real-time browser preview
Maintainers
Readme
Excalidraw MCP Server
An MCP server that enables AI agents (like Claude, Cursor) to creating and editing Excalidraw diagrams directly.
Features
- Protocol: Fully compliant with Model Context Protocol (MCP).
- Tools:
add_elements,update_element,start_session,export_diagram, etc. - Smart: Auto-calculates text width, auto-binds text to containers.
- Visual: Real-time browser preview via WebSocket.
Quick Start
You can run this server directly using npx:
npx @scofieldfree/excalidraw-mcpConfiguration
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}Cursor
- Open Cursor Settings -> Features -> MCP.
- Click + Add New MCP Server.
- Name:
excalidraw - Type:
command - Command:
npx -y @scofieldfree/excalidraw-mcp
How it Works
- The server starts a local HTTP server (default port 3100) for the Excalidraw frontend.
- It exposes MCP tools to the AI Agent.
- When the Agent calls
add_elements, the server updates its state and pushes changes to the browser via WebSocket. - You see the diagram update in real-time!
License
MIT
