Basic information
About Excalidraw MCP Server
Excalidraw MCP Server: let AI agents generate, edit, and view Excalidraw diagrams via natural-language commands with real-time collaborative whiteboard…
Excalidraw MCP Server is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by scofieldfree. It exposes 11 tools, including start_session, list_sessions, create_diagram, delete_diagram and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 79 GitHub stars. Source code is hosted on github.com. Related topics: community, design, developer-tools, excalidraw, mcp.
Setup
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": [
"-y",
"@scofieldfree/excalidraw-mcp"
]
}
}
}
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": [
"-y",
"@scofieldfree/excalidraw-mcp"
]
}
}
}
{
"servers": {
"excalidraw": {
"command": "npx",
"args": [
"-y",
"@scofieldfree/excalidraw-mcp"
]
}
}
}
Excalidraw MCP Server (Developer Tools) config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": [
"-y",
"@scofieldfree/excalidraw-mcp"
]
}
}
}
Excalidraw MCP Server (Developer Tools) tools
- 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.
- create_from_mermaid — Create diagram elements from Mermaid syntax. Converts Mermaid text to Excalidraw elements through connected browser client. If browser is not connected yet, request is queued and sent after websocket ready. Returns clear errors for timeout and mermaid syntax problems.
- add_template_architecture — Add a built-in architecture diagram template to the canvas. This template visualizes the MCP server architecture with grouped layers and connected arrows. By default it resets the current session before adding template elements.
- update_element — Update attributes of an existing element. Updatable attributes: - x, y: Position coordinates - width, height: Dimensions - strokeColor: Stroke color - backgroundColor: Background color - fillStyle: Fill style - strokeWidth: Stroke width - roughness: Roughness - opacity: Opacity - text: Text content (only for text type) Multi-session support: Specify sessionId to target a specific session.
- delete_element — Delete a specific element from the canvas. Usage scenarios: - Remove unwanted elements - Clean up temporary elements - Delete erroneously added elements Multi-session support: Specify sessionId to target a specific session.
- get_scene — Retrieve complete information about the current diagram scene. Returns: - List of all elements - Application state - Version number - Session ID Usage scenarios: - Viewing current diagram content - Analyzing scene structure - Obtaining element IDs for updates/deletion Multi-session support: Specify sessionId to query a specific session.
- export_diagram — Export the current diagram to a PNG, SVG, or JSON file. Notes: - JSON format is saved directly by the server. - PNG/SVG are generated by the browser and sent back to the server to save. - Requires start_session to be called first and the browser to be connected. Multi-session support: Specify sessionId to target a specific session.
Overview
What is Excalidraw MCP Server?
It is a Model Context Protocol (MCP) server that provides API functionality for operating on Excalidraw drawings, including create, read, update, and delete operations, as well as export to SVG, PNG, and JSON formats. It uses a simple file-based storage system.
How to use Excalidraw MCP Server?
Clone the repository, install dependencies with npm install, build with npm run build, then start the server using npm start. The server exposes tools such as create_drawing, get_drawing, update_drawing, delete_drawing, list_drawings, export_to_svg, export_to_png, and export_to_json.
Key features of Excalidraw MCP Server
- Create, read, update, and delete Excalidraw drawings
- Export drawings to SVG, PNG, and JSON formats
- Simple file-based storage system
- Written in TypeScript with common error handling
Frequently asked questions
1 What runtime does Excalidraw MCP Server require?
It requires Node.js and is installed via npm.
2 How are drawings stored?
Drawings are stored using a simple file-based storage system.
3 What export formats are supported?
Export is supported to SVG, PNG, and JSON formats.
4 What drawing management operations are available?
The server provides create, get, update, delete, and list operations.
5 Is authentication required?
The README does not mention any authentication mechanism.
Videos
Tutorials, guides, and showcases related to Excalidraw MCP Server (Developer Tools). The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In