Software Design Mermaid
FreeNot checkedπ¨ Turn Claude into a visual design partner β drag-and-drop Mermaid diagram editor with multi-round AI collaboration via MCP
About
π¨ Turn Claude into a visual design partner β drag-and-drop Mermaid diagram editor with multi-round AI collaboration via MCP
README
π¨ Mermaid Visual Editor for Claude
Stop describing diagrams. Start designing them.
Turn Claude into a visual software design partner with a drag-and-drop Mermaid editor that opens right in your browser.
Tests License: MIT MCP TypeScript Node
Getting Started Β· Features Β· How It Works Β· Contributing

Claude generates the diagram, you refine it visually β drag nodes, edit labels, draw connections, then submit back for the next iteration
The Problem
When designing software with Claude, you're stuck in a text-only loop:
You: "Add a cache layer between the API and database"
Claude: *regenerates entire Mermaid diagram from scratch*
You: "No, move the cache node to the left..."
Claude: *guesses what you mean, regenerates again*
It's like directing a painter blindfolded.
The Solution
This MCP server gives Claude a visual canvas. When Claude generates a diagram, it pops open a browser-based editor where you can:
- Drag nodes exactly where you want them
- Edit labels inline with a double-click
- Draw connections between any nodes
- Rearrange everything and submit back to Claude
Claude sees your visual changes and continues the conversation with full context. Design together, visually.
What is MCP? Model Context Protocol lets AI assistants use external tools. This server gives Claude the ability to open a visual diagram editor β no plugins or extensions needed.
β‘ Getting Started
Claude Code (recommended)
git clone https://github.com/wzh4464/software-design-mermaid-mcp.git
cd software-design-mermaid-mcp
npm install && npm run build
claude mcp add software-design-mermaid node $(pwd)/dist/server/index.js
Then just ask Claude:
> Design a microservice architecture for a todo app
Your browser opens automatically with the visual editor. Edit, submit, iterate. β¨
VS Code + Claude Extension
Add to your VS Code settings.json:
{
"claude.mcpServers": {
"software-design-mermaid": {
"command": "node",
"args": ["/absolute/path/to/software-design-mermaid-mcp/dist/server/index.js"]
}
}
}
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"software-design-mermaid": {
"command": "node",
"args": ["/absolute/path/to/software-design-mermaid-mcp/dist/server/index.js"]
}
}
}
Cursor
Add to your Cursor MCP settings (.cursor/mcp.json):
{
"mcpServers": {
"software-design-mermaid": {
"command": "node",
"args": ["/absolute/path/to/software-design-mermaid-mcp/dist/server/index.js"]
}
}
}
Windsurf / Cline / Other MCP Clients
Any MCP-compatible client can use this server. The configuration pattern is the same:
- Command:
node - Args:
["/absolute/path/to/software-design-mermaid-mcp/dist/server/index.js"] - Transport: stdio
Refer to your client's documentation for the exact config file location.
β¨ Features
| Feature | Description | |
|---|---|---|
| π±οΈ | Drag-and-Drop Canvas | Full React Flow editor with zoom, pan, minimap, grid snapping |
| π· | 5 Shapes Γ 3 Edge Types | Rectangle, rounded, diamond, circle, stadium + arrow, dotted, thick |
| π¦ | Subgraphs & Auto-Layout | Group nodes into nested subgraphs; dagre auto-arranges (TD/LR/BT/RL) |
| π | Live Mermaid Preview | See Mermaid code update in real-time as you edit |
| π | Multi-Round Iteration | Edit β Submit β Claude refines β Edit again. True visual collaboration. |
| βͺ | Undo / Redo | Full history with Ctrl+Z / Ctrl+Y |
| βοΈ | Zero Config | Auto-finds an open port and launches your browser |
See: Horizontal layout with subgraphs

π§© How It Works
Claude MCP Server Browser Editor
β β β
βββ show_diagram() βββββββ>β β
β βββ starts HTTP server βββββ>β
β βββ opens browser ββββββββββ>β
β<ββ { url, success } ββββββ β
β β β
β β<ββ polls /api/diagram ββββββ
β βββ returns diagram ββββββββ>β
β β β
β β user drags nodes, β
β β edits labels, β
β β draws connections β
β β β
β β<ββ POST /api/submission ββββ
βββ get_diagram_feedback()>β β
β<ββ updated mermaid code ββ β
β β β
βββ show_diagram() βββββββ>β (Claude sends new version)β
β ...iterate... β β
MCP Tools
| Tool | What it does |
|---|---|
show_diagram |
Opens the visual editor with a Mermaid flowchart |
get_diagram_feedback |
Gets the user's visual edits back as Mermaid code |
close_diagram |
Closes the editor session |
ποΈ Architecture
TypeScript monorepo with npm workspaces:
software-design-mermaid-mcp/
βββ shared/ # Mermaid parser & serializer (bidirectional)
βββ src/ # MCP server (stdio) + HTTP server (REST API)
βββ editor/ # React Flow visual editor
βββ dist/ # Pre-built artifacts
- Parser: Full Mermaid flowchart syntax β structured
FlowDiagramobjects - Serializer:
FlowDiagramβ valid Mermaid code (round-trip safe) - Editor: React 19 + React Flow 12 with custom node/edge renderers
π§βπ» Development
npm install # Install all workspace dependencies
npm test # Run all tests (42 tests, 4 suites)
npm run build # Build shared β server β editor
npm run dev:editor # Editor dev mode with hot reload
π€ Contributing
Contributions welcome! Some ideas to get started:
- π Sequence diagram support β extend beyond flowcharts
- π¨ Theme customization β dark/light modes, color schemes
- πΈ Export options β PNG, SVG, PDF export from the editor
- π₯ Collaborative editing β multiple users on the same diagram
- πΆ More node shapes β hexagon, parallelogram, trapezoid
Please open an issue first to discuss what you'd like to change.
π License
MIT β use it however you want.
If this saves you time designing software, consider giving it a β
Made with React Flow Β· MCP SDK Β· dagre
Installing Software Design Mermaid
This server has no published package β it is built from source. Open the repository and follow its README.
βΈ github.com/wzh4464/software-design-mermaid-mcpFAQ
Is Software Design Mermaid MCP free?
Yes, Software Design Mermaid MCP is free β one-click install via Unyly at no cost.
Does Software Design Mermaid need an API key?
No, Software Design Mermaid runs without API keys or environment variables.
Is Software Design Mermaid hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Software Design Mermaid in Claude Desktop, Claude Code or Cursor?
Open Software Design Mermaid on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install β the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Software Design Mermaid with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
