Excalidraw MCP Server
Allows AI agents to run a live Excalidraw canvas and draw diagrams programmatically.
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 MCP Server & Agent Skill
Let your AI agent run a live Excalidraw canvas and draw diagrams. This repo provides:
MCP Server: Connect via Model Context Protocol (Claude Desktop, Cursor, Claude Code, etc.)
Agent Skill: Portable skill for OpenClaw agents and other skill-enabled agents
Built on top of mcp_excalidraw by @yctimlin. Added shareable links, image export, agent skill, and a hosted API.
Demo
Related MCP server: Excalidraw MCP Server
Hosted Instance
A public instance is running at https://excalidraw-mcp.up.railway.app — no setup needed.
{
"mcpServers": {
"excalidraw": {
"url": "https://excalidraw-mcp.up.railway.app/mcp"
}
}
}Self-Hosting
Local
git clone https://github.com/0xArtex/excalidraw-mcp.git
cd excalidraw-mcp
npm install
npm run build
npm run canvasServer starts at http://localhost:3000.
Docker
docker build -f Dockerfile.canvas -t excalidraw-mcp .
docker run -p 3000:3000 -e PUBLIC_URL=https://your-domain.com excalidraw-mcpEnvironment Variables
Variable | Default | Description |
|
| Server port |
| auto-detected | Public URL for edit links |
|
| Internal URL for renderer (auto-resolved) |
|
| Rate limit per IP per minute |
|
| Max elements per render request |
|
| Render timeout (5 min) |
Configure MCP Clients
The MCP server can be connected via Streamable HTTP (hosted) or stdio (local).
Claude Desktop
Hosted:
{
"mcpServers": {
"excalidraw": {
"url": "https://excalidraw-mcp.up.railway.app/mcp"
}
}
}Local (node):
{
"mcpServers": {
"excalidraw": {
"command": "node",
"args": ["/path/to/excalidraw-mcp/dist/index.js"],
"env": {
"EXPRESS_SERVER_URL": "http://localhost:3000"
}
}
}
}Claude Code
claude mcp add excalidraw --scope user \
-e EXPRESS_SERVER_URL=http://localhost:3000 \
-- node /path/to/excalidraw-mcp/dist/index.jsCursor
Config location: .cursor/mcp.json
{
"mcpServers": {
"excalidraw": {
"url": "https://excalidraw-mcp.up.railway.app/mcp"
}
}
}Agent Skill
For OpenClaw and other skill-enabled agents, install the skill to render diagrams with a single API call — no MCP client needed.
The skill is available at skills/excalidraw-canvas/ or can be installed from ClawhHub.
See SKILL.md for usage — it's a single curl call.
MCP Tools
Tool | Description |
| Start a new diagram session, returns live canvas URL |
| Create a shape (rectangle, ellipse, diamond, arrow, text, line) |
| Create multiple elements at once |
| Remove an element |
| Finalize and get shareable link with image |
Development
npm run dev # Watch + hot reload
npm run build # Build everything
npm run type-check # TypeScript checkLicense
MIT
Acknowledgments
@yctimlin - Original mcp_excalidraw project
Excalidraw - The drawing library
Model Context Protocol - The MCP specification
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time collaborative whiteboard — AI agents and humans edit the same board live over MCP.
Create and manage Mermaid.js flowcharts and diagrams with AI agents via MCP.
Create and edit architecture diagrams from your AI agent; get an SVG and a live editable canvas.
Flowcharts that people and agents edit together on one live canvas, exported as Mermaid.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to programmatically generate, edit, and view Excalidraw diagrams with real-time browser synchronization. It provides a suite of tools for adding shapes, text, and arrows to diagrams through natural language interactions.113,607 npm102MIT
- 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.3,190 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create and manipulate live visual diagrams on an Excalidraw canvas in real-time via MCP tools.3,607 npm40 PyPI15BSD 3-Clause
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to collaboratively draw and annotate Excalidraw diagrams in real-time via MCP tools, synced to a browser canvas.10Apache 2.0