{"repo":"peng-shawn/mermaid-mcp-server","free":true,"listed":false,"github":"https://github.com/peng-shawn/mermaid-mcp-server","clone":"git clone https://github.com/peng-shawn/mermaid-mcp-server.git","description":"A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images","language":"JavaScript","stars":233,"topics":[],"license":"MIT","category":"mcp-servers","readme_excerpt":"Mermaid MCP Server A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images or SVG files. This server allows AI assistants and other applications to generate visual diagrams from textual descriptions using the Mermaid markdown syntax. Features - Converts Mermaid diagram code to PNG images or SVG files - 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 - Flexible output options: return images/SVG directly or save to disk - Error handling with detailed error messages How It Works The server uses Puppeteer to launch a headless browser, render the Mermaid diagram to SVG, and optionally capture a screenshot of the rendered diagram. The process involves: 1. Launching a headless browser instance 2. Creating an HTML template with the Mermaid code 3. Loading the Mermaid.js library 4. Rendering the diagram to SVG 5. Either saving the SVG directly or taking a screenshot as PNG 6. Either returning the image/SVG directly or saving it to disk Build Usage Use with Claude desktop Use with Cursor and Cline You can find a list of mermaid diagrams under ./diagrams , they are created using Cursor agent with prompt: \"generate mermaid diagrams and save them in a separate diagrams folder explaining how renderMermaidPng work\" Run with inspector Run the server with inspector for testing and de","default_branch":null,"files":null,"tree":[],"storefront":"/r/peng-shawn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/peng-shawn/mermaid-mcp-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}