MCP App that renders Mermaid diagrams as interactive UI in Claude, VS Code and other MCP clients
English | 繁體中文
An MCP App that renders Mermaid diagrams in an interactive viewer with pan, zoom, and a built-in source editor. Edit diagrams directly in the split-view editor and send the updated source back to the LLM to continue the conversation with your changes. Works in Claude Desktop, VS Code, and any MCP-App-compatible host.
Once configured, ask the LLM to draw a diagram:
"Draw a flowchart showing user authentication flow"
"Create a sequence diagram for an API request lifecycle"
"Render this mermaid diagram: `graph TD; A-->B; B-->C`"
You can also specify a theme explicitly:
"Draw a class diagram with light theme"
Edit the diagram source directly in the split-view editor, then send it back to the LLM to continue the conversation with your changes.

flowchart — General-purpose directed graphs. Supports top-down and left-right layouts, subgraphs, and various node shapes.

sequenceDiagram — Interaction between participants over time. Shows messages, loops, and alternative flows.

classDiagram — Object-oriented class structure with attributes, methods, and relationships (inheritance, composition, etc.).

stateDiagram-v2 — Finite state machines with transitions, composite states, and concurrency.

erDiagram — Entity-relationship diagrams for data modeling with cardinality annotations.

gantt — Project timelines with tasks, milestones, dependencies, and critical paths.

pie — Proportional data as pie slices with percentage labels.

gitGraph — Git branch and commit history visualization with merge and cherry-pick flows.

mindmap — Hierarchical tree of ideas radiating from a central root node.

timeline — Chronological events grouped by time period.

journey — User experience flows scored by satisfaction level across sections and actors.

requirementDiagram — System requirements with type, risk, and verification method, linked to design elements.

quadrantChart — Four-quadrant scatter plot for prioritization and positioning analysis.

dark (auto-detected from system preference) and lightDownload the latest .mcpb from GitHub Releases and double-click to install. No terminal or configuration needed.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": ["-y", "mermaid-mcp-app", "--stdio"]
}
}
}
Add to .vscode/mcp.json or user settings:
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": ["-y", "mermaid-mcp-app", "--stdio"]
}
}
}
# Install dependencies
npm install
# Build (view + server)
npm run build
# Watch mode (view only)
npm run dev
# Start server
npm start
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y mermaid-mcp-appMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-finfin-mermaid-mcp-app": {
"command": "npx",
"args": [
"-y",
"mermaid-mcp-app"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemermaid-mcp-appnpmio.github.finfin/mermaid-mcp-app works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.