Basic information
About mermaid-live-mcp - From prompt to diagram in seconds Server
An MCP server that generates live Mermaid diagrams from any AI assistant. Claude, Cursor, and more.
mermaid-live-mcp - From prompt to diagram in seconds is a MCP server in the AI & Agents category listed in the AddMCP.net directory, published by iishyfishyy. It exposes 4 tools, including generate_mermaid, update_diagram, list_diagrams, export_diagram. Supported transport: stdio. License: MIT. Source code is hosted on github.com. Related topics: diagrams, live, mermaid, preview, render.
Setup
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": [
"-y",
"mermaid-live-mcp"
]
}
}
}
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": [
"-y",
"mermaid-live-mcp"
]
}
}
}
{
"servers": {
"mermaid": {
"command": "npx",
"args": [
"-y",
"mermaid-live-mcp"
]
}
}
}
mermaid-live-mcp - From prompt to diagram in seconds config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": [
"-y",
"mermaid-live-mcp"
]
}
}
}
mermaid-live-mcp - From prompt to diagram in seconds tools
-
generate_mermaid
— Generate a diagram from Mermaid.js syntax. Renders in live preview browser with SVG/PNG download options. Supports flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, and more.
syntax:string*, title:string -
update_diagram
— Replace a diagram's Mermaid syntax and re-render it in the preview.
diagram_id:string*, syntax:string*, title:string -
list_diagrams
— List all diagrams generated in this session.
(no parameters) -
export_diagram
— Write a diagram's SVG to disk. PNG export is available via the browser download buttons.
diagram_id:string*, path:string*
Overview
What is mermaid-live-mcp - From prompt to diagram in seconds?
mermaid-live-mcp is an MCP (Model Context Protocol) server that lets you generate Mermaid diagrams from natural language prompts and preview them live in a browser. It renders diagrams in real-time via WebSocket and supports SVG/PNG export. This tool is intended for developers and AI assistant users who want to quickly create and iterate on diagrams.
How to use mermaid-live-mcp - From prompt to diagram in seconds?
Install the server via npx and add it to your MCP client configuration (Claude Desktop, Cursor, Claude Code, or Windsurf). The server exposes four tools: generate_mermaid, update_diagram, list_diagrams, and export_diagram. Use generate_mermaid with your Mermaid syntax to open a live browser preview, then update or export as needed.
Key features of mermaid-live-mcp - From prompt to diagram in seconds
- Live browser preview with real-time WebSocket updates
- SVG and PNG export via download buttons or tool
- Supports all Mermaid diagram types
- No page refresh needed for diagram updates
- Four dedicated tools for diagram lifecycle
Use cases of mermaid-live-mcp - From prompt to diagram in seconds
- Quickly generate flowcharts from text descriptions
- Iterate on sequence diagrams during design discussions
- Export class diagrams as SVG for documentation
- Build ER diagrams with live preview for database modeling
- Create and manage multiple Gantt charts in a single session
Frequently asked questions
1 What tools does the server provide?
The server provides generate_mermaid (create and preview), update_diagram (replace syntax and re-render), list_diagrams (list session diagrams), and export_diagram (save SVG to disk).
2 How do I install mermaid-live-mcp for Claude Desktop?
Add the MCP server configuration to your Claude Desktop config file located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, using the command: npx -y mermaid-live-mcp.
3 How does the live preview work?
The server opens a browser tab with the diagram rendered as SVG. Any updates to a diagram are pushed instantly to the browser via a WebSocket connection – no page refresh required.
4 Can I export diagrams as images?
Yes. You can download SVG or PNG from the live preview buttons, or use the export_diagram tool to write the SVG directly to disk.
5 What diagram types does mermaid-live-mcp support?
All standard Mermaid diagram types are supported, including flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, git graphs, mindmaps, timelines, and more.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In