excalidraw
MCP server by debu-sinha Community
Gives AI assistants tools to create, edit and export Excalidraw diagrams. It works with Claude Desktop, ChatGPT, VS Code and Cursor, and diagrams can appear inline in the chat.
Install excalidraw
Built from the published package, never by AI.
claude mcp add excalidraw -- npx -y excalidraw-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"excalidraw": {
"args": [
"-y",
"excalidraw-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"excalidraw": {
"args": [
"-y",
"excalidraw-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"excalidraw": {
"args": [
"-y",
"excalidraw-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add excalidraw -- npx -y excalidraw-mcp-server{
"mcpServers": {
"excalidraw": {
"args": [
"-y",
"excalidraw-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add excalidraw npx -y excalidraw-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the excalidraw block.
About
excalidraw-mcp-server is an MCP server that lets AI assistants draw and edit diagrams in the Excalidraw format. It works with Claude Desktop, ChatGPT, VS Code and Cursor. In standalone mode, which is the default, it uses an in-process element store and needs no canvas server or API key. Version 2.0 adds MCP Apps support, so diagrams can stream inline as SVG widgets.
An optional connected mode starts a canvas server for real-time browser sync. Clients connect through authenticated WebSocket connections, and optional file persistence keeps state across restarts. The server includes API key authentication, origin-restricted CORS, standard and strict rate limiting, Zod input validation and structured pino audit logging. It fits users who want AI-generated Excalidraw diagrams and developers who need access controls around MCP tools.
Written from the project's README and checked against it.
Tools it gives your assistant
create_viewRenders elements as an inline SVG widget with streaming animations (MCP Apps).read_meReturns the element reference cheatsheet covering types, colors and sizing tips.create_elementCreates a single rectangle, ellipse, diamond, arrow, text, line or freedraw element.update_elementUpdates an existing element by ID.query_elementsSearches elements by type, locked status or group ID.batch_create_elementsCreates up to 100 elements in one call.group_elementsGroups multiple elements together.align_elementsAligns elements left, center, right, top, middle or bottom.create_from_mermaidConverts a Mermaid diagram to Excalidraw elements.export_sceneExports the canvas as SVG or PNG.
What you need
- Node.js with npm
- An MCP client such as Claude Desktop, ChatGPT, VS Code or Cursor
- An EXCALIDRAW_API_KEY, only for connected mode
Try asking
- Draw an architecture diagram with a load balancer, three app servers and a database
- Convert this Mermaid flowchart into an editable Excalidraw diagram
- Align all the boxes on my canvas to the top edge and export it as SVG
Good to know
- Standalone mode keeps elements in memory and file persistence is off by default.
- Batch create is capped at 100 elements per call by default.
- The canvas defaults to a maximum of 10000 elements.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to excalidraw
All alternatives →Appllama gives AI assistants research on top-grossing mobile apps, plus a build bar for native-feeling Expo and React Native screens. It suits developers building mobile apps with AI assistants.
Creates, edits and exports editable designs for AI assistants through the CoDesign MCP server, built on IMG.LY's CE.SDK design engine. It suits social teams, agencies and designers who need posters, social posts, videos and print layouts.
Pascal 3D Editor lets AI agents inspect, edit, validate, and save editable 3D building scenes through an MCP server. It is aimed at architecture, engineering, construction, and operations teams. Local use needs no Pascal account.
Agent-Native Design is the Design agent in Agent-Native, an open-source TypeScript framework. It generates and refines interactive designs with agent help. The same actions serve both the agent and the UI.
Draws and edits draw.io diagrams on a live browser canvas for AI agents such as Claude Code, Cursor and VS Code. It suits people who want to draw diagrams with AI and keep editing them by hand.
Framelink MCP for Figma gives coding assistants access to your Figma files. It supplies design data so the assistant can implement designs in any framework, mainly for use with Cursor.
Compare with Appllama, codesign or Pascal 3D Editor
excalidraw: common questions
Does excalidraw-mcp-server need an API key?
Standalone mode needs no API key or canvas server. An API key is used for connected mode, where the canvas server and MCP server share it for authentication.
Can multiple people edit the same Excalidraw canvas?
In connected mode, multiple clients can collaborate on the same canvas through authenticated WebSocket connections. The source describes real-time browser sync across clients.
What security features does excalidraw-mcp-server include?
It includes API key authentication with constant-time comparison, origin-restricted CORS, WebSocket token and origin validation, rate limiting, Helmet.js headers with CSP, and structured audit logs.
How do I install excalidraw?
In Claude Code run claude mcp add excalidraw -- npx -y excalidraw-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is excalidraw the official server?
excalidraw is a community project by debu-sinha, not verified by a company domain.
Is excalidraw free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is excalidraw safe to use?
It scores 66 of 100. Grades: maintenance D, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to excalidraw?
Similar MCP servers: Appllama, codesign, Pascal 3D Editor, Agent-Native Design.
Does excalidraw work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
