A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images
The server architecture revolves around a headless browser (Puppeteer) which renders Mermaid diagrams from code provided via MCP. The server exposes a 'generate' tool that accepts diagram code and rendering options. It supports both returning images directly and saving them to disk, determined by the CONTENT_IMAGE_SUPPORTED
variable. This design enables integration with various MCP clients with differing image support.
JavaScript
10