mermaid-mcp-app
Provides tools for rendering and editing Mermaid diagrams, supporting various diagram types and interactive features like pan, zoom, and source editing.
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., "@mermaid-mcp-appDraw a sequence diagram for an API request lifecycle"
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 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"
Related MCP server: Excalidraw MCP App Server
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 — 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.

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

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

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

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

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

Pie Chart
pie — Proportional data as pie slices with percentage labels.

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

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

Timeline
timeline — Chronological events grouped by time period.

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

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

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

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) andlight
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:
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": ["-y", "mermaid-mcp-app", "--stdio"]
}
}
}VS Code
Add to .vscode/mcp.json or user settings:
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": ["-y", "mermaid-mcp-app", "--stdio"]
}
}
}Development
# Install dependencies
npm install
# Build (view + server)
npm run build
# Watch mode (view only)
npm run dev
# Start server
npm startThis 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 Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate interactive Excalidraw diagrams with viewport camera control and fullscreen editing directly in the chat.5,110
- FlicenseNot gradedqualityDmaintenanceStreams hand-drawn Excalidraw diagrams with smooth viewport camera control and interactive fullscreen editing, enabling diagram creation via natural language.
- 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
Related MCP Connectors
Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
Renders interactive Chart.js charts and dashboards inline in AI conversations.
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/finfin/mermaid-mcp-app'
If you have feedback or need assistance with the MCP directory API, please join our Discord server