Excalidraw MCP Server
excalidraw mcp
Excalidraw Mcp scores 33 (Limited), licensed MIT and written in TypeScript. It installs as a local process. It declares 11 tools. Filed under Uncategorized. GitHub shows 102 stars. Package registries report about 67 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
33 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
73/100 for listing completeness. Lost points: 4 of 11 tools barely described, short summary, no docs link.
How quality is graded
Where the 33 comes from
0 + 5 + 7 + 10 + 4 + 7 = 33. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 7 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "scofieldfree-excalidraw-mcp": { "command": "npx", "args": [ "-y", "@scofieldfree/excalidraw-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools11Tool docs quality grade D
All capabilitiesadd_elementstoolAdd shapes, text, arrows to the canvas
Add a pre-built architecture diagram template
create_diagramtoolCreate a new diagram or clear existing
Convert Mermaid syntax to Excalidraw
delete_diagramtoolDelete a diagram session
delete_elementtoolRemove elements from canvas
export_diagramtoolExport diagram to PNG, SVG, or JSON
get_scenetoolRetrieve current diagram state
list_sessionstoolList all active diagram sessions
start_sessiontoolStart browser preview and open Excalidraw editor
update_elementtoolModify existing element properties
About
Excalidraw MCP Server
An MCP (Model Context Protocol) server that empowers AI agents (like Claude, Cursor, Windsurf) to create, edit, and manage Excalidraw diagrams directly within your conversation.
Why Excalidraw? Its hand-drawn aesthetic and JSON-based format are perfect for rapid, programmable diagramming. This server bridges standard MCP clients with a local Excalidraw instance, enabling AI-powered visual thinking.
⨠Features
| Feature | Description |
|---|---|
| šØ Real-time Preview | Changes appear instantly in a local browser window via WebSocket |
| š Smart Layout | Automatically calculates text width and binds labels to containers |
| š Multi-Session | Switch between different diagrams seamlessly |
| š§ Mermaid Support | Convert Mermaid syntax to Excalidraw diagrams instantly |
| š¦ Export Options | Export to PNG, SVG, or JSON formats |
| šļø Templates | Built-in architecture diagram templates |
š Quick Start
You don't need to clone this repo. Just configure your MCP client:
Claude Code (cc)
claude mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp
Codex CLI
codex mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp
Cursor / Windsurf
Go to Settings > MCP ā Add New MCP Server:
| Field | Value |
|---|---|
| Name | excalidraw |
| Type | command |
| Command | npx -y @scofieldfree/excalidraw-mcp |
Cline (VS Code Extension)
Open Cline settings and add to MCP Servers:
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}
GitHub Copilot
Use the Copilot CLI to interactively add:
/mcp add
Alternatively, create or edit ~/.copilot/mcp-config.json:
{
"mcpServers": {
"excalidraw": {
"type": "local",
"command": "npx",
"tools": ["*"],
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}
Kiro
Follow the MCP Servers documentation. Add to .kiro/settings/mcp.json:
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}
opencode
opencode mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp
VS Code
One-click install:
Or install via CLI:
# For VS Code
code --add-mcp '{"name":"excalidraw","command":"npx","args":["-y","@scofieldfree/excalidraw-mcp"]}'
# For VS Code Insiders
code-insiders --add-mcp '{"name":"excalidraw","command":"npx","args":["-y","@scofieldfree/excalidraw-mcp"]}'
Claude Desktop
Add to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}
š ļø Available Tools
| Tool | Description |
|---|---|
start_session | Start browser preview and open Excalidraw editor |
add_elements | Add shapes, text, arrows to the canvas |
update_element | Modify existing element properties |
delete_element | Remove elements from canvas |
get_scene | Retrieve current diagram state |
create_from_mermaid | Convert Mermaid syntax to Excalidraw |
add_template_architecture | Add a pre-built architecture diagram template |
create_diagram | Create a new diagram or clear existing |
export_diagram | Export diagram to PNG, SVG, or JSON |
list_sessions | List all active diagram sessions |
delete_diagram | Delete a diagram session |
š¬ Usage Examples
Example 1: Create a Simple Diagram
You say:
"Draw a flowchart with three boxes: Input ā Process ā Output"
AI uses:
start_session ā add_elements (3 rectangles + 2 arrows)
Example 2: Convert Mermaid to Excalidraw
You say:
"Convert this Mermaid diagram to Excalidraw:
graph LR: A[User] --> B[API Gateway] --> C[Service] --> D[(Database)]"
AI uses:
start_session ā create_from_mermaid
Example 3: Architecture Diagram
You say:
"Create an architecture diagram for a microservices system"
AI uses:
start_session ā add_template_architecture (or) add_elements with custom layout
šļø Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā AI Agent (Claude/Cursor) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Protocol (JSON-RPC over stdio)
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Excalidraw MCP Server ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāā ā
ā ā Tool Router āāāā State Store āāāā WebSocket Broadcast ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāā¬āāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāā
ā WebSocket
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Browser (Excalidraw Editor) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š§ Development
Prerequisites
- Node.js >= 18
- pnpm >= 9
Setup
# Clone the repository
git clone https://github.com/Scofieldfree/excalidraw-mcp.git
cd excalidraw-mcp
# Install dependencies
pnpm install
# Start development server
pnpm dev
Scripts
| Command | Description |
|---|---|
pnpm dev | Start dev server (backend + frontend) |
pnpm build | Build for production |
pnpm typecheck | Run TypeScript type checking |
pnpm lint | Run ESLint |
pnpm release | Create a new release version |
š¦ Project Structure
excalidraw-mcp/
āāā packages/
ā āāā mcp-server/ # Core MCP server + Excalidraw frontend
ā āāā src/
ā ā āāā index.ts # Entry point
ā ā āāā state.ts # Session state management
ā ā āāā http-server.ts
ā ā āāā tools/ # MCP tool implementations
ā āāā web/ # Excalidraw React frontend
āāā docs/ # Documentation
āāā package.json # Workspace configuration
š Troubleshooting
Port Already in Use
The server automatically finds an available port starting from 3100. If you need a specific port, set the PORT environment variable.
Browser Doesn't Open
Ensure you have a default browser configured. The server uses the open package to launch the browser.
WebSocket Connection Failed
Check if any firewall or antivirus is blocking WebSocket connections on localhost.
š¤ Contributing
Contributions are welcome! Please read our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
š License
MIT Ā© Scofieldfree
š Links
Frequently asked questions
What is Excalidraw MCP Server?
excalidraw mcp
How do I install Excalidraw MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Excalidraw MCP Server runs locally from the npm package @scofieldfree/excalidraw-mcp with the command npx -y @scofieldfree/excalidraw-mcp.
Is Excalidraw MCP Server free and open source?
Yes. Excalidraw MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Excalidraw MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Excalidraw MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Excalidraw MCP Server provide?
Excalidraw MCP Server provides 11 tools, including add_elements, add_template_architecture, create_diagram, and create_from_mermaid. See the full tool list for descriptions and parameters.
How is Excalidraw MCP Server's trust score calculated?
Excalidraw MCP Server scores 33 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetāBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.