exca-mcp

v0.5.0
exca-mcp Checked 4 days ago Published 10 days ago

A local MCP server for creating and editing Excalidraw documents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_shape

Create a shape (rectangle, ellipse, diamond) with optional label and styling.

ParameterTypeDescription
type *string
w *number
x *number
y *number
backgroundColor
fillStyle
font_family
font_size
frame_id
h
labelstring
opacity
roughness
roundness
strokeColor
strokeStyle
strokeWidth

create_connector

Create a connector arrow between coordinates or bound shape elements.

ParameterTypeDescription
backgroundColor
elbowed
endArrowhead
font_family
font_size
labelstring
opacity
roughness
roundness
routing_mode
source_face
source_id
startArrowhead
strokeColor
strokeStyle
strokeWidth
target_face
target_id
x
x2
y
y2

add_frame

Create a frame container, optionally enclosing existing elements.

ParameterTypeDescription
h *number
name *string
w *number
x *number
y *number
backgroundColor
element_ids
fillStyle
opacity
roughness
strokeColor
strokeStyle
strokeWidth

clear

Clear all elements and state from the active scene.

delete

Delete an element and detach surviving connectors.

ParameterTypeDescription
element_id *string

inspect_scene

Query scene metrics, spatial descriptions, elements, viewport, or server status.

ParameterTypeDescription
connected_to
detailedboolean
element_id
frame_id
include_bound_labelsboolean
include_rawboolean
limitinteger
modestring
offsetinteger
query
resource_uri
type

add_text

Add standalone text element to the scene.

ParameterTypeDescription
content *string
x *number
y *number
font_family
font_sizeinteger
frame_id
opacity
strokeColor

update_element

Update element position, size, label, or visual styling atomically.

ParameterTypeDescription
element_id *string
backgroundColor
elbowed
fillStyle
font_family
font_size
frame_id
height
label
opacity
roughness
roundness
routing_mode
strokeColor
strokeStyle
strokeWidth
width
x
y

batch_mutate

Atomically execute a batch of canvas mutations in a single revision step.

ParameterTypeDescription
operations *array

auto_fix_layout

Diagnose and automatically repair layout defects with rollback safety.

ParameterTypeDescription
aggressivenessstring
dry_runboolean
min_gapnumber
name
repair_scopestring
verboseboolean

undo

Restore the scene before the most recent successful mutation.

preview

Render an inline image preview of the active Excalidraw canvas.

ParameterTypeDescription
backgroundboolean
formatstring
max_dimensioninteger
paddinginteger
scalenumber