# MCP Mermaid

> Generate Mermaid diagrams and charts with AI through MCP

Source: https://talira.ai/catalog/mcp-mermaid-rvrfcgzx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: MCP server, Command-line tool
- Categories: [ai / mcp / servers](https://talira.ai/categories/ai/mcp/servers), [design / diagramming](https://talira.ai/categories/design/diagramming)
- Platforms: cli, docker
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^3]
- MCP server: yes[^3]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^3]
- Backed by: [hustcc](https://talira.ai/orgs/hustcc.md)

MCP Mermaid is an MCP server that lets an AI assistant turn Mermaid syntax into rendered diagrams and charts. It supports all of Mermaid's diagram types and syntax, lets the model set the theme, background colour and a hand-drawn look, and validates the Mermaid so the model can fix its syntax over several turns. Output can be base64, SVG, the Mermaid source, a PNG file saved to disk for agents, or public mermaid.ink SVG and PNG links for sharing. It runs with `npx` over stdio in Claude Desktop, VS Code, Cline and other clients, or as an SSE or Streamable HTTP server, including from a Docker image.

## Links

- GitHub: https://github.com/hustcc/mcp-mermaid

## Problems it solves

- my AI assistant writes Mermaid code but I want to see the rendered diagram
- have Claude draw a flowchart or sequence diagram as an image I can paste into docs
- the Mermaid my LLM writes often has syntax errors and fails to render
- save AI-generated diagrams as PNG files from my coding agent
- get a shareable link to a diagram my agent drew
- render Mermaid charts with a custom theme and background from an AI chat
- run a diagram-rendering MCP server over HTTP for my team's agents

## Features

- all Mermaid diagram types and syntax
- theme, background colour and hand-drawn look options
- syntax validation for multi-turn fixes
- base64, SVG, Mermaid, PNG file and mermaid.ink URL outputs
- stdio, SSE and Streamable HTTP transports
- Docker image

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.27, adoption 0.56, momentum 0.47, community 0.45, backing 0.30, extensibility 0.40.

- latest release 0.4.1 9 months ago
- 653 GitHub stars
- 12 contributors
- backed by hustcc
- has an MCP server for agents

Warnings:

- last commit 6 months ago

## Sources

[^1]: https://github.com/hustcc/mcp-mermaid/blob/main/LICENSE (checked 22 Nov 2026)
[^2]: https://www.npmjs.com/package/mcp-mermaid (checked 22 Nov 2026)
[^3]: https://github.com/hustcc/mcp-mermaid (checked 22 Nov 2026)
