Validates and optionally renders Mermaid diagrams using a Python Model Context Protocol (MCP) server.
The Mermaid Validator is a Python-based Model Context Protocol (MCP) server designed to streamline the process of validating and rendering Mermaid diagrams. It acts as a lightweight wrapper around the official `mermaid-cli` tool, abstracting away complex file handling and command-line operations. This server empowers large language models (LLMs) by providing structured validation results, including a boolean status, detailed error messages for syntax issues, and optional base64-encoded PNG images of successfully rendered diagrams for visual confirmation. This robust feedback mechanism enables LLMs to programmatically verify diagram syntax, understand and correct errors, and visually confirm their output.