Mermaid Mcp App

io.github.finfinPublished by GitHub account finfinv0.3.2Updated Oct 24, 2026

MCP App that renders Mermaid diagrams as interactive UI in Claude, VS Code and other MCP clients

VerifiedSTDIODesktop onlyDeveloper ToolsMedia & Design

Overview

AI-generated overview

Renders Mermaid diagrams in an interactive viewer with pan, zoom, and a source editor inside MCP-compatible hosts.

What you can do
This MCP app turns Mermaid source into an interactive diagram view inside the host client. It supports 13 diagram types, including flowcharts, sequence, class, state, ER, Gantt, pie, git graph, mindmap, timeline, journey, requirement, and quadrant charts. The viewer offers pan and zoom, fit-to-container, copy SVG, and a split-view source editor with live re-render. Edited source can be sent back to the LLM, and context syncs automatically as you type.
When to use it
Use it when you want an assistant to draw or revise diagrams and you want to inspect, edit, and iterate on them visually without leaving the chat. It suits architecture sketches, flowcharts, sequence diagrams, and other Mermaid-supported visualizations.
Requirements
Runs as a local process via npx (Node.js required) or as a Claude Desktop extension (.mcpb). Desktop only; no web executable. No authentication, environment variables, or headers are declared.
Before you install
The editor sends diagram source back to the LLM and syncs context as you type, so anything placed in a diagram may be shared with the model. Installation via npx runs a package from the npm registry on your machine.

Installation

In SourceWeft

  1. Open Mermaid Mcp App in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Mermaid MCP App

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.

Usage

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"

Features

Interaction with AI

Edit the diagram source directly in the split-view editor, then send it back to the LLM to continue the conversation with your changes.

[Send to AI]

  • Send to AI — sends the edited diagram source back to the LLM, triggering a response
  • Auto context sync — LLM context is automatically updated as you type (debounced); the LLM always sees your latest source on the next message

Diagram Types (13 supported)

Flowchart

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

[Flowchart]

Sequence Diagram

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

[Sequence Diagram]

Class Diagram

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

[Class Diagram]

State Diagram

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

[State Diagram]

ER Diagram

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

[ER Diagram]

Gantt Chart

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

[Gantt Chart]

Pie Chart

pie — Proportional data as pie slices with percentage labels.

[Pie Chart]

Git Graph

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

[Git Graph]

Mindmap

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

[Mindmap]

Timeline

timeline — Chronological events grouped by time period.

[Timeline]

User Journey

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

[User Journey]

Requirement Diagram

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

[Requirement Diagram]

Quadrant Chart

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

[Quadrant Chart]

UI

  • Pan & zoom — mouse drag to pan, scroll wheel to zoom, pinch-to-zoom on touch
  • Fit to container — auto-fits diagram on render; reset button restores fit
  • Copy SVG — copies the rendered SVG to clipboard
  • Split-view source editor — always-visible editor panel with live re-render (400ms debounce)
  • Minimizable editor — collapse to a compact bottom bar; expand with one click
  • Vertical / horizontal layout toggle — source below (vertical) or to the right (horizontal); minimized state always snaps to the bottom
  • Theme support — dark (auto-detected from system preference) and light

Installation

Claude Desktop — Extension (recommended)

Download the latest .mcpb from GitHub Releases and double-click to install. No terminal or configuration needed.

Claude Desktop — Manual

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "mermaid": {      "command": "npx",      "args": ["-y", "mermaid-mcp-app", "--stdio"]    }  }}

VS Code

Add to .vscode/mcp.json or user settings:

json
{  "mcpServers": {    "mermaid": {      "command": "npx",      "args": ["-y", "mermaid-mcp-app", "--stdio"]    }  }}

Development

bash
# Install dependenciesnpm install
# Build (view + server)npm run build
# Watch mode (view only)npm run dev
# Start servernpm start

Source: README.md at commit 47319d0

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.3.2LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.