exca-mcp
v0.5.0A 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.
| Parameter | Type | Description |
|---|---|---|
type * | string | |
w * | number | |
x * | number | |
y * | number | |
backgroundColor | ||
fillStyle | ||
font_family | ||
font_size | ||
frame_id | ||
h | ||
label | string | |
opacity | ||
roughness | ||
roundness | ||
strokeColor | ||
strokeStyle | ||
strokeWidth |
create_connector
Create a connector arrow between coordinates or bound shape elements.
| Parameter | Type | Description |
|---|---|---|
backgroundColor | ||
elbowed | ||
endArrowhead | ||
font_family | ||
font_size | ||
label | string | |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
element_id * | string |
inspect_scene
Query scene metrics, spatial descriptions, elements, viewport, or server status.
| Parameter | Type | Description |
|---|---|---|
connected_to | ||
detailed | boolean | |
element_id | ||
frame_id | ||
include_bound_labels | boolean | |
include_raw | boolean | |
limit | integer | |
mode | string | |
offset | integer | |
query | ||
resource_uri | ||
type |
add_text
Add standalone text element to the scene.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
x * | number | |
y * | number | |
font_family | ||
font_size | integer | |
frame_id | ||
opacity | ||
strokeColor |
update_element
Update element position, size, label, or visual styling atomically.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
operations * | array |
auto_fix_layout
Diagnose and automatically repair layout defects with rollback safety.
| Parameter | Type | Description |
|---|---|---|
aggressiveness | string | |
dry_run | boolean | |
min_gap | number | |
name | ||
repair_scope | string | |
verbose | boolean |
undo
Restore the scene before the most recent successful mutation.
preview
Render an inline image preview of the active Excalidraw canvas.
| Parameter | Type | Description |
|---|---|---|
background | boolean | |
format | string | |
max_dimension | integer | |
padding | integer | |
scale | number |