
Description
MCP Mermaid is a Model Context Protocol server that lets AI assistants generate Mermaid diagrams and charts. You add it to a desktop AI app that supports MCP, such as Claude, VS Code or Cline, and the assistant can then write Mermaid code and return the rendered diagram. The server supports the full Mermaid syntax and lets the model set backgroundColor and theme for styled output. Results can come back as base64, SVG, Mermaid source or a file. ink. The server validates Mermaid syntax, so the model can correct mistakes over several rounds. It can run over SSE or Streamable HTTP transport, installed globally as a package or run from source, and a Docker image is available. The README also points to related projects for charts, graphs, maps and infographics, and to a gallery for browsing and sharing AI-generated diagrams. The project is MIT licensed.…
Highlights
- Full Mermaid syntax support
- Theme and background color options
- Export as base64, SVG, Mermaid source or file
- Syntax validation for multi-round fixes
- SSE and Streamable HTTP transports
Ratings & Reviews
No ratings yet
Be the first to rate hustcc/mcp-mermaid.
People also visit

veelenga/claude-mermaid
Render Mermaid diagrams with live reload, themes and SVG, PNG or PDF export

mermaid-diagrams
Comprehensive guide for creating software diagrams using Mermaid syntax

beautiful-mermaid
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library
hustcc/mcp-mermaid FAQ
What is MCP Mermaid?
An MCP server that lets AI assistants generate Mermaid diagrams and charts and return them as images or code.
Which AI apps can use it?
Desktop apps that support MCP servers. The README mentions Claude, VS Code, Cline and Cherry Studio. It can also run over HTTP or SSE.
What output formats are available?
base64, SVG, Mermaid source and file output, plus the svg_url and png_url modes that create public mermaid.ink links.
Does it save files?
Set outputType to file to save PNG diagrams to disk, which is useful for AI agents.
Can I style the diagrams?
Yes. The backgroundColor and theme settings let the model produce styled output.
What are the best hustcc/mcp-mermaid alternatives?
Popular alternatives to hustcc/mcp-mermaid include pretty-mermaid, veelenga/claude-mermaid and draw.io. See all hustcc/mcp-mermaid alternatives



















