Generate Mermaid diagrams and charts with AI through MCP
open sourceMITself-hostablefreeMCP
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.
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 |
