software-design-mermaid-mcp
Provides a visual editor for Mermaid diagrams, enabling drag-and-drop editing, live preview, and iterative refinement of flowcharts within a browser-based canvas.
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., "@software-design-mermaid-mcpdesign a microservice architecture for a todo app"
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 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.
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.
Related MCP server: Mermaid Studio
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.jsThen just ask Claude:
> Design a microservice architecture for a todo appYour browser opens automatically with the visual editor. Edit, submit, iterate. โจ
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"]
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"software-design-mermaid": {
"command": "node",
"args": ["/absolute/path/to/software-design-mermaid-mcp/dist/server/index.js"]
}
}
}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"]
}
}
}Any MCP-compatible client can use this server. The configuration pattern is the same:
Command:
nodeArgs:
["/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 |

๐งฉ 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 |
| Opens the visual editor with a Mermaid flowchart |
| Gets the user's visual edits back as Mermaid code |
| 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 artifactsParser: Full Mermaid flowchart syntax โ structured
FlowDiagramobjectsSerializer:
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Create and edit architecture diagrams from your AI agent; get an SVG and a live editable canvas.
Create and edit collaborative architecture diagrams with any AI assistant using the Trident 2D DSL.
Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.
Generate, edit, and export data-architecture diagrams from your AI. Column lineage, PNG in chat.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables creating, manipulating, and managing Mermaid diagrams with automatic saving and multi-format conversion from JSON, CSV, Python, Markdown, and plain text.7MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI to create, edit, and manage Mermaid diagrams via MCP, with real-time preview in a browser-based editor.3-
- AlicenseNot gradedqualityBmaintenanceEnables LLMs to draw interactive diagrams (architecture, sequence, class) inside the editor, with clickable nodes that jump to source code.6MIT
- FlicenseNot gradedqualityCmaintenanceEnables Claude to design system architectures and scaffold minimal Python/Docker implementations, with live D3 visualization in the browser.-
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/wzh4464/software-design-mermaid-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server