# excalidraw-mcp-server

A skill that walks an agent through building MCP servers which hand back interactive hand-drawn Excalidraw diagrams, streaming updates included.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 235 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/excalidraw-mcp-server/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/excalidraw-mcp-server

## What it does

Treat this as a build guide. The agent reads it and writes an MCP server that answers tool calls with an HTML app instead of plain text, going through the MCP Apps extension. A diagram travels as Excalidraw scene JSON: an `elements` array plus `appState`. Rectangle and text shapes are spelled out field by field, so the code it generates compiles as written.

Two deployment routes are covered. Point a client at the hosted server on `https://mcp.excalidraw.com`, or run your own Node.js process, either on the machine or as a Vercel function. The local route starts with `pnpm install && pnpm run build`, because the Claude Desktop config launches `node` against `dist/index.js` with the `--stdio` flag and that file only exists after the build.

What lands in the chat is view-only until someone clicks it, which opens a fullscreen modal editor. A misplaced box or label gets fixed by hand, without another round trip to the model.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill excalidraw-mcp-server -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/excalidraw-mcp-server/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/excalidraw-mcp-server/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill excalidraw-mcp-server -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/excalidraw-mcp-server/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill excalidraw-mcp-server -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/excalidraw-mcp-server/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/excalidraw-mcp-server
```

2. **Manually: put the files in place**
- File: `.github/skills/excalidraw-mcp-server/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill excalidraw-mcp-server -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/excalidraw-mcp-server
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/excalidraw-mcp-server/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill excalidraw-mcp-server -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/excalidraw-mcp-server/SKILL.md

## When to use it
- return an HTML app from an MCP tool call instead of plain text
- describe an Excalidraw scene from rectangles and labels
- stream a diagram as it grows and steer the viewport
- deploy the server locally on Node.js or as a Vercel function
- wire the server into Claude Desktop through `claude_desktop_config.json`

## Example prompts
- Build an MCP server whose `draw_diagram` tool returns an interactive Excalidraw diagram
- Add hand-drawn block-diagram rendering with streaming updates to my MCP tool
- Show me how to wrap an Excalidraw scene in an HTML response with mimeType `text/html`

## Similar
- [excalidraw](https://affpapa.org/en/nevibecode/skills/agents365-ai-excalidraw.md) — skill · 4700 installs
- [excalidraw-skill](https://affpapa.org/en/nevibecode/skills/excalidraw-skill.md) — skill · 1600 installs
- [excalidraw-diagram-generator](https://affpapa.org/en/nevibecode/skills/excalidraw-diagram-generator.md) — skill · 31639 installs
- [excalidraw-diagram](https://affpapa.org/en/nevibecode/skills/excalidraw-diagram.md) — skill · 8900 installs
- [excalidraw-diagrams](https://affpapa.org/en/nevibecode/skills/excalidraw-diagrams.md) — skill · ★ 173 repo stars
- [excalidraw-agents365](https://affpapa.org/en/nevibecode/skills/excalidraw-agents365.md) — skill · 202 installs

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
