An MCP server that lets AI agents draw hand-drawn Excalidraw diagrams as files on your machine.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Give your agent a whiteboard. sketchdex.dev
Sketchdex is an MCP server that lets Claude, Codex, Cursor and any other MCP
client draw hand-drawn Excalidraw diagrams while it explains something. Scenes
are real .excalidraw files in a folder on your machine. The agent can draw,
look at what it drew, and fix it; you can open the result in the bundled
library app or on excalidraw.com and keep editing.
Built on the official @excalidraw/excalidraw package, so the canvas is the
real thing. MIT.
Needs Node 20 or newer. Rendering (render_scene) needs a Chromium-based
browser on the machine: Chrome, Chromium, Edge or Brave. Everything else works
without one.
The quickest way is to let the agent you already have do it. Paste this into any agent that can run commands:
install the sketchdex mcp server for me. run
npx -y sketchdex docs installfor the steps.
Or by hand:
Claude Code
Codex
Cursor
Add to Cursor, or in ~/.cursor/mcp.json:
VS Code
Claude Desktop, Windsurf, Gemini CLI, anything else takes the same
mcpServers block as Cursor, or the command npx -y sketchdex as a stdio
server. npx -y sketchdex docs install has the exact file for each.
Then, in a session: draw me how the event loop works using sketchdex.
Scenes are saved to ~/Documents/sketchdex. Point them somewhere else with
--vault /path/to/folder after the package name, or SKETCHDEX_VAULT in the
server's environment. An iCloud or Dropbox folder works.
The manual ships inside the package so an agent can answer setup questions and fix problems without anyone reading a page:
npx -y sketchdex docs [topic] prints it (topics: install, vault,
app, rendering, tools, drawing, troubleshooting, or all).sketchdex_docs tool returns the same text once the server is
connected, and the server instructions tell the agent to use it for
anything about setup or errors.sketchdex://docs/<topic>.Opens the library in your browser: a grid of scenes with live previews,
search, pin, rename, duplicate, import; a full Excalidraw editor for each; a
β₯K switcher; and a History sidebar showing every agent write with the
label the agent gave it, so you can preview, keep or revert each one. The app
notices agent writes as they happen.
The same process serves the tools over HTTP at POST /mcp and as plain REST at
POST /api/agent/:op, localhost only.
Nineteen tools over stdio. The ones that matter:
| Tool | Does |
|---|---|
describe_scene | Structure, not pixels: bounds, counts, a rounded summary per element. Start here. |
add_elements | Boxes, arrows, text, generated shapes (polygon, star, arc, capsule, path). label on a shape adds bound text; start/end on an arrow bind it. |
update_elements | One id and the fields that change. The read-modify-write happens server-side, so a two-line edit costs two lines. |
import_svg | Write an SVG, get hand-drawn editable elements grouped as one piece. The way to draw anything that has to look like something. |
render_scene | A real canvas render as PNG, whole scene or a region, so the agent can look at its own work. |
check_scene | Layout problems found by geometry: hidden text, overlapping labels, dangling arrows, strays. |
snapshot_scene, list_history, restore_snapshot | The safety net. Every write snapshots the previous state first. |
sketchdex_docs | The manual by topic, so the agent can answer setup questions and fix errors itself. |
The full manual the agent reads is BRIEF.md: the element format,
the hand-drawn contract (roughness, sparse anchors, flat colour, no clip-art),
paper and ink rules, and the things that will bite.
.excalidraw file. Atomic
writes (temp file, rename), deletes go to trash/, and index.json is a
cache the server rebuilds from the files if it is lost.Same implementation as the MCP and REST surfaces. Works with the app closed.
For an MCP client pointed at a checkout, use node /path/to/sketchdex/mcp/server.js
as the command. In a checkout the server hot-reloads its worker when a file
under server/ or mcp/ changes, so edits are live on the next tool call
without restarting the client.
npm run lint, npx tsc -p tsconfig.app.json --noEmit and npm test before
committing. The test packs the package, installs it into a clean project and
drives it through a real MCP client, including a render; CI runs it on macOS,
Linux and Windows.
AGENTS.md maps the codebase and the rules that must survive
edits. There is also a macOS desktop shell: npm run electron:dev.
#121212) and nothing is ever colour-inverted:
the canvas, thumbnails and renders show every hex exactly as written. Paper
colour is per scene (viewBackgroundColor).SKETCHDEX_BROWSER=/path/to/browser if the browser is somewhere unusual.βK opens the scene switcher, which shadows Excalidraw's own
"add link" shortcut; use the context menu for links.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sketchdex)<a href="https://allmcps.com/mcp/sketchdex"><img src="https://allmcps.com/api/badge/sketchdex?style=directory" alt="Sketchdex on AllMCPs" /></a>