excalidraw-mcp
by cmd8·★ 4·Score 38
MCP server for creating and editing Excalidraw diagrams programmatically with node and edge manipulation tools.
Overview
This MCP server provides tools to interact with Excalidraw diagrams through the Model Context Protocol. It allows creation of nodes (shapes with labels), creation of edges between nodes, deletion of elements, and retrieval of full diagram state. The server supports multiple integration methods including Claude Desktop, Cursor, VS Code, and other AI coding environments. The implementation is in TypeScript, indicating proper type safety and maintainability.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need AI systems to interact with Excalidraw diagrams programmatically, especially if you already use Excalidraw for your visual documentation or design work.
When NOT to choose this
Don't choose this server if you need to work with diagram formats other than Excalidraw, or if you require advanced diagram manipulation features not provided by this implementation.
Tools this server exposes
4 tools extracted from the READMEcreateNodeCreate a new node (shape with label) in the diagram. Returns the created node ID.
createEdgeCreate an arrow connecting two nodes. Nodes can be referenced by ID or by label text.
deleteElementDelete a node or edge from the diagram by ID or label.
getFullDiagramStateReturns a markdown representation of the complete diagram, including nodes, relationships, labels, frames, and colors.
Comparable tools
Installation
Installation
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "@cmd8/excalidraw-mcp", "--diagram", "/path/to/diagram.excalidraw"]
}
}
}Other Clients
- **Cursor**: Add to
~/.cursor/mcp.json - **Claude Code**:
claude mcp add excalidraw -- npx -y @cmd8/excalidraw-mcp --diagram /path/to/diagram.excalidraw - **VS Code**: Add to VS Code MCP settings with type "stdio"
- **Amp**:
amp mcp add excalidraw -- npx -y @cmd8/excalidraw-mcp --diagram /path/to/diagram.excalidraw - **Windsurf**: Add to MCP config
Requires Node.js >= v18.0.0
FAQ
- What file formats does this server support?
- The server specifically works with .excalidraw files which are the native format for Excalidraw diagrams.
- Can I use this with AI coding assistants other than those listed?
- If your AI coding environment supports MCP servers, it should work with the stdio method as shown in the installation instructions.
Compare excalidraw-mcp with
Last updated · Auto-generated from public README + GitHub signals.