We gave Claude Code a description of a typical small-business system, invoices that arrive by email and are read and checked automatically, and asked it to draw it twice. First with an Excalidraw skill, then with an Excalidraw MCP server. Here are both results, the exact setup, and the two things we had to fix along the way.
The two results
Which method should I use?
| A: Excalidraw skill | B: Excalidraw MCP server | |
|---|---|---|
| Look | Clean, technical, with sample data and code-style boxes | Classic hand-drawn Excalidraw |
| Time in our test | About 10 minutes (26 turns) | About 1 minute (15 turns) |
| Cost in our test | About $2.01 | About $0.45 |
| What you install | One folder of instructions; optional Python renderer | An MCP server, run with npx |
| Needs | uv and Python 3.11+ for the renderer | Node.js 20 or newer |
| Choose it for | Detailed diagrams for documentation | Quick diagrams you watch take shape and keep editing |
The costs are what Claude Code reported at API prices for our single run. On a Claude subscription the same work counts toward your usage instead. Your numbers will vary with the diagram.
Before you start
- Claude Code installed and signed in
- A project folder to work in. Both methods install per project, which is what we recommend until you trust a tool.
Method A: the Excalidraw skill
A skill is a folder of instructions Claude Code loads when a task matches it. We used coleam00/excalidraw-diagram-skill. It teaches Claude how to lay out a diagram, and it includes a small renderer so Claude can look at its own work and fix it.
1. Copy the skill into your project
The mkdir line isn't in the skill's README. Without it, cp fails in a project that has no .claude/skills folder yet.
2. Set up the renderer
This installs Playwright and downloads a headless Chromium of about 126 MB into ~/.cache/ms-playwright. The renderer is optional, but it is what lets Claude catch overlapping text and stray arrows.
3. Pin the Excalidraw version in the renderer
On the day we tested, the renderer timed out on every diagram. Its template loads Excalidraw from the esm.sh CDN without a version number, and the latest build failed to load. Open references/render_template.html and change one line:
Version 0.18.0 worked. 0.17.6 did not, because it has no exportToSvg export. Claude Code worked this out by itself during our run, but it took a few minutes and several tries.
4. Ask for the diagram
Start claude in the project folder and describe what you want. This is the prompt we used, word for word:
Claude loaded the skill, wrote the diagram, rendered it, looked at the image and fixed the one problem it found: two table columns set too close together. The skill likes to show real examples, so the result has a sample request and the count it produces:
Method B: the Excalidraw MCP server
An MCP server gives Claude Code new tools. We used yctimlin/mcp_excalidraw (npm package mcp-excalidraw-server, version 2.2.0). It runs a real Excalidraw canvas on your machine, and Claude draws on it, takes screenshots of it and moves things around.
1. Add the server to your project
Run this in your project folder:
It writes a .mcp.json file to the project:
To have it in every project instead, use --scope user, as the server's README shows. Run claude mcp list to check that it connects.
2. Ask for the diagram
Start claude in the project folder. Our prompt used the same description as Method A:
3. Watch it draw (optional)
The server starts its canvas by itself at http://127.0.0.1:3000. Open that address in a browser and you'll see the shapes appear. In our run Claude read the server's diagram guide, created the elements in two batches, took a screenshot, moved a label that sat on a border, checked again and exported both files. The whole thing took about a minute.
Edit the result in Excalidraw
Both methods leave a .excalidraw file in your folder. Everything in it stays editable:
- Go to excalidraw.com.
- Open the menu (top left), choose Open, and pick
invoice-flow.excalidraw. - Move, restyle or relabel anything. Use Save to… or Export image from the same menu when you're done.
You can also ask Claude to change the file for you ("make the table wider", "use our brand colours"). With Method B it edits the live canvas, so you see each change straight away.
Troubleshooting
The skill's renderer times out
If you see Page.wait_for_function: Timeout 30000ms exceeded, the renderer couldn't load Excalidraw from the CDN. Pin the version as in step 3 of Method A.
Claude doesn't have the Excalidraw tools
Run claude mcp list in the project folder. If excalidraw isn't connected, check node --version: the server needs Node.js 20 or newer. Inside Claude Code, /mcp shows the same status.
Port 3000 is already in use
The canvas defaults to port 3000. The server's README documents PORT for the canvas and EXPRESS_SERVER_URL for the MCP process. Set both to the same free port.
Claude doesn't use the skill
Check that the file sits at .claude/skills/excalidraw-diagram/SKILL.md and that you started claude from the project root. You can also name it in your prompt: "use the excalidraw-diagram skill".
Credits
- excalidraw-diagram-skill by coleam00. The repository doesn't state a licence, so check before redistributing it.
- mcp_excalidraw by yctimlin, MIT licence.
- Excalidraw, the open-source whiteboard both of them build on.
More tutorials: all tutorials, including Claude Code with Obsidian and videos with Remotion.
Tested on 25 November 2026, example re-run on 28 November, with Claude Code 2.1.332 on Ubuntu, excalidraw-diagram-skill at commit 8646fcc, and mcp-excalidraw-server 2.2.0.