mermaid-to-excalidraw-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mermaid-to-excalidraw-mcpCreate a sequence diagram for a login flow and save to login.excalidraw.md"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mermaid-to-excalidraw-mcp
MCP server that converts Mermaid diagrams to styled Excalidraw files.
Generated with Claude Code. AI slop included, but it helps me every day :)
The Problem
When asking Claude to create diagrams, you have two bad options:
Generate Excalidraw JSON directly - Works, but costs ~500 tokens per shape. A simple 5-node diagram = 2500+ tokens of JSON in Claude's response.
Use existing mermaid-to-excalidraw - Token-efficient input, but strips all colors and requires a browser.
Related MCP server: mermaid-live-mcp
The Solution
This MCP server lets Claude write compact Mermaid (30 tokens) and outputs styled .excalidraw.md files directly to disk - no tokens wasted on JSON output.
You: "Create an architecture diagram: React -> API -> PostgreSQL + Redis"
Claude writes: ~50 tokens of Mermaid
Output: Styled diagram saved to file
Setup
git clone https://github.com/yannick-cw/mermaid-to-excalidraw-mcp
cd mermaid-to-excalidraw-mcp && npm install && npm run buildAdd to ~/.claude.json:
{
"mcpServers": {
"mermaid-excali": {
"command": "node",
"args": ["/absolute/path/to/mermaid-to-excalidraw-mcp/dist/index.js"]
}
}
}Usage
Just ask Claude to create a diagram and specify where to save it:
"Create an ER diagram for a blog system with users, posts, and comments. Save to ~/diagrams/blog.excalidraw.md"
The output file opens directly in Obsidian (with Excalidraw plugin) or can be imported to excalidraw.com.
Features
Diagram types: Flowcharts, sequence diagrams, ER diagrams
Semantic colors - Add a directive to color nodes by type:
%%{excali: styles: {FE: ui, API: api, DB: db, Cache: cache}}%%
flowchart TD
FE[React App] --> API[Node Service]
API --> DB[(PostgreSQL)]
API --> Cache[Redis]Available styles: ui api db cache queue gateway external agent storage user orchestrator problem solution highlight
Connected arrows - shapes stay linked when you move them
Embedded source - original Mermaid preserved in the file for portability
More Examples


Inspired by
mermaid-to-excalidraw - the original, browser-based
obsidian-excalidraw-plugin - what makes
.excalidraw.mdwork
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityAmaintenanceAn MCP server that generates beautiful Excalidraw architecture diagrams with perfect auto-layout, stateful editing, and architecture-aware component styling.24139MIT
- Flicense-qualityDmaintenanceMCP server that generates Mermaid diagrams with live browser preview, supports real-time rendering and SVG/PNG export.12
- Flicense-qualityCmaintenanceMCP server that streams hand-drawn Excalidraw diagrams with smooth viewport camera control and interactive fullscreen editing.
- AlicenseAqualityBmaintenanceAn MCP server for Excalidraw diagram creation and headless rendering, enabling interactive canvas editing and automated SVG/PNG export via Playwright.41MIT
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for generating rough-draft project plans from natural-language prompts.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yannick-cw/mermaid-to-excalidraw-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server