Skip to main content
Glama

Try it in 10 seconds

docker run --rm -p 127.0.0.1:3000:3000 -e PREVIEW_MODE=true ghcr.io/maciekzygmunt/excaliself

Open http://localhost:3000/preview/login to sign in as the admin, with example drawings. To test live collaboration, open http://localhost:3000/preview/login?account=new in a second browser: it signs in as a new member.

Data lives in memory and is gone when the container stops. For real use, see Deploy.

Related MCP server: Excalidraw MCP App

Features

  • The full Excalidraw editor, with auto-save. Images pasted into a drawing are stored too.

  • Live collaboration. Share a drawing by link and edit it together in real time, with live cursors and follow mode. Links can be for members only or for anyone, including guests without an account.

  • Team space. A shared space every member can see and edit, next to each member's private space. Team drawings are always live.

  • Team library. One Library panel of shapes and icons for the whole team, saved on the server and updated live. Libraries from libraries.excalidraw.com install into it.

  • Folders, stars, and recents. Nest folders and drag drawings between them in the sidebar.

  • Search by title and by the text inside drawings, in the gallery and the command palette (⌘K / Ctrl K), which also runs actions.

  • Import from Excalidraw+ (beta). Bring your scenes, collections, and images over with an Excalidraw+ API key (Settings → Import).

  • Drop files in. Drag .excalidraw files (or .png/.svg exports with the scene) from your computer onto a folder in the sidebar.

  • Trash with restore. Deleted items are purged automatically after 30 days.

  • Invite-only accounts. The first visitor creates the admin account; everyone else joins by invite link.

  • Connect your AI client. Claude.ai, Claude Code, Claude Desktop, and other MCP clients can find, read, create, and export drawings, propose changes to them, and move them to the trash. A change waits on the canvas until you click Apply, and then everyone in the drawing sees it live. Clients sign in with OAuth or a personal access token. The instance needs no LLM API key.

  • Single sign-on with Google Workspace, Microsoft Entra ID, or any OIDC provider (Okta, Authentik, Keycloak). People from your email domains join on their first sign-in, with no invite.

  • Admin tools under Settings: manage members and roles, create password-reset links, and see instance stats.

  • Light and dark themes, or follow the system setting, with an optional separate theme for the canvas.

Deploy

Each path runs the app next to its Postgres database and pulls the prebuilt image ghcr.io/maciekzygmunt/excaliself (amd64 and arm64), so nothing is built on your server. The same image is on Docker Hub as maciekzygmunt/excaliself. latest is the newest release. The app applies database migrations when it starts, so updating is running a newer image.

Docker Compose

mkdir excaliself && cd excaliself
curl -fsSLO https://raw.githubusercontent.com/maciekzygmunt/excaliself/main/docker-compose.yaml
curl -fsSL -o .env https://raw.githubusercontent.com/maciekzygmunt/excaliself/main/.env.example
# set POSTGRES_PASSWORD, BETTER_AUTH_SECRET, and BASE_URL in .env
docker compose up -d

Open BASE_URL (default http://localhost:3000). The first visit takes you to /setup to create the admin account. Postgres is not published on the host. Put a reverse proxy with HTTPS in front of port 3000 for anything public.

To update, run docker compose pull && docker compose up -d. To pin a release, set EXCALISELF_VERSION (e.g. 1.0.0) in .env. To build the image from source instead (needs about 4 GB of RAM), clone the repo and run docker compose -f docker-compose.yaml -f docker-compose.build.yaml up -d --build. The docs have the details.

Coolify

  1. Add a new resource from the public repository https://github.com/maciekzygmunt/excaliself, branch main.

  2. Choose the Docker Compose build pack and set Docker Compose Location to /docker-compose.coolify.yaml.

  3. Click Deploy.

Coolify creates the database, generates the secrets, and assigns a domain, so there is nothing to configure. If your server has no wildcard domain, first set a domain on the excaliself service with the container port, e.g. https://draw.example.com:3000. Open the domain to create the admin account. To pin a release instead of latest, set EXCALISELF_VERSION (e.g. 1.0.0) in the resource's environment variables. Drawings live in the pgdata volume and survive redeploys.

Railway

Deploy on Railway

The template runs the app next to a Railway Postgres database. It generates the auth secret and a domain, so there is nothing to configure. Open the domain to create the admin account. To set it up by hand or to upgrade, see the docs.

Hostinger

Deploy on Hostinger

The button opens Hostinger's Docker Manager with docker-compose.yaml. Before you deploy, set POSTGRES_PASSWORD, BETTER_AUTH_SECRET, and BASE_URL in the project's environment, as for Docker Compose. Open BASE_URL to create the admin account. See the docs.

App stores

  • TrueNAS: in Apps, search for Excaliself (community train). Set App URL to the address you open it at. Store page.

  • Unraid: in Apps, search for Excaliself. Install postgresql17 first. Store page.

  • Portainer: in the Portainer Templates list.

The docs have the fields to fill in.

Configuration

Docker Compose reads these from .env. Coolify sets them for you.

Variable

Required

Description

POSTGRES_PASSWORD

Yes

Password for the bundled Postgres. Use hex (openssl rand -hex 24): it goes into a connection URL

BETTER_AUTH_SECRET

Yes

Session signing secret, at least 32 characters (openssl rand -base64 32)

BASE_URL

Yes in production

Public URL of the instance (default http://localhost:3000)

EXCALISELF_VERSION

No

Image tag to run: latest (default), a release like 1.0.0 or 1.0, or main

EXCALISELF_PORT

No

Host port for the app (default 3000). 127.0.0.1:3000 keeps it local to a reverse proxy

POSTGRES_USER, POSTGRES_DB

No

Bundled Postgres user and database (default excaliself)

IMAGE_UPLOADS_PER_MINUTE

No

Image uploads allowed per minute, per IP, in each live drawing (default 30). See Environment variables

GOOGLE_*, MICROSOFT_*, OIDC_*, SSO_ALLOWED_DOMAINS

No

Single sign-on. See Single sign-on

PREVIEW_MODE

No

true runs a throwaway instance for a pull request preview: an in-memory PGlite instead of Postgres, seeded with an admin and example drawings. It ignores DATABASE_URL and BASE_URL and makes BETTER_AUTH_SECRET optional. /preview/login signs in as the admin (admin@example.com / preview-password), /preview/login?account=new as a new member. Data is lost on restart. See PR previews

PREVIEW_HOSTS

With PREVIEW_MODE behind a domain

Comma-separated hosts a preview answers on, e.g. *.draw.example.com. Auth refuses other hosts; localhost always works

GET /api/health returns 200 when the app is up and can reach Postgres.

If the only admin loses their password, see Recover admin access.

Connect an AI client (MCP)

Excaliself has an MCP server at /api/mcp. Your AI client brings the model, so the instance needs no LLM API key.

Claude.ai (web, desktop, and mobile) signs in with OAuth, with no token. In Claude, open Settings, then Connectors, click Add custom connector, and enter https://<your instance>/api/mcp. Then sign in to Excaliself and click Allow. The instance must be reachable from the public internet over HTTPS.

Other clients use an access token:

  1. In Excaliself, open Settings, then MCP, and click New token. Copy the token: you see it only once.

  2. Add the server to your client, with your instance's URL and the token.

Claude Code (the token dialog shows this command filled in):

claude mcp add --transport http excaliself https://draw.example.com/api/mcp \
  --header "Authorization: Bearer exs_..."

Claude Desktop cannot send a token to a remote server itself, so it connects through mcp-remote, which needs Node. Open Settings, then Developer, then Edit Config, add this to claude_desktop_config.json, and restart Claude Desktop:

{
  "mcpServers": {
    "excaliself": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://draw.example.com/api/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": { "AUTH_HEADER": "Bearer exs_..." }
    }
  }
}

Other clients that use Streamable HTTP: the URL is https://<your instance>/api/mcp. A client that supports OAuth with dynamic client registration signs in by itself. Otherwise, send the header Authorization: Bearer <token>.

The tools:

  • list_drawings, search_drawings, and list_folders find drawings, with their space and folder.

  • read_drawing describes a drawing: its shapes, text, and what the arrows connect. It does not send the raw Excalidraw JSON.

  • export_drawing exports a drawing as a PNG or SVG image, for example for your documentation. An SVG contains the drawing's fonts. export_scene exports it as an .excalidraw file.

  • create_drawing makes a new drawing in your private space or in Team, optionally in a folder, from simple shapes and arrows or a Mermaid flowchart.

  • edit_drawing proposes a change to a drawing: shapes, text, and arrows to add, change, or remove. Nothing changes until you click Apply on the drawing. get_drawing_edit tells the client whether you applied it.

  • create_folder makes a folder in your private space or in Team, optionally inside another folder.

  • move_drawing moves a drawing into a folder, or to the top of its space. A drawing cannot move between your private space and Team.

  • trash_drawing and trash_folder move a drawing, or a folder with everything in it, to the trash. restore_drawing and restore_folder take them out again.

A token or a connected app acts as you: it sees what you see, and it can trash what you can trash. It can create drawings and folders, and move drawings between folders. It cannot change what is in a drawing until you click Apply, and it cannot delete anything for good: trashed items stay in Trash for 30 days. Revoke a token or disconnect an app under Settings at any time. When an admin deletes a member, that member's tokens and apps stop working.

Stack

TanStack Start · React 19 · Better Auth · Postgres + Drizzle · Tailwind CSS 4 + shadcn/ui on Base UI · @excalidraw/excalidraw

Local development

Requires Node 22, pnpm, and Docker.

pnpm install
cp .env.dev.example .env                           # works as-is
docker compose -f docker-compose.dev.yaml up -d    # Postgres on 127.0.0.1:5432
pnpm dev                                           # http://localhost:3000

pnpm dev:preview needs no Postgres and no .env: it runs in preview mode (see PREVIEW_MODE above). Open /preview/login.

pnpm test, pnpm typecheck, and pnpm lint run the checks. pnpm db:generate creates a migration after a schema change. Releases are cut from git tags; see docs/releasing.md.

Sponsors

Excaliself is free and MIT. If your team uses it, sponsoring pays for the time that goes into fixes and releases.

License

MIT. There is no promise of support or reviews for contributions, so feel free to fork it and make it yours.

Built on Excalidraw, MIT © Excalidraw. Excaliself is not affiliated with Excalidraw. "Excalidraw" is a trademark of its owner; this project uses the open-source @excalidraw/excalidraw package.

Available Tools

20 tools
add_commentAdd commentA

Starts a comment thread on a drawing, pinned to an element (see read_drawing for ids) or, without one, to the top-left of the drawing. Every member who can see the drawing sees it at once.

Inputs: id (required), body (required), elementId.

create_drawingCreate drawingA

Creates a NEW drawing from simple elements and/or a Mermaid flowchart, and returns its link. To change an existing drawing, use edit_drawing.

Elements: shapes ("rectangle", "ellipse", "diamond") with an optional label; "text"; and "arrow" or "line" connectors that join shapes by id ("from", "to") or run between points ("start", "end"). Shapes and text without x/y are laid out automatically, in "direction", with arrows routed between them; labels wrap and shapes grow to fit. Auto-layout gives the cleanest diagrams: give x/y (top-left, pixels, y grows down) only for layouts a graph can't express, such as grids or timelines. Keep arrow labels to a few words; put detail in shape labels or a text note.

Mermaid: a "flowchart"/"graph" diagram, with node shapes, edge labels, dotted and thick edges, subgraphs (drawn as titled boxes), and node colors from "style id fill:#a5d8ff,stroke:#1971c2" lines (hex or named colors) (classDef and class are ignored). Other Mermaid diagram types are not supported. Both can be sent at once: they are laid out together, and arrows may join flowchart nodes by their Mermaid ids. Up to 500 elements in all, Mermaid nodes and edges included.

Colors: Excalidraw's palette reads best, e.g. backgrounds "#a5d8ff" (blue), "#b2f2bb" (green), "#ffec99" (yellow), "#ffc9c9" (red), "#d0bfff" (violet), "#e9ecef" (gray).

Inputs: name (required), space, mermaid, elements, +2 more.

create_folderCreate folderA

Creates a folder, at the top of a Space or inside another folder. Put drawings in it with create_drawing or move_drawing.

Inputs: name (required), space, parentId.

edit_drawingPropose a drawing editA

Proposes a change to an existing drawing. Nothing changes until the member clicks Apply on the drawing in Excaliself, where they see a preview; this tool then reports "applied", "discarded", or "stale". It waits up to 25 seconds for that, then returns "pending": tell the member to open the link, and call get_drawing_edit later.

Read the drawing with read_drawing first, and refer to its elements by the [id …] it shows.

  • add: new elements, in create_drawing's format. Arrows may join existing shapes by element id ("from", "to"). Give new shapes x/y next to the shapes they relate to (read_drawing gives positions); without x/y they are laid out beside the drawing.

  • change: by element id. Shapes take label, x/y (move), width/height, colors, and strokeStyle; text takes text, x/y, and strokeColor; arrows take label, strokeColor, and strokeStyle. Arrows bound to a moved shape follow it. To attach an arrow to other shapes, remove it and add a new one.

  • remove: element ids. A shape's label goes with it; arrows bound to it stay, unattached.

Inputs: id (required), summary (required), add, change, +1 more.

export_drawingExport drawing as imageA
Read-only

Exports a drawing as an image file, as Excalidraw's "Export image" does, for documentation, a README, or slides. The file comes back attached: PNG as image content, SVG as an embedded resource. Clients that save attachments give you a file path to copy from.

"png" (default) is a bitmap that every client can show. "svg" stays sharp at any size and embeds the drawing's fonts, so it looks the same anywhere, even in an .

Inputs: id (required), scale, format, padding, +2 more.

export_sceneExport drawing as .excalidraw fileA
Read-only

Exports a drawing as an .excalidraw file: the raw scene JSON that Excalidraw's "Save to file" writes, which Excalidraw and excalidraw.com open. The file comes back attached as an embedded resource; clients that save attachments give you a file path to copy from. To understand a drawing, use read_drawing instead.

Images are left out by default: their elements stay, but show as missing images. With includeImages they are embedded as base64, which can be large. Files over 10 MB are refused.

Inputs: id (required), includeImages.

get_drawing_editCheck a drawing editA
Read-only

Reports whether the member applied an edit from edit_drawing. While it is still pending, waits up to 25 seconds for their decision.

Inputs: editId (required).

import_sceneImport sceneA

Creates a NEW drawing from an Excalidraw scene: the JSON of a .excalidraw file, as Excalidraw's "Save to file" writes it, with images inline in "files". Returns its link. To draw from a description instead, use create_drawing.

Up to 50,000 elements and 20 MB of element JSON; images up to 20 MB in all. The whole call must stay under 4 MB; send a large scene as JSON text, not an object. Images with no entry in "files" open as placeholders.

Inputs: scene (required), name, space, folderId.

list_commentsList commentsA
Read-only

Lists the comment threads pinned to a drawing, oldest first, with their comments. Each thread is pinned to an element (with its label, or deleted: true once the element is gone) or to a canvas point.

Inputs: id (required), includeResolved.

list_drawingsList drawingsA
Read-only

Lists the drawings you can see, most recently edited first, with their Space and folder.

Inputs: limit, space, folderId.

list_foldersList foldersB
Read-only

Lists the folders you can see, with their Space and path.

Inputs: space.

move_drawingMove drawingA
Destructive

Moves a drawing into a folder, or to the top of its Space. The folder must be in the drawing's Space: a drawing can't move between Spaces.

Inputs: id (required), folderId.

read_drawingRead drawingA
Read-only

Describes a drawing: its shapes and their labels, text, which shapes arrows connect, and what sits inside what, with positions and element ids (for edit_drawing). Not the raw Excalidraw JSON.

Inputs: id (required).

reply_to_commentReply to commentA

Adds a comment to an open thread. A resolved thread must be reopened first (resolve_comment with resolved: false).

Inputs: body (required), threadId (required).

resolve_commentResolve commentA
Idempotent

Resolves a comment thread when what it asks for is done, or reopens it. Resolved threads are hidden on the canvas by default.

Inputs: threadId (required), resolved.

restore_drawingRestore drawingA
Idempotent

Takes a drawing out of the trash, back to its folder. If that folder is gone, it lands in the nearest folder above it, or at the top level.

Inputs: id (required).

restore_folderRestore folderA
Idempotent

Takes a folder out of the trash, with everything that was trashed with it. If its parent folder is gone, it lands in the nearest folder above it, or at the top level.

Inputs: id (required).

search_drawingsSearch drawingsA
Read-only

Finds drawings whose name or text contains every word of the query, case-insensitive. Name matches come first; each result has a snippet of the text around the match.

Inputs: query (required), limit, space.

trash_drawingMove drawing to trashA
DestructiveIdempotent

Moves one drawing to the trash. Members can restore it from Trash for 30 days; after that it is deleted for good. In Team, every member loses it.

Inputs: id (required).

trash_folderMove folder to trashA
DestructiveIdempotent

Moves one folder to the trash, with its subfolders and every drawing in them. Members can restore it from Trash for 30 days, as one unit; after that it is deleted for good. In Team, every member loses it.

Inputs: id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools target a distinct resource+action, and descriptions explicitly disambiguate the risky pairs (create_drawing vs import_scene, export_drawing vs export_scene, edit_drawing vs get_drawing_edit). The remaining overlap is mild — two creation paths and a propose/poll edit pair — but an agent could still hesitate before choosing between them.

    Naming Consistency5/5

    Nearly every name is a clean snake_case verb_noun on a resource (read_drawing, trash_folder, resolve_comment), with parallel naming across drawings and folders. The few preposition/three-word forms (get_drawing_edit, reply_to_comment) still follow the same verb-first convention.

    Tool Count4/5

    20 tools is slightly above the comfortable range, but the surface spans drawings, folders, trash/restore, export/import, and comments, so most tools earn their place. The trash/restore quartet and export/import trio are the main places where a leaner surface was possible.

    Completeness4/5

    Core lifecycle is well covered: create/read/edit/list/search/move/trash/restore for drawings, folders, comments, and both export and import. Gaps are notable but workaroundable — there is no rename for drawings or folders, no way to move or re-parent a folder after creation, and no duplicate or permanent-delete operation.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers