peng-shawn_mermaid-mcp-server

peng-shawn_mermaid-mcp-server

3.1

If you are the rightful owner of peng-shawn_mermaid-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

The Mermaid MCP Server is designed to convert Mermaid diagram code into PNG images, facilitating the generation of visual diagrams from textual descriptions using the Mermaid markdown syntax. It leverages Puppeteer for high-quality rendering in a headless browser environment, supporting multiple themes and customizable background colors. The server is integrated with the MCP protocol, allowing seamless interaction with AI assistants and other applications. It offers flexible output options, either returning images directly or saving them to disk, and includes robust error handling with detailed messages.

Features

  • Converts Mermaid diagram code to PNG images
  • Supports multiple diagram themes (default, forest, dark, neutral)
  • Customizable background colors
  • Uses Puppeteer for high-quality headless browser rendering
  • Implements the MCP protocol for seamless integration with AI assistants