Claude Mermaid
MCP server by veelenga Verified · npm:claude-mermaid
Claude Mermaid renders Mermaid diagrams in Claude Code and previews them in the browser with live reload. It is for developers who create diagrams while writing documentation or designing systems.
Install Claude Mermaid
Built from the published package, never by AI.
claude mcp add claude-mermaid -- npx -y claude-mermaidRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"claude-mermaid": {
"args": [
"-y",
"claude-mermaid"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"claude-mermaid": {
"args": [
"-y",
"claude-mermaid"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"claude-mermaid": {
"args": [
"-y",
"claude-mermaid"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add claude-mermaid -- npx -y claude-mermaid{
"mcpServers": {
"claude-mermaid": {
"args": [
"-y",
"claude-mermaid"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add claude-mermaid npx -y claude-mermaidGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the claude-mermaid block.
About
Claude Mermaid is an MCP server that renders Mermaid diagrams for Claude Code. When Claude creates or edits a diagram, the server opens a live preview in the browser. The browser refreshes automatically through a WebSocket connection as the diagram changes. Users can pan the diagram, zoom with browser controls and export it as SVG or PNG from the preview. The server supports SVG, PNG and PDF output, four themes, and custom size, scale and background settings. It also includes a built-in skill with diagram guidance. The project is aimed at developers and technical writers who want to iterate on diagrams and save them into documentation.
Written from the project's README and checked against it.
Tools it gives your assistant
mermaid_previewRenders a Mermaid diagram and opens a live preview in the browser.mermaid_saveSaves the current live diagram to a path such as ./docs/diagram.svg.
What you need
- Claude Code, for the plugin install
- npm, for the npm or source install
- A web browser to view live previews
Try asking
- Create a Mermaid diagram showing the user authentication flow
- Generate a forest theme flowchart and save to ./docs/flow.svg
- Create an ER diagram and save as PDF to ./docs/schema.pdf
Good to know
- Live reload works only for SVG format.
- PNG and PDF files are rendered without live reload.
- Mermaid does not support style directives inside sequenceDiagram.
- The live server uses ports 3737 to 3747.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Claude Mermaid
All alternatives →Browser Use runs an AI model in a real browser, where it completes web tasks by writing Python against Chrome DevTools Protocol. It is for developers who want to fill forms, navigate sites and extract data locally or on Browser Use Cloud.
Pomerado builds MCP integrations for websites, including sites without an API, from a plain language task description. It is for people who want their agent to use a site reliably without computer use.
Selenide MCP server runs browser automation for AI assistants. It is built on the Selenide Java testing framework, which wraps Selenium WebDriver 4.0+. It suits developers who want AI agents to drive UI tests.
SeleniumBase is a Python browser automation framework for stealth browsing, end-to-end testing and web scraping. It uses CDP Mode to work with Chromium-based browsers, and it is aimed at software teams.
Camofox Browser MCP exposes the camofox-browser REST API as MCP tools for AI coding assistants. It proxies to an already-running camofox-browser server, so agents can browse sites that block standard automation.
Cline is an open source coding agent that edits files, runs commands, and uses the browser. It works in a terminal CLI, a macOS and Windows desktop app, VS Code, JetBrains IDEs, and an SDK for developers building their own agents.
Compare with browser-use, Pomerado or Selenide
Claude Mermaid: common questions
Does Claude Mermaid support live reload?
Yes. The browser preview detects changes through WebSocket and reloads automatically. Live reload is available only for SVG output.
Can I work on several diagrams at once?
Yes. Each diagram uses a preview_id, so separate diagrams can be worked on at the same time.
What output formats can diagrams be saved in?
Diagrams can be saved as SVG, PNG or PDF. The mermaid_save tool renders the chosen format on demand if no working file exists yet.
How do I install Claude Mermaid?
In Claude Code run claude mcp add claude-mermaid -- npx -y claude-mermaid. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Claude Mermaid the official server?
Claude Mermaid is published by npm:claude-mermaid from its verified domain in the official MCP Registry.
Is Claude Mermaid free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Claude Mermaid safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Claude Mermaid?
Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.
Does Claude Mermaid work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
