mermaid-mcp-server

JavaScript

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

Protocol Implementations
Function Calling
Developer Tooling

Architecture and Design Patterns

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.

About

Language

JavaScript

Stars

10

Categories

Protocol ImplementationsFunction CallingDeveloper Tooling