AgentStack
MCP verified MIT Self-run

Software Design Mermaid Mcp

mcp-wzh4464-software-design-mermaid-mcp Β· by wzh4464

🎨 Turn Claude into a visual design partner β€” drag-and-drop Mermaid diagram editor with multi-round AI collaboration via MCP

β€” No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add mcp-wzh4464-software-design-mermaid-mcp

βœ“ scanned Β· βœ“ verified β€” works with Claude Code, Cursor, and more.

Security review

βœ“ Passed

No issues found. Passed automated security review. Β· v0.1.0 How review works β†’

  • βœ“ Prompt-injection patterns
  • βœ“ Secret / credential exfiltration
  • βœ“ Dangerous shell & filesystem operations
  • βœ“ Untrusted network calls
  • βœ“ Known-malicious package signatures

What it can access

  • βœ“ Network access No
  • βœ“ Filesystem access No
  • βœ“ Shell / process execution No
  • βœ“ Environment & secrets No
  • βœ“ Dynamic code execution No

From automated source analysis of v0.1.0. β€œUsed” means the capability is present in the source β€” more access means more to trust, not that it’s unsafe.

Are you the author of Software Design Mermaid Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

🎨 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.

[](https://github.com/wzh4464/software-design-mermaid-mcp/actions/workflows/test.yml) [](LICENSE) [](https://modelcontextprotocol.io) [](#) [](#)

[Getting Started](#-getting-started) Β· [Features](#-features) Β· [How It Works](#-how-it-works) Β· [Contributing](#-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 ──────────>β”‚
    β”‚β”‚
    β”‚                          β”‚                            β”‚
    β”‚                          β”‚          user drags nodes, β”‚
    β”‚                          β”‚          edits labels,     β”‚
    β”‚                          β”‚          draws connections β”‚
    β”‚                          β”‚                            β”‚
    β”‚                          β”‚β”‚                            β”‚
    β”‚β”‚  (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 FlowDiagram objects
  • 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](LICENSE) β€” use it however you want.


If this saves you time designing software, consider giving it a ⭐

Made with React Flow Β· MCP SDK Β· dagre

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source β€” we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet β€” be the first.

Versions

  • v0.1.0 Imported from the upstream source.