excalidashapi-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@excalidashapi-mcp create a new drawing with a start box, process box, and end box connected by arrows"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
excalidashapi-mcp
An MCP server for working with drawings in ExcaliDash. An AI agent can create a drawing, edit shapes and text, connect elements, add images, and organize drawings into collections. ExcaliDash stores the drawings; changes remain visible in its editor.
The server runs over stdio. Your MCP client starts it as a child process and supplies an ExcaliDash user API key. You do not need to host another MCP endpoint, install a database, or give the server S3 credentials.
Connect a client
You need a running ExcaliDash instance with the Drawing Agent API and an account API key. In ExcaliDash, create the key under Profile → API keys with drawings:read, drawings:write, collections:read, and collections:write. The drawing tools need only the two drawing scopes; collection tools need the collection scopes too.
Use the public frontend URL of your ExcaliDash instance. The API client appends /api itself; do not point it at a backend service address. Use Node.js 20.6 or newer for the npm package, or Docker for the container image.
npm
Configure a client that uses the mcpServers format:
{
"mcpServers": {
"excalidash": {
"command": "npx",
"args": ["-y", "excalidashapi-mcp@0.1.0"],
"env": {
"EXCALIDASH_URL": "https://draw.example.com",
"EXCALIDASH_API_KEY": "YOUR_ACCOUNT_KEY"
}
}
}
}Replace the URL and key.
Container image
For a client that launches Docker, use the image from GitHub Container Registry:
{
"mcpServers": {
"excalidash": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env", "EXCALIDASH_URL",
"--env", "EXCALIDASH_API_KEY",
"ghcr.io/latikdesu/excalidash-mcp"
],
"env": {
"EXCALIDASH_URL": "https://draw.example.com",
"EXCALIDASH_API_KEY": "YOUR_ACCOUNT_KEY"
}
}
}
}The image uses stdio. Keep -i; do not add -t or publish a port.
Client configuration formats differ. If your client does not use mcpServers, supply the same command, arguments, and two environment variables in its server settings. Protect the config file if it contains the key, or use the client's secret store. The image does not contain your credentials.
Related MCP server: @kamiazya/whiteboard-mcp
Tools
The server exposes 17 tools. Drawing selection belongs to one MCP session; another session will not inherit it.
Tool | What it does |
| Lists accessible drawings. Supports |
| Creates an empty Excalidraw drawing. Selects it by default unless |
| Reads and selects a drawing for tools that accept an optional |
| Returns the drawing selected in this MCP session. |
| Reads a compact structural summary of a drawing. |
| Returns one element's properties and its bound children. |
| Atomically applies up to 50 semantic operations in a single backend request. |
| Renames a drawing by its explicit ID. |
| Permanently deletes a drawing by its explicit ID. It does not move it to Trash. |
| Returns the full stored scene, including |
| Finds non-deleted elements by exact ID/type and a literal, case-sensitive text substring; filters are combined with AND. Results are paginated, up to 100 per page. |
| Lists owned and shared collections with the ownership metadata provided by ExcaliDash. |
| Creates a collection owned by the key's user. |
| Renames an owned collection. Trash cannot be renamed. |
| Deletes an owned collection and its shares. Its drawings are kept, without a collection. Trash cannot be deleted. |
| Moves a drawing to an existing collection, or uses |
| Adds a PNG or JPEG image from base64 and places it at the supplied coordinates. Decoded input is limited to 5 MiB. |
Drawing operations
apply_drawing_ops supports add_shape, connect, set_text, set_style, move, delete, import_elements, layout, and revert_to_snapshot. A layout operation accepts graph nodes and edges; supported directions are TB, BT, LR, and RL. A graph can have up to 200 nodes and 400 edges, with a batch limit of 300 nodes and 600 edges.
When adding shapes, you can give them short ref names. The response maps these names to element IDs. Use the names in a second apply_drawing_ops call to connect or edit those elements. ExcaliDash assigns IDs when it creates the shapes, so a request that creates a ref and refers to it later in the same batch is rejected before writing. Each call is atomic on its own; the two calls are not one transaction. Aliases are scoped to the current drawing and MCP session and disappear on restart.
revert_to_snapshot restores elements from a version you already know. It is not a history browser or a full restoration of files and app state. Reverted elements may remain in the stored scene with isDeleted: true.
Images and stored data
add_image accepts canonical base64 without a data: prefix, mimeType (image/png or image/jpeg), and x, y, width, height. The server checks the encoded data and image signature before sending it to ExcaliDash. A version conflict is returned as an error; the tool does not retry over another editor's changes.
get_drawing reads the stored scene. Its files entries may contain private ExcaliDash references rather than embedded image bytes. To make a portable .excalidraw file, use the export button in ExcaliDash itself.
Development
npm ci
npm testFor a direct stdio run, copy .env.example to .env, set EXCALIDASH_URL and EXCALIDASH_API_KEY, restrict the file to mode 0600, and run node --env-file=.env dist/index.js after npm run build. Keep browser-login passwords out of this file.
Streamable HTTP is available for development and transport testing: node --env-file=.env dist/http.js serves /mcp on 127.0.0.1:8080 by default. /health checks the process; /ready makes a bounded, authenticated read request to ExcaliDash. The Host and Origin allowlists are configurable through the variables in .env.example. They are not a substitute for client authentication on an exposed network endpoint. docker compose up --build -d runs this HTTP mode with a loopback-only published port.
npm test does not change drawings on a running ExcaliDash instance. Run npm audit to check dependencies.
Licensed under MIT.
Available Tools
17 toolsadd_imageB
Add PNG/JPEG bytes with optimistic version checking. No URL fetch or S3 credentials. Conflicts are not retried.
Inputs: x (required), y (required), width (required), base64 (required), +3 more.
apply_drawing_opsA
Atomically apply up to 50 semantic operations. Uses drawingId when provided, otherwise the selected drawing. Read the summary first.
Inputs: ops (required), drawingId, clientBatchId.
create_collectionC
Create an owned collection.
Inputs: name (required).
create_drawingB
Create a new empty Excalidraw drawing and optionally select it as the default target.
Inputs: name (required), select.
delete_collectionADestructive
Delete an owned collection and its shares; drawings remain unorganized. Trash cannot be deleted.
Inputs: collectionId (required).
delete_drawingADestructive
Permanently delete a drawing. This is not a move to Trash.
Inputs: drawingId (required).
find_elementsC
AND filters: exact id/type and case-sensitive literal text substring. Excludes deleted elements.
Inputs: drawingId (required), id, text, type, +2 more.
get_drawingB
Get full scene and version. Files may be authenticated references, not embedded bytes.
Inputs: drawingId (required).
get_drawing_summaryA
Read a compact structural summary of a drawing. Uses drawingId when provided, otherwise the selected drawing.
Inputs: drawingId.
get_selected_drawingA
Return the drawing currently selected by this MCP process.
Inputs: no named parameters.
inspect_drawing_elementB
Inspect one element and its bound children. Uses drawingId when provided, otherwise the selected drawing.
Inputs: elementId (required), drawingId.
list_collectionsB
List owned and shared collections with server ownership metadata.
Inputs: no named parameters.
list_drawingsA
List ExcaliDash drawings available to the account API key. Use this before selecting a drawing.
Inputs: limit, offset, search.
move_drawing_to_collectionB
Move a drawing to an existing collection, or null for unorganized.
Inputs: drawingId (required), collectionId (required).
rename_collectionA
Rename an owned collection. Trash cannot be renamed.
Inputs: name (required), collectionId (required).
rename_drawingC
Rename a drawing by ID.
Inputs: name (required), drawingId (required).
select_drawingA
Select an Excalidraw drawing as the default target for subsequent tools in this MCP process.
Inputs: drawingId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools target distinct actions and resources (drawings, collections, elements, images), and selection behavior is documented. However, get_drawing, get_drawing_summary, and get_selected_drawing require careful reading to distinguish, and find_elements versus inspect_drawing_element could overlap for some queries.
All names are snake_case and follow a predictable verb_noun pattern such as list_drawings, create_drawing, rename_collection, and delete_collection. Minor naming variation like add_image is still readable and does not break the convention.
At 17 tools, the set is slightly above the ideal 3-15 range but justified by drawing lifecycle, selection state, collection management, structural inspection, and image support. It is not excessive for the apparent domain.
The surface covers drawing CRUD, selection, summary/inspection, atomic operations, element search, collection CRUD/move, and image addition. Minor gaps remain around explicit duplication/export or detailed collection inspection, but core lifecycle coverage is solid.
Maintenance
Related MCP Connectors
Create and manage Mermaid.js flowcharts and diagrams with AI agents via MCP.
Immutable diagrams for AI agents: create, edit, validate and render versioned diagrams over MCP.
Create, edit and organize hand-drawn diagrams (flowcharts, ER, architecture) from any AI agent.
AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create and manipulate live visual diagrams on an Excalidraw canvas in real-time via MCP tools.21 PyPI15BSD 3-Clause
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to collaboratively draw and annotate Excalidraw diagrams in real-time via MCP tools, synced to a browser canvas.11Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, modify, and share diagrams on a live Excalidraw canvas through MCP tools, supporting shapes, text, arrows, batch operations, and export to shareable links with images.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, modify, and analyze diagrams using Draw.io (Diagrams.net) through MCP commands.MIT