Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
EXCALIDRAW_TOOLSETNoActive toolset exposure profile. Valid values: core or full.core
EXCALIDRAW_FONT_DIRNoAbsolute path to a custom directory for TrueType/OpenType font discovery. Unset by default.
EXCALIDRAW_LIVE_PORTNoPort for the live canvas browser server. Valid range: 1024-65535.8080
EXCALIDRAW_SCENE_DIRNoAbsolute path to the directory where .excalidraw scenes are saved. Defaults to the OS user data directory.
EXCALIDRAW_EXPORT_DIRNoAbsolute path to the target directory for PNG image exports. Defaults to EXCALIDRAW_SCENE_DIR/exports.
EXCALIDRAW_LIVE_TOKENNoShared secret required for mutating live canvas requests. Unset by default.
EXCALIDRAW_ALLOW_REMOTENoPermits live canvas binding to non-loopback interfaces. Valid values: 1 or true. Unset by default.
EXCALIDRAW_MAX_ELEMENTSNoMaximum elements allowed per scene. Valid range: 1-100000.10000
EXCALIDRAW_HISTORY_LIMITNoMaximum undo snapshots retained in memory. Valid range: 1-100.20
EXCALIDRAW_MAX_SCENE_BYTESNoMaximum file size in bytes accepted when loading scenes. Valid range: 1024-104857600.26214400
EXCALIDRAW_MAX_EXPORT_BYTESNoMaximum payload size in bytes for scene export operations. Valid range: 1024-104857600.26214400
EXCALIDRAW_MAX_HISTORY_BYTESNoMemory 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

CapabilityDetails
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

NameDescription
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

NameDescription
create_architecture_diagramComprehensive 10-step workflow to plan, construct, validate, and export a production architecture diagram.
create_flowchartPrompt guiding an AI agent to design a clean, professional flowchart, pipeline, or decision logic diagram.
plan_diagramFormulate a written architectural plan, node inventory, tier breakdown, and palette selection before drawing.
edit_existing_diagramSafely inspect and modify an existing Excalidraw scene while preserving layout structure and visual balance.
verify_and_export_diagramComprehensive 5-step quality gate: diagnose layout, auto-repair, visual preview inspection, and dual export.

Resources

Contextual data attached and managed by the client

NameDescription
active_scene_json_resourceRead the current in-memory active canvas scene as native Excalidraw JSON.
active_scene_resourceRead the current in-memory active canvas scene.
fonts_resourceRead discoverable fonts and semantic categories available on the server.
capabilities_resourceRead active server capabilities, toolset mode, and configuration metadata.
skills_indexDiscovery index of available agent skills, supporting reference documents, and recommended workflows.
skill_architecture-diagramsSkill: 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-patternsReference: architecture-patterns for skill architecture-diagrams
skill_diagram-planningSkill: 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-treeReference: entry-tool-decision-tree for skill diagram-planning
skill_excalidraw-workflowSkill: 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-processesSkill: 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-patternsReference: flowchart-patterns for skill flowcharts-and-processes
skill_human-style-and-polishSkill: 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-patternsReference: anti-patterns for skill human-style-and-polish
ref_human-style-and-polish_palette-catalogReference: palette-catalog for skill human-style-and-polish
skill_verify-and-editable-handoffSkill: 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-checklistReference: delivery-checklist for skill verify-and-editable-handoff

TDQS

B3.2/5.0

Scored across 12 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityActive
ResponsivenessLimited data