Render Mermaid diagrams with browser-based live reload and export them as SVG, PNG, or PDF.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Claude Mermaid.
veelenga/claude-mermaid MCP server turns Mermaid diagram definitions into browser previews or saved files. It exposes two MCP tools: mermaid_preview creates or updates a preview session, and mermaid_save writes the current diagram to a specified path. Supported output formats are SVG, PNG, and PDF.
The server is intended for diagram work such as authentication flows, sequence diagrams, deployment pipelines, class diagrams, architecture diagrams, and entity-relationship diagrams. A built-in mermaid-diagrams skill is included when the project is installed as a Claude Code plugin. That skill provides diagram guidance and workflow recommendations, but the MCP tools can also be configured in other MCP clients.
A preview request includes Mermaid source and a preview_id. The server opens a local browser page at a URL based on that identifier. For SVG previews, the browser receives updates through WebSocket connections and refreshes when the diagram changes. Multiple identifiers allow separate diagrams to be developed at the same time.
The local preview service uses ports 3737 through 3747 and selects an available port. The browser interface supports dragging to pan, browser zoom controls, resetting the diagram position, and downloading SVG or PNG output. Live preview is limited to SVG; PNG and PDF are rendered without live reload.
Working files for live previews are stored below ~/.config/claude-mermaid/live. The browser displays SVG during live preview even when another save format is requested. mermaid_save can render the requested format on demand if a working file for that format does not already exist.
Claude Code users can install the plugin from the veelenga/claude-mermaid marketplace repository and restart Claude Code. Another documented route is installing the claude-mermaid npm package globally, then registering claude-mermaid as the MCP command. Installing from source requires cloning the repository, running its npm installation and build steps, and installing the resulting package globally.
The documented executable is claude-mermaid. MCP configuration for Cursor, Windsurf, Cline, and other clients uses that executable as a local command. The project also supports standalone operation with claude-mermaid --serve, which opens a diagram gallery without an AI agent.
mermaid_preview accepts:
diagram text and preview_id.format: svg, png, or pdf; defaults to SVG.theme: default, forest, dark, or neutral.background, width, height, and scale settings.mermaid_save accepts a required save_path and matching preview_id, plus an optional output format. The save identifier must refer to a preview created with mermaid_preview.
Live reload applies only to SVG previews. Mermaid sequence diagrams do not support style directives inside sequenceDiagram definitions. The server opens local browser pages and depends on an available port in its configured range. Output paths and preview identifiers must be supplied by the calling workflow.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/veelenga-claude-mermaid)<a href="https://allmcps.com/mcp/veelenga-claude-mermaid"><img src="https://allmcps.com/api/badge/veelenga-claude-mermaid?style=directory" alt="Claude Mermaid on AllMCPs" /></a>