Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLog level: debug, info, warn, errorinfo
CANVAS_HOSTNoCanvas server bind address127.0.0.1
CANVAS_PORTNoCanvas server port3000
MAX_ELEMENTSNoMaximum elements on canvas10000
MAX_BATCH_SIZENoMaximum elements per batch create100
PERSISTENCE_DIRNoDirectory for persistent storage./data
STANDALONE_MODENoUse in-process store (no canvas server needed)true
AUDIT_LOG_ENABLEDNoEnable audit loggingtrue
CANVAS_SERVER_URLNoURL the MCP server uses to reach the canvas. Required for connected mode.http://127.0.0.1:3000
EXCALIDRAW_API_KEYNoAPI key for auth (min 32 chars). Required for connected mode.
PERSISTENCE_ENABLEDNoEnable file-based persistencefalse
CORS_ALLOWED_ORIGINSNoComma-separated origin allowlisthttp://localhost:3000,http://127.0.0.1:3000
RATE_LIMIT_WINDOW_MSNoRate limit window in milliseconds60000
RATE_LIMIT_MAX_REQUESTSNoMax requests per window (standard tier)100

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_view

Render Excalidraw elements as an interactive inline diagram. Pass an array of elements with type, x, y coordinates and optional styling. The diagram streams in progressively as elements are generated. Use read_me first to see available element types and color palettes.

read_me

Get the Excalidraw element reference: types, colors, sizing, and tips. Call this before creating diagrams.

create_element

Create a single Excalidraw element on the canvas

update_element

Update an existing Excalidraw element by ID

delete_element

Delete an Excalidraw element by ID

query_elements

Search for elements by type, locked status, or group ID

get_resource

Get scene state, elements, theme, or library

batch_create_elements

Create multiple elements at once (max 100)

group_elements

Group multiple elements together

ungroup_elements

Remove elements from a group by group ID

align_elements

Align elements (left, center, right, top, middle, bottom)

distribute_elements

Distribute elements evenly (horizontal or vertical)

lock_elements

Lock elements to prevent modification

unlock_elements

Unlock elements to allow modification

create_from_mermaid

Convert a Mermaid diagram to Excalidraw elements

export_scene

Export the canvas as PNG or SVG

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Excalidraw CanvasInteractive Excalidraw canvas widget for inline diagram rendering

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/debu-sinha/excalidraw-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server