Mermaid
Renders Mermaid diagrams into SVG, PDF, and multi-page PDF presentations for Model Context Protocol clients and AI workflows.
The Mermaid server is a TypeScript-based Model Context Protocol (MCP) server designed to transform Mermaid diagram source code into high-quality SVG, PDF, and multi-page deck artifacts. It integrates seamlessly with AI coding workflows like Claude Code, Codex, and Cursor, providing a robust solution for generating durable, shareable diagrams instead of simple code blocks. Leveraging Puppeteer, Mermaid CLI, and pdf-lib, it offers features such as configurable themes, Google Fonts, drop shadow support, and flexible storage options including local filesystem or S3/MinIO.
Key Features
01Exposes Mermaid diagram rendering tools over the Model Context Protocol
02Provides Docker-ready deployment with volume mount support for persistent storage
030 GitHub stars
04Combines multiple diagrams into multi-page PDF 'deck' presentations
05Supports flexible storage backends (local filesystem or S3/MinIO) with auto-detection
06Generates high-quality SVG and PDF outputs with configurable themes and Google Fonts
Use Cases
01Automating the creation of SVG and PDF diagrams for documentation and technical reports.
02Assembling multi-page PDF presentations from a collection of Mermaid diagrams.
03Integrating durable diagram generation into AI coding assistants like Claude Code and Cursor.