excalidraw-board_board
Provides tools for opening, creating, renaming, appending to, and reading Excalidraw whiteboard boards stored as plain .excalidraw files, plus a sandboxed Excalidraw canvas UI. Supports bidirectional sync (AI draws, the user edits in the side pane, changes auto-save and are read back as semantic diffs with rolling checkpoints), project-aware vs. global board storage, and element-level structure summaries.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
excalidraw-board
A local, bidirectional Excalidraw whiteboard MCP App plugin for Google Antigravity's side pane (aux_pane).
Unlike one-way diagram generators, excalidraw-board closes the full collaborative loop:
AI draws on the canvas → you drag, edit, and annotate directly in the side pane → changes auto-save as plain .excalidraw files → AI reads back semantic diffs and exact structure.
Key Features
True Bidirectional Sync:
AI opens, draws, appends, or renames boards via MCP tools (
open_board,read_board,list_boards).Manual edits in the side pane auto-save to disk (450 ms debounce), and a one-click Ask AI button prompts the agent to read your latest edits.
Project-Aware Dual-Layer Storage (Zero Metadata Pollution):
Project chats: Saved cleanly to
<workspace_dir>/.excalidraw/<name>.excalidraw(easy to version-control alongside code, with no sidecar metadata files).Non-project chats: Saved to a neutral folder
~/Documents/Excalidraw/<name>.excalidraw(configurable viaglobalBoardsDir).Private state isolation: Revision numbers, diff checkpoints, and project registry live outside your repos under
${PLUGIN_DATA}keyed by file-path hash.
Cross-Scope Write Guardrail:
Reading any
.excalidrawfile across projects or global storage works freely viafile_path.Writing or renaming a board outside the current conversation's scope is blocked until the user explicitly chooses
edit_in_placeorcopy_to_workspace.
Semantic Diff & Rolling Checkpoints (
smartDiff):read_boardreturns a content-focused semantic diff (added/removed elements, text edits, arrow re-bindings, style changes) while filtering< 8pxlayout jitter.Keeps 10 rolling checkpoints per board (
since_revision) and uses tiered raw JSON (<= 25elements included automatically; larger boards fetch geometry on demand viainclude_raworelement_ids).
Clean Split Toolbar & Draft Workflow:
Top bar features linked borderless dropdowns (
{Project ▾} / {File ▾}), Fit, and Ask AI.Opening without a specific file lands on an empty
Newdraft that never creates a file until you actually draw (auto-materializing asuntitled-YYMMDD-HHMM, which the companion skill prompts the AI to rename on sight).Manual side-pane opens without a single host workspace present a clean Select Project picker before entering the canvas.
Fast Local Startup (Zero Remote JS/CSS Downloads):
Lightweight single-file UI shell (
dist/src/app.html, ~860 KB) bundles React, UI, and Excalidraw CSS locally—well under Antigravity's 2 MiB upstream proxy response limit.Trimmed Excalidraw core (keeps
en+zh-CN, stubs unused locales and heavy Mermaid/Cytoscape bundles) is gzipped and served in< 450 KBchunks via the app-onlyget_vendor_chunktool and decompressed in-browser.
Related MCP server: excalidraw-mcp
Architecture
Antigravity Host (Side Pane / Remote Web)
│
├── MCP Tools (stdio) ──────────► server/index.mjs
│ open_board / read_board / ├── server/storage.mjs ──► <project>/.excalidraw/*.excalidraw
│ list_boards │ ──► ~/Documents/Excalidraw/*.excalidraw
│ │ ──► ${PLUGIN_DATA}/state/<sha256>.json
│ └── server/diff.mjs ──► Semantic diff & structure summary
│
└── MCP App UI (ui:// sandbox) ◄─ dist/src/app.html (~860 KB local shell)
└── app-only RPC bridge ──► get_vendor_chunk (dist/vendor/chunk-*.b64, gzipped Excalidraw)
save_board_state / get_board_stateInstallation (Google Antigravity)
1. Clone and Build
Requires Node.js 20+ and npm.
git clone https://github.com/liefzyj/excalidraw-board.git
cd excalidraw-board
npm install
npm run build
npm run verify:bundlenpm run build compiles both:
dist/vendor/chunk-*.b64+manifest.json(trimmed, gzipped local Excalidraw core)dist/src/app.html(self-contained UI shell)
2. Mount as an Antigravity Plugin
Copy the template files from plugin/ into your Antigravity plugins directory:
mkdir -p ~/.gemini/config/plugins/excalidraw-board/skills/excalidraw-board
cp plugin/plugin.json ~/.gemini/config/plugins/excalidraw-board/plugin.json
cp plugin/mcp_config.example.json ~/.gemini/config/plugins/excalidraw-board/mcp_config.json
cp plugin/skills/excalidraw-board/SKILL.md ~/.gemini/config/plugins/excalidraw-board/skills/excalidraw-board/SKILL.mdEdit ~/.gemini/config/plugins/excalidraw-board/mcp_config.json and replace /ABSOLUTE/PATH/TO/excalidraw-board with the actual cloned directory (and use the absolute path to node, e.g., /opt/homebrew/bin/node, if node is not in the default GUI PATH):
{
"mcpServers": {
"board": {
"command": "/opt/homebrew/bin/node",
"args": [
"/path/to/excalidraw-board/server/index.mjs",
"--data_dir=${PLUGIN_DATA}"
]
}
}
}Enable the excalidraw-board plugin in Antigravity (or restart the excalidraw-board_board MCP server from Settings).
MCP Tools
Tool | Purpose | Key Parameters |
| Open, create, rename, or update a board in the side pane |
|
| Read latest persisted board state, semantic diff, and structure summary |
|
| List saved |
|
App-only internal tools (save_board_state, get_board_state, get_vendor_chunk) are hidden from the model via _meta.ui.visibility: ["app"] and used exclusively by the sandboxed UI view.
Runtime Configuration (settings.json)
The server hot-reloads ${PLUGIN_DATA}/settings.json on every call (default path: ~/.gemini/antigravity/plugin_data/excalidraw-board/settings.json)—no rebuild or MCP restart needed:
{
"smartDiff": true,
"globalBoardsDir": "~/Documents/Excalidraw",
"promptScopeOnManualOpen": true,
"projectRoots": []
}smartDiff(trueby default): Enables content-focused semantic diffs, rolling checkpoints, tiered raw JSON (<= 25auto-raw), and a 1-line model context hint. Set tofalseto fall back to full element dumps on every read.globalBoardsDir: Directory used for non-project boards (default~/Documents/Excalidraw).promptScopeOnManualOpen(trueby default): Shows the Select Project overlay when opened manually from the side pane without a single detected host workspace root.projectRoots: Optional list of parent directories (e.g.,["~/Projects"]) whose immediate subdirectories are automatically listed in the project switcher.
Language: The UI and Excalidraw canvas default to English (
en). Simplified Chinese (zh-CN) is also bundled in the local vendor build and can be switched anytime from Excalidraw's built-in canvas menu.
Development & Updates
Command | Description |
| Full build: local Excalidraw vendor chunks + UI shell |
| Fast rebuild of the UI shell only ( |
| Rebuild gzipped Excalidraw vendor chunks ( |
| Assert shell |
| Check outdated frontend dependencies |
| Update compatible minor versions, type-check, rebuild, and verify bundle limits |
After UI-only edits (npm run build:ui), simply close and reopen the side-pane Excalidraw tab. After server edits (server/*.mjs), restart the excalidraw-board_board MCP server in Antigravity.
Repository Layout
excalidraw-board/
├── server/
│ ├── index.mjs # Stdio MCP server & MCP App resource/tool handlers
│ ├── storage.mjs # Dual-layer .excalidraw storage, project registry & checkpoints
│ └── diff.mjs # Semantic content diff & lightweight structure summarizer
├── src/
│ ├── App.tsx # MCP App host bridge, auto-save, polling & toolbar shell
│ ├── components/
│ │ ├── BoardPicker.tsx # Linked {Project ▾} / {File ▾} toolbar switchers
│ │ ├── SheetDropdown.tsx # Reusable Excalidraw-sheet popover dropdown
│ │ └── ScopePickerOverlay.tsx # Pre-canvas Select Project overlay
│ ├── utils/
│ │ ├── boardNaming.ts # Draft naming & element normalization helpers
│ │ └── loadLocalExcalidraw.ts # Chunked gzip vendor loader over MCP RPC
│ ├── vendor/
│ │ └── excalidraw-entry.ts # Trimmed Excalidraw IIFE entry
│ └── global.css # Light/dark tokens & Excalidraw-sheet styling
├── scripts/
│ ├── build-vendor-chunks.mjs # Gzip & <450 KB base64 chunker
│ └── verify-bundle.mjs # Size & zero-CDN integrity guardrails
├── plugin/ # Ready-to-mount Antigravity plugin template & skill
├── vite.config.ts # Single-file UI shell build config
├── vite.vendor.config.ts # Trimmed Excalidraw vendor build config
└── LICENSE # MIT LicenseLicense
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A shared Excalidraw board that people and agents draw on together
Markdown notes and whiteboards your AI agent can read and write.
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
A collaborative whiteboard your AI assistant can read, fill and show live, with changes you review.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to programmatically control a live Excalidraw canvas with element-level CRUD operations and real-time synchronization. It supports iterative diagramming through scene descriptions, screenshots, and advanced layout tools for collaborative AI-human workflows.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to build, edit, organize, and export Excalidraw diagrams (architecture, flowcharts, etc.) entirely headless, producing .excalidraw files, SVG, and PNG renders.3,392 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to collaboratively read, write, draw, and diagram on a shared real-time whiteboard canvas with live human edits.1MIT
- AlicenseAqualityBmaintenanceLets Claude, Codex, Cursor and other MCP clients draw hand-drawn Excalidraw diagrams on a local whiteboard, saving them as real .excalidraw files the agent can inspect, revise and undo. It also provides rendering to PNG, SVG import, and docs so agents can self-serve setup and troubleshooting.1954 npm1MIT