excalidraw-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| EXCALIDRAW_TOOLSET | No | Active toolset exposure profile. Valid values: core or full. | core |
| EXCALIDRAW_FONT_DIR | No | Absolute path to a custom directory for TrueType/OpenType font discovery. Unset by default. | |
| EXCALIDRAW_LIVE_PORT | No | Port for the live canvas browser server. Valid range: 1024-65535. | 8080 |
| EXCALIDRAW_SCENE_DIR | No | Absolute path to the directory where .excalidraw scenes are saved. Defaults to the OS user data directory. | |
| EXCALIDRAW_EXPORT_DIR | No | Absolute path to the target directory for PNG image exports. Defaults to EXCALIDRAW_SCENE_DIR/exports. | |
| EXCALIDRAW_LIVE_TOKEN | No | Shared secret required for mutating live canvas requests. Unset by default. | |
| EXCALIDRAW_ALLOW_REMOTE | No | Permits live canvas binding to non-loopback interfaces. Valid values: 1 or true. Unset by default. | |
| EXCALIDRAW_MAX_ELEMENTS | No | Maximum elements allowed per scene. Valid range: 1-100000. | 10000 |
| EXCALIDRAW_HISTORY_LIMIT | No | Maximum undo snapshots retained in memory. Valid range: 1-100. | 20 |
| EXCALIDRAW_MAX_SCENE_BYTES | No | Maximum file size in bytes accepted when loading scenes. Valid range: 1024-104857600. | 26214400 |
| EXCALIDRAW_MAX_EXPORT_BYTES | No | Maximum payload size in bytes for scene export operations. Valid range: 1024-104857600. | 26214400 |
| EXCALIDRAW_MAX_HISTORY_BYTES | No | Memory budget in bytes for the serialized undo stack. Valid range: 1024-524288000. | 104857600 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Create and edit Excalidraw diagrams. Use create_shape, create_connector, add_text, and add_frame for primitives, or batch_mutate for atomic updates. Use inspect_scene to query elements and metrics. Use auto_fix_layout to repair defects, and preview to inspect visuals.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_shapeC | Create a shape (rectangle, ellipse, diamond) with optional label and styling. |
| create_connectorC | Create a connector arrow between coordinates or bound shape elements. |
| add_frameC | Create a frame container, optionally enclosing existing elements. |
| clearA | Clear all elements and state from the active scene. |
| deleteB | Delete an element and detach surviving connectors. |
| inspect_sceneC | Query scene metrics, spatial descriptions, elements, viewport, or server status. |
| add_textC | Add standalone text element to the scene. |
| update_elementB | Update element position, size, label, or visual styling atomically. |
| batch_mutateC | Atomically execute a batch of canvas mutations in a single revision step. |
| auto_fix_layoutC | Diagnose and automatically repair layout defects with rollback safety. |
| undoA | Restore the scene before the most recent successful mutation. |
| previewB | Render an inline image preview of the active Excalidraw canvas. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| create_architecture_diagram | Comprehensive 10-step workflow to plan, construct, validate, and export a production architecture diagram. |
| create_flowchart | Prompt guiding an AI agent to design a clean, professional flowchart, pipeline, or decision logic diagram. |
| plan_diagram | Formulate a written architectural plan, node inventory, tier breakdown, and palette selection before drawing. |
| edit_existing_diagram | Safely inspect and modify an existing Excalidraw scene while preserving layout structure and visual balance. |
| verify_and_export_diagram | Comprehensive 5-step quality gate: diagnose layout, auto-repair, visual preview inspection, and dual export. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| active_scene_json_resource | Read the current in-memory active canvas scene as native Excalidraw JSON. |
| active_scene_resource | Read the current in-memory active canvas scene. |
| fonts_resource | Read discoverable fonts and semantic categories available on the server. |
| capabilities_resource | Read active server capabilities, toolset mode, and configuration metadata. |
| skills_index | Discovery index of available agent skills, supporting reference documents, and recommended workflows. |
| skill_architecture-diagrams | Skill: architecture-diagrams — Design and implement production-grade system, cloud, distributed services, and infrastructure architecture diagrams using the exca-mcp MCP server. Use when creating multi-tier backend architectures, microservices topologies, cloud infrastructure, trust and deployment boundaries, or database persistence diagrams with frames, side columns, and explicit protocol connectors. |
| ref_architecture-diagrams_architecture-patterns | Reference: architecture-patterns for skill architecture-diagrams |
| skill_diagram-planning | Skill: diagram-planning — Formulate a structured architectural plan before invoking any Excalidraw MCP creation tool. Use when an agent receives any diagram request (architecture, flowchart, data pipeline, system design) to determine diagram type, audience, layout tiers, flow direction, node density limits, entry tool selection, and semantic color palette before drawing. |
| ref_diagram-planning_entry-tool-decision-tree | Reference: entry-tool-decision-tree for skill diagram-planning |
| skill_excalidraw-workflow | Skill: excalidraw-workflow — Create, edit, validate, and export professional, fully editable Excalidraw diagrams using the exca-mcp MCP server. Use whenever an agent needs to create or modify diagrams and save both native .excalidraw files and high-quality PNG exports. |
| skill_flowcharts-and-processes | Skill: flowcharts-and-processes — Design clear, human-polished flowcharts, decision trees, CI/CD pipelines, and state machines with single starts, clear terminals, labeled decision branches, and clean loop routing. Use when creating flowcharts, business process flows, CI/CD pipelines, decision logic trees, or state transitions. |
| ref_flowcharts-and-processes_flowchart-patterns | Reference: flowchart-patterns for skill flowcharts-and-processes |
| skill_human-style-and-polish | Skill: human-style-and-polish — Apply the professional hand-drawn Excalidraw aesthetic using restrained semantic palettes, intentional typography, consistent grid spacing, and verified geometric clearances. Use when styling, refining, polishing, or reviewing visual hierarchy, colors, typography, or grid spacing of Excalidraw diagrams. |
| ref_human-style-and-polish_anti-patterns | Reference: anti-patterns for skill human-style-and-polish |
| ref_human-style-and-polish_palette-catalog | Reference: palette-catalog for skill human-style-and-polish |
| skill_verify-and-editable-handoff | Skill: verify-and-editable-handoff — Run layout diagnostics, fix overlaps and spacing defects with auto_fix_layout, visually inspect PNG preview, enforce human editability, and export dual .excalidraw and PNG formats. Use when completing, validating, repairing, previewing, or exporting Excalidraw diagrams before handoff. |
| ref_verify-and-editable-handoff_delivery-checklist | Reference: delivery-checklist for skill verify-and-editable-handoff |
TDQS
Scored across 12 tools
Most tools have clearly distinct canvas operations: create shape/connector/text/frame, update, delete, clear, preview, inspect, undo, and layout repair. The main overlap is that batch_mutate can perform many of the same mutations as the individual creation/update/delete tools, though its batch-atomic purpose is still reasonably distinct.
The set mixes verb_noun names such as create_shape, add_frame, update_element, and inspect_scene with bare verbs such as preview, undo, clear, and delete. The names are readable and mostly intuitive, but the convention is not consistent across all tools.
Twelve tools is a well-scoped size for an Excalidraw canvas server. Each tool maps to a meaningful operation, and the set avoids both trivial thinness and excessive fragmentation.
The surface covers core canvas lifecycle operations: creation, inspection, preview, update, deletion, clearing, batching, layout repair, and undo. Minor gaps remain, such as redo, duplicate, and group/ungroup operations, but the main workflows are covered.