Mermaid live preview MCP server

Mermaid live preview MCP server

mermaid-live-mcp•byiishyfishyy

An MCP server that generates Mermaid diagrams and opens a live browser preview, re-rendering on updates and supporting SVG/PNG export.

License: Not specified•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Generates a diagram from Mermaid syntax and opens a live preview in the browser.
  • •Replaces a diagram's Mermaid syntax and re-renders the live preview.
  • •Lists all diagrams generated in the current session and exports a diagram's SVG to disk.
  • •Pushes diagram updates to the browser instantly over WebSocket without a page refresh.

BEST FOR

  • •Developers wanting AI assistants to create diagrams with instant visual feedback.
  • •Users who need flowcharts, sequence diagrams, ER diagrams, Gantt charts, and other Mermaid diagram types.
  • •Exporting finished diagrams as SVG or PNG files.

ABOUT MERMAID-LIVE-MCP

Mermaid live preview MCP server is cataloged as an MCP server attributed to iishyfishyy. An MCP server that generates Mermaid diagrams and opens a live browser preview, re-rendering on updates and supporting SVG/PNG export. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Mermaid live preview MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which Mermaid diagram types are supported?

All Mermaid diagram types are supported, including flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, git graphs, mindmaps, and timelines.

Do I need to refresh the browser to see diagram updates?

No; updates are pushed instantly to the browser over WebSocket without a page refresh.

Upstream README

View this exact version on GitHub

README.md · ed5deda83e51 · Fetched 2026-11-13 13:55:24 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

mermaid-live-mcp

MCP server for generating Mermaid diagrams with live browser preview. Renders diagrams in real-time and supports SVG/PNG export.

npm version

mermaid-live-mcp demo

Install

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "mermaid": {
      "command": "npx",
      "args": ["-y", "mermaid-live-mcp"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "mermaid": {
      "command": "npx",
      "args": ["-y", "mermaid-live-mcp"]
    }
  }
}

Claude Code

claude mcp add mermaid -- npx -y mermaid-live-mcp

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "mermaid": {
      "command": "npx",
      "args": ["-y", "mermaid-live-mcp"]
    }
  }
}

Tools

ToolDescription
generate_mermaidGenerate a diagram from Mermaid syntax and open a live preview in the browser
update_diagramReplace a diagram's Mermaid syntax and re-render the live preview
list_diagramsList all diagrams generated in the current session
export_diagramWrite a diagram's SVG to disk

How it works

When you ask your AI assistant to create a diagram, mermaid-live-mcp will:

  1. Parse the Mermaid syntax
  2. Open a browser tab with a live preview
  3. Render the diagram as SVG in real-time via WebSocket
  4. Provide download buttons for SVG and PNG export

Updates to a diagram are pushed instantly to the browser — no page refresh needed.

Supported diagram types

All 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.

Development

pnpm install
pnpm build

Project structure

PackageDescription
packages/mcp-serverMCP server (published as mermaid-live-mcp)
packages/previewLive browser preview via WebSocket
packages/coreDiagram parsing, layout, and SVG rendering
packages/cliCommand-line interface

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Mermaid live preview MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mermaid-live-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design