Mermaid Diagram Generator
Createdpeng-shawn
Converts Mermaid diagram code to PNG images using a headless browser.
About
Mermaid Diagram Generator is a Model Context Protocol (MCP) server that transforms textual Mermaid diagrams into high-quality PNG images. This tool seamlessly integrates with AI assistants and other applications, allowing them to generate visual representations of data, processes, and ideas described using Mermaid markdown syntax. It offers customizable themes and background colors, leveraging Puppeteer for reliable headless browser rendering. With flexible output options, images can be returned directly or saved to disk, providing a versatile solution for various integration needs.
Key Features
- Converts Mermaid diagram code to PNG images
- Supports multiple diagram themes (default, forest, dark, neutral)
- Customizable background colors
- Uses Puppeteer for headless browser rendering
- Implements the MCP protocol
Use Cases
- Generating diagrams from AI assistant prompts
- Visualizing data for applications
- Creating diagrams with customizable themes and background colors