mcp-mermaid and mcp-mermaid-validator
These are complements: one generates Mermaid diagrams dynamically with AI, while the other validates and renders them, forming a pipeline for creation and quality assurance.
About mcp-mermaid
hustcc/mcp-mermaid
❤️ Generate mermaid diagram and chart with AI MCP dynamically.
Implements an MCP server supporting stdio, SSE, and Streamable transports for AI clients (Claude, VSCode, Cline) to generate Mermaid diagrams with configurable themes and styling. Offers multiple export formats including base64, SVG, PNG files, and shareable mermaid.ink URLs, with syntax validation to help models iteratively correct diagram outputs.
About mcp-mermaid-validator
rtuin/mcp-mermaid-validator
A Model Context Protocol server that validates and renders Mermaid diagrams.
Implements a `validateMermaid` tool that pipes diagram syntax to the Mermaid CLI via child processes, returning validation results and base64-encoded PNG renders. Built as a TypeScript Node.js service exposing tools through the MCP SDK, it integrates with MCP-compatible clients like Cursor and uses zod for schema validation. The architecture isolates rendering in separate processes, captures detailed error output, and handles cross-platform stdin/stdout portability (Linux/macOS/WSL/Windows).
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work