Excalidraw+ MCP

Tools

Available MCP tool groups

The MCP server exposes both public-API-backed tools and MCP-only adapter tools.

Every tool says how it acts, so clients can ask before risky calls: readOnlyHint for tools that only read, destructiveHint for writes that may change or remove existing content (tools that only add, such as create_scene or create_slide, are not), and openWorldHint for tools whose effect reaches outside the workspace (public share links, invites, and images fetched from a URL).

Diagram and slide tools lay content out from a snapshot of the scene. If the scene changes meanwhile, the call returns a conflict error: read the current scene and retry. A scene created with newScene can remain after a failed write; its ID is included in the tool error.

Scenes

  • list_scenes
  • create_scene
  • get_scene
  • update_scene
  • delete_scene
  • search_scene_content
  • get_scene_content
  • edit_scene_content

search_scene_content is the recommended read tool when an agent only needs to locate shapes, labels, or text without loading the entire scene payload. It returns full matching Excalidraw element nodes.

Its default contains mode is case-insensitive and ignores common separators such as spaces, hyphens, underscores, dots, commas, colons, semicolons, slashes, and backslashes. For example, Auth Flow, auth-flow, auth_flow, and authflow will all match each other.

Use glob only when you intentionally want wildcard matching with * and ?. A glob search that would take too long on a big scene is refused; use a shorter pattern, contains, or narrow it with types or frameId.

Use get_scene_content only when you need the full scene payload instead of just the matching nodes. It returns every element on the canvas, the app state, and the scene version. Elements that were deleted from the scene are left out (search_scene_content finds one with includeDeleted), and so are the scene's image files: an image element still has its position, size, and fileId. Pass images: true to also get the files in files, as base64 data URLs. They can be megabytes each, so ask for them only when the image data itself is needed, for example to export the scene. To look at a scene, use take_screenshot.

The drawing tools (edit_scene_content, create_mermaid_diagram, create_diagram, compose_slide, compose_slides, create_chart, create_table, create_sticky_notes) take newScene: { name, collectionId } instead of sceneId: they create the scene and draw in it in one call, and return its sceneId and url first. If the drawing then fails, the error names the scene that was created, so the next call can use it.

edit_scene_content is the higher-level MCP write tool for add, update, and delete operations, including label expansion and bound-text handling. One call adds, updates, deletes, or reorders at most 1,000 elements, one text or label holds at most 10,000 characters, and one call's add or update at most 50,000. On big scenes fewer zOrder moves fit in one call (the error says how many); split bigger work across calls.

Prefer label over standalone text when the text belongs to a shape. Use standalone text only for titles, subtitles, paragraphs, and intentionally separate annotations. For buttons, badges, cards, and boxed callouts, prefer rectangle label text instead of overlaying standalone text.

The server measures every text with the real fonts, in any language: a character a font lacks is measured with the font the browser falls back to (Excalifont's hand-drawn glyphs for Chinese, Japanese, and Korean). Standalone text doesn't wrap unless it is a fixed-width text box: "autoResize": false with a width wraps a paragraph at that width. Otherwise use \n for line breaks. Centered and right-aligned text is placed inside the x and width you pass, and "verticalAlign": "middle" with y and height centers it vertically, e.g. a placeholder inset in an input. Changing a text's content or font later re-measures it in place.

A box whose centered label only just fits grows a little, so the label keeps some room around it; the editor keeps labels only 5 px from the edge. A rectangle label aligned to an edge (textAlign left or right, verticalAlign top or bottom), such as a list in a canvas block or an input's placeholder, becomes an inset label: a text at least 12 px inside the box, wrapped at its width and grouped with it, and the box grows to hold every line. The result reports it as the box's labelId. Cards with several text styles are standalone texts inset 12-16 px and grouped with the box (groupIds).

freedraw strokes take a few points along the curve: the server draws a smooth stroke through all of them.

Prefer rectangles/cards for text-bearing content blocks. Use diamonds mainly for decision nodes in diagrams, not for dense or multiline content.

For add, send an array of new element skeletons (a JSON string of the array is also accepted) and do not include id. The server generates persisted IDs for newly added elements. The result lists every added element compactly (id, tempId, type, position, size, text, and labelId for labeled shapes) and returns warnings for anything done differently than asked, such as a skipped update. Common mistakes are corrected with an input_corrected warning instead of saving broken elements (a string label, "circle" for ellipse, a font name for fontFamily); unknown element types are rejected with the valid ones. An added element needs a numeric x and y, and an x, y, width, height, or angle that isn't a number is rejected in add and update.

Use tempId only for same-request references between newly added elements, such as frameId, containerId, startBinding.elementId, and endBinding.elementId.

Use real persisted IDs for update, delete, or when referencing elements that already exist in the scene.

Arrows that point at shapes must include startBinding and/or endBinding. Arrow geometry alone is decorative and will not stay attached. For same-request shape-to-shape arrows, add tempId to both target shapes and reference those tempIds from startBinding.elementId and endBinding.elementId. Use fixed points such as right [1, 0.5], left [0, 0.5], top [0.5, 0], and bottom [0.5, 1]. Same-request tempId arrow bindings are supported; the MCP adapter keeps target shape boundElements in sync, so agents do not need a separate call just to get real IDs.

For label updates, always send label as an object such as { "text": "New Label" }, not as a plain string. Label patches also take fontSize, fontFamily, strokeColor (the text color), textAlign, and verticalAlign. Rectangles, ellipses, diamonds, sticky notes, and arrows take labels; a label on a closed line (a polygon) becomes a centered text grouped with it, and open lines can't have labels. An inset label behaves like a label: label patches (on the box or on the text itself) and moving or resizing the box refit it, and deleting or restacking the box takes it along. Patching a label's alignment to an edge turns it into an inset label. Moving or resizing a label by its own id moves or resizes its shape, with a warning.

Updating elbowed switches an existing arrow between an elbow (orthogonal) arrow and a straight one; the server re-routes it and keeps its bindings.

Arrow labels can sit anywhere along the arrow. Set label.position to a number from 0 (arrow start) to 1 (arrow end), measured along the whole arrow path; the default is 0.5. It works in add payloads and in update patches, for example { "id": "arrowId", "label": { "position": 0.2 } }. position is only valid on arrow labels.

Sticky notes are a native element type: add them with "type": "stickynote" and put their text in label. The label font shrinks automatically to fit the note (never below 16) and the note only grows when the text still does not fit. Use one of the sticky note colors for backgroundColor: #ffdf6b (yellow, default), #a5d8ff, #b2f2bb, #fcc2d7, or #ffd8a8. Arrows bind to sticky notes exactly like to rectangles.

edit_scene_content applies operations in this order: delete, then update, then add.

The low-level REST scene-content write endpoints still exist in the public API, but they are intentionally not exposed as MCP tools. Use edit_scene_content for MCP writes.

For element and scene-content reference, see Scene Content Schema.

Dashboard

  • open_dashboard

Shows your Excalidraw+ dashboard in the chat: the scenes you modified and visited recently, and your collections. You can open a collection and load its scenes page by page, search scenes and collections by name, expand it to fullscreen, and open a scene in the Excalidraw+ editor inside the dashboard. The model can also open the dashboard at a collection or a search (collectionId, search). In ChatGPT, the dashboard is also the Excalidraw+ app in the sidebar. Scenes an app connected with OAuth draws in count as ones you modified, so they show up there and on your Excalidraw+ dashboard.

The dashboard is available in the chat apps that display it, ChatGPT and Claude, connected with OAuth. Clients that connect on their own (Claude Code, VS Code, Codex, Cursor, the Excalidraw CLI, anything with an API key) don't get it: they find scenes with list_scenes and list_collections.

Scene previews

In ChatGPT and Claude, connected with OAuth, the result of each tool that draws in a scene shows the scene in the chat: the whole drawing read-only (or the slide the tool drew on), following later changes. Only your latest preview of a scene is live: once a later tool call of yours changes the scene, earlier previews show an image of it. Drag to look around; hold Ctrl (⌘ on a Mac) and scroll, or pinch, to zoom. Edit, or a double-click, opens it fullscreen in the Excalidraw+ editor next to the chat, and the model then knows which scene and which elements you mean.

The previews ask get_scene_card, a tool for views only, whether a later call replaced them, and for that image. The views open scenes with get_scene_embed, also for views only: it signs a short-lived token that opens one scene in the embedded editor, and the chat apps hide it from the model. The token comes in the result's _meta, which they give the view only, so it never reaches the chat. Clients that connect on their own get neither tool, and their tool calls leave the previews in your chats live.

Format guides

  • read_diagram_format
  • read_presentation_format
  • read_freeform_format

Call the guide matching the task before adding hand-built content with edit_scene_content; updates, deletes, and the generator tools need none. The diagram guide explains which diagram tool fits, the Mermaid color classes, and the rules for hand-built swimlanes; the presentation guide covers the slide workflow; the freeform guide covers timelines, wireframes, boards, drawings, annotations, and other custom compositions.

Each guide takes an optional topics list and returns only those topics (the whole guide by default); every answer starts with the guide's topic list. core, the element, text, arrow, and color rules all guides share, can be skipped once read.

Diagrams

  • create_mermaid_diagram
  • create_diagram
  • get_diagram

Both build editable diagrams with the same layout engine (Pele, the engine behind Excalidraw's Mermaid import): they size every shape to its text, place and connect everything with bound arrows, and color nodes by meaning.

create_mermaid_diagram takes Mermaid syntax. Flowcharts, sequence, class, entity-relationship, and state diagrams become editable shapes and arrows, and mindmap becomes an editable two-sided mind map with a hue per branch; other Mermaid diagram types (pie, gantt, timeline, ...) become a static image in palette colors, with the title as editable text. Built-in classes color nodes without a classDef, in flowcharts and state diagrams, for example A:::database or class A,B service, and A:::note makes a sticky note. Unstyled nodes are colored by shape: decisions amber, databases green, start and end violet, the rest by subgraph. Flowchart edges are elbow arrows with small filled heads that stay orthogonal when you move the nodes. Their ends attach along the sides of shapes, including decision diamonds, and fixed middle segments preserve the laid-out path while the end legs adjust. Each takes the route with the fewest bends that crosses no box, label, or other arrow, and arrows meeting one side of a node are spread apart. A curve set in the definition's config (for example %%{init: {"flowchart": {"curve": "basis"}}}%%) keeps curved edges. Your own style, classDef, and linkStyle colors are kept; colors: "none" keeps Mermaid's own colors, and style: "clean" draws smooth strokes and straight instead of curved arrows. Syntax errors come back with the line and column to fix.

For example, this definition:

flowchart TB
  user["Customer"]:::client --> api["Checkout API"]:::service
  api --> pay{"Card\napproved?"}
  pay -->|yes| db[("Orders")]:::database
  pay -->|no| retry["Ask for\nanother card"]:::warning
  db --> mail["Receipt email"]:::queue

becomes:

The checkout flowchart drawn as editable shapes: classes color the client, service, database, warning and queue nodes, and the decision is an amber diamond

create_diagram takes semantic JSON instead: nodes with a kind (shape and color), optional groups, and edges with labels, arrowheads (a small filled triangle by default), and an outcome kind (success, failure, warning, info). Its edges are elbow arrows too. Nodes with kind: "note" render as sticky notes. Use DOWN for workflows and flowcharts or RIGHT for architecture maps and pipelines.

Both return a diagramId. To restructure or extend a diagram, call either tool again with the full new content and replaceDiagramId: the old diagram is replaced in place (on a slide, it stays on the slide, and it keeps its title unless the call sets one) and the rest of the scene is untouched, while manual edits made to it since are discarded. If the diagram was copied (a duplicated slide keeps the copy's id), pass frameId to replace the copy on that slide; copies that can't be told apart are not replaced. For a create_mermaid_diagram diagram, edits instead of mermaid changes only what differs: find/replace pairs applied to its stored definition, each find matching it exactly once, for example { "find": "B --> C", "replace": "B --> F{Fraud check}\n F --> C" }. The diagram keeps its title and layout options, and an edit that doesn't match changes nothing and returns the current definition to copy from. get_diagram lists a scene's generated diagrams, or returns one diagram's stored source (the Mermaid definition or the create_diagram input), bounds, and node map, so a diagram from an earlier conversation can be extended. Use edit_scene_content for small tweaks, and for layouts such as swimlanes and timelines that need custom positioning.

Charts

  • create_chart

create_chart draws column, bar, line, area, pie, donut, scatter, waterfall, and funnel charts from data as native, editable elements: the server computes the geometry, nice axis ticks, gridlines, value and category labels, legend, and palette colors. Series can be grouped, stacked, or stacked to 100%. highlight accents categories, valueFormat sets prefix, suffix, and decimals (axis ticks keep a unit suffix such as % or ms, but not a phrase such as of 12), and annotations add callouts. Zero values leave no sliver in a stack, and funnels label each stage's conversion rate. Pass frameId to draw on a slide and replaceChartId to redraw a chart in place with new data.

A column chart with two series, value labels, a highlighted quarter and an annotation

Tables

  • create_table

create_table adds an editable table from columns (headers) and rows of cell texts. It measures every cell with the real fonts (any language), sizes columns to their content within maxWidth, wraps long cells without breaking words, insets and aligns the text (numbers right, marks centered), and tints the header row. highlightColumn, highlightRows, zebra, and headerColor style it; right-to-left tables mirror. With frameId it is fitted onto a slide under its title. The result lists each cell's shape and text ids and a tableId for replaceTableId.

A table with a tinted header row and first column, sized to its content

Arranging content

  • transform_elements

transform_elements moves, scales, rotates, flips, and duplicates existing content, selected by elementIds, groupId, diagramId, chartId, tableId, or a slide's frameId; a selection brings along its groups, bound labels, and the arrows between selected shapes. Operations apply in order. Labels stay in their shapes and arrows bound to moved shapes follow them. duplicate with flip mirrors a copy next to the original, or around the line mirrorAt (a face's center line, so a left eye's copy lands where the right eye goes): the quick way to draw symmetric subjects.

Presentations

  • compose_slide
  • compose_slides
  • create_slide
  • update_slide
  • duplicate_slide
  • delete_slide
  • list_slides
  • set_slide_animations

compose_slide builds a finished slide from content: pick a layout (title, section, bullets, cards, columns, stats, steps, quote, diagram, chart, or table) and pass the text, and the server does all the geometry. It wraps and sizes text with the real fonts (growing it to fill the slide, shrinking it when content is long, never breaking words or leaving one word alone on a grown paragraph's last line), aligns and colors cards and columns, designs the slide (a tinted backdrop with soft shapes, drawn sparkles, and dot grids on title, section, and quote slides, with the section's number and the quote author's initials; soft corner shapes and a drawn squiggle under the title on the others; tinted bullet rows, stat cards, numbered steps, and shadowed cards with colored headings, all in the deck's accent color; decor: false for plain slides), and fits a Mermaid diagram (mermaid, with optional nodeSpacing and rankSpacing) into the slide, with the same bound elbow routes as the diagram tools. A step is a short phrase or a heading with a sentence of text, and a quote slide keeps its title above the quote. animate: "auto" reveals the items one click at a time (a flowchart node by node after its first node) with the animationEffect you pick; a chart reveals one category and a table one row per click, then the caption. Right-to-left slides (Arabic, Hebrew) are mirrored: text aligns right and cards, columns, and steps start at the right (direction, detected by default). Pass frameId to recompose an existing slide in place: what the tool drew is replaced, and anything people added to the slide stays and is listed in warnings.

A slide in the title layout
title
A slide in the bullets layout
bullets
A slide in the cards layout
cards
A slide in the stats layout
stats
A slide in the steps layout
steps
A slide in the diagram layout
diagram

compose_slides builds a whole deck in one call: an array of slides, each as compose_slide takes it, with deck-wide defaults for style, accent, decor, animate, animationEffect, and direction. A recomposed slide keeps its style, accent, decoration, and notes unless the call sets them, and a new slide takes the design of the deck's last slide. presenterNotes holds the talking points shown in presenter view (the key message, the story or data behind it, and the transition to the next slide); results report hasPresenterNotes and remind the model while a slide has none.

For a slide no layout fits, use one frame per slide. create_slide positions and orders the frame and returns its ID, bounds, safe area, and suggested layout regions. Fill that frame with edit_scene_content, setting every child element's frameId and using absolute canvas coordinates inside the returned safe area. Use update_slide for the slide's name (title is still accepted), presenter notes, and slide order so frame metadata is merged safely. duplicate_slide copies a slide with its content, notes, and animations next to the original, and delete_slide removes a slide and renumbers the deck. Use list_slides to review ordered slides, bounds, safe areas, notes, element counts, and reveal animations.

set_slide_animations sets a slide's reveal sequence for presentation mode. Pass steps in order; each step lists elementIds revealed on one presenter click, an entrance effect (fade, slide-up, slide-down, slide-left, or slide-right; slide effects are named by direction of travel), and optionally withPrevious: true to play on the same click as the previous step. Shape labels animate together with their shape. Each call replaces the slide's whole sequence, elements that are not listed stay visible from the start, and steps: [] removes all animations. Every element must belong to the slide.

Sticky notes

  • create_sticky_notes

create_sticky_notes adds a board of sticky notes for brainstorms, retrospectives, affinity maps, idea walls, and to-do boards. Pass clusters, each with an optional title, an optional color (yellow, blue, green, pink, or orange), and a list of short note texts. The tool places clusters side by side with wrapped headings and aligns the notes into compact grids (notesPerRow and noteSize override the defaults); columns wraps the clusters into a grid of equal cells, so columns: 2 with four clusters makes a 2x2 matrix. With frameId the board goes onto a slide, under its title and shrunk to fit; x, y, width, and height place and limit it explicitly. Notes added through MCP tools leave out the editor's creation-date footer; showDates: true keeps it on a board. It returns element IDs for the title and every cluster heading, and every note's ID and bounds and each cluster's cell, for follow-ups such as dot votes or quadrant boxes. For a single note, or notes next to existing content, add stickynote elements with edit_scene_content.

A retro board of four sticky-note clusters in a 2x2 grid

Sharing

  • share_scene
  • share_presentation
  • list_readonly_links
  • create_readonly_link
  • update_readonly_link
  • delete_readonly_link

share_scene turns a scene's public link on with view or edit access, or off with none, and returns the link. It is the same link as in the scene's Share dialog: anyone with it can open the scene without signing in, and guests can comment once the link is turned on.

share_presentation turns the scene's shared slides on or off and returns the link, which plays each frame as a slide. The scene needs at least one frame. The link stays the same when sharing is turned off and on again. Its settings change what the Share presentation dialog changes: slide titles, slide transitions, animations, downloads and auto-play. Replacing the scene's content so that no frames remain turns the shared slides off and resets the link's settings, as the app does when every slide is deleted.

create_readonly_link creates a read-only link, the same as the scene's Embeddable links dialog: anyone with it can view the scene without signing in, and its embedHtml iframe embeds the scene in another site. Ask the agent to draw something and embed it, and it returns the embed code in the same reply. A link starts on a frame (frameId), on some elements (elementIds, such as the ones a drawing tool returned) or on an area. Without any of them, it starts on all of the scene's content. A scene can have several read-only links, each with its own start and display options. update_readonly_link changes a link, or turns it off and on with status, and delete_readonly_link deletes it for good.

Turning a link on, and creating a read-only link, fails when a workspace admin has disabled scene sharing. Turning a link off still works.

Images and verification

  • add_image
  • check_scene_layout
  • take_screenshot

add_image accepts one public URL or base64 data URL, supports PNG, JPEG, GIF, WebP, and SVG, and can place the resulting editable image inside a slide frame. URLs must point at public hosts: private, loopback, and link-local addresses are refused however the URL spells them, also after redirects. Images are limited to 8 MB. It detects natural dimensions and preserves the aspect ratio when only one render dimension is supplied.

check_scene_layout finds layout problems without rendering: text sticking out of shapes, words broken mid-word, text on top of other text or crossed by lines (line_through_text), arrows passing through shapes or running inside the shape they are bound to, arrows that detour or make U-turns, arrows drawn on top of each other (arrow_overlap) or crossing each other (arrow_crossing, from two crossings up, one warning per generated diagram, with how to untangle it), arrow labels covering shapes, overlapping shapes that hide text, unbound arrowheads that touch a shape, generated diagrams too long to read when fitted to a screen (diagram_aspect), text cramped against the edge of its box (tight_text), text in a font that has none of some of its letters (missing_glyphs, e.g. Czech in Lilita One), and elements outside their frame. Deliberate overlaps (Venn circles, illustrations, translucent shapes) are not reported. Each problem names the elements and the fix.

Before: text sticks out of its box (text_overflow) and an arrow runs through a shape (arrow_through_shape). After: the box fits its label and the shape is moved out of the arrow's way
It checks a whole scene, one frame, or a set of elements. Write tools run the same check on what they changed and return the problems as layoutIssues. Large layout checks run separately from request handling. Write tools run these checks before saving; a cancelled call saves nothing. When a write's check can't run (the server is busy), the write is still saved and returns a check_incomplete warning instead: call check_scene_layout on the changed elements later. Diagram and slide tools that are busy fail without saving; retry them shortly. A check stops after about two seconds; on scenes too big for that it returns what it found with a check_incomplete warning, so check one frame or the changed elements instead.

take_screenshot renders the full scene, one frame, or the region around elementIds as PNG. Pass the element ids a write returned to see what changed at full resolution, together with anything it overlaps. The drawing tools and transform_elements take screenshot: true to include a render in their own result, which saves a call: the slide they changed, the whole scene while it fits a screen readably, or in a larger scene the region around the change; a failed render doesn't fail the write (compose_slides takes no screenshot: check its slides one at a time). When the renderer is unavailable, it says so: the scene is saved, and check_scene_layout still verifies it.

A screenshot loads only the images it shows: one slide of a deck loads that slide's images, not the deck's. On a scene with many or large images, take_screenshot with images: false is faster still: it loads none and draws each image as a grey placeholder, which is enough to check layout, text and shapes. A render that takes too long says so and asks for a smaller one (a frame, a region, or no images) rather than a retry.

Collections

  • list_collections
  • create_collection
  • get_collection
  • update_collection
  • delete_collection
  • list_collection_scenes (deprecated alias of list_scenes with collectionId)
  • create_collection_scene (deprecated alias of create_scene)

create_scene and create_collection_scene do the same thing: both create an empty scene in the given collection and return its sceneId and app url. The list tools return 25 items per page by default (up to 100 with limit); page with offset while hasNextPage is true.

Personal MCP/API keys can use private as the collection ID to list, create, and move scenes in the key owner's virtual private collection. Workspace keys cannot access it. The private collection already exists virtually and cannot be created, renamed, or deleted; create_collection always creates a regular shared collection.

A collection key (see Collection keys) gets only the scene and collection tools: list_scenes and list_collections return only its scenes and collections, and any other scene or collection ID returns "not found". Tools for creating or deleting collections, the workspace, members, invites and logs are not offered to it.

Workspace

  • get_workspace
  • update_workspace

Users

  • list_workspace_users
  • get_workspace_user
  • update_workspace_user
  • remove_workspace_user

Invites

  • list_invites
  • create_email_invite
  • create_invite_link
  • get_invite
  • update_invite
  • delete_invite

Use create_email_invite for a specific recipient. Use create_invite_link for a reusable link with optional usage and domain restrictions.

Logs

  • list_logs

Clients that only draw can hide the workspace administration tools (workspace, users, invites, logs) by adding ?toolsets=drawing to the MCP URL or sending an X-MCP-Toolsets: drawing header; admin limits a session to those tools, and all (the default) keeps every tool.

Your MCP client may show fewer tools than listed above if your API key does not include permissions for the underlying routes. MCP-only tools still follow the same route permission checks.

Last updated on

On this page