mcp-mermaid-validator
by rtuin·★ 54·Score 45
MCP server for validating and rendering Mermaid diagrams into PNG format.
Overview
This MCP server provides a tool for validating Mermaid diagram syntax and rendering them as PNG images. It uses the Mermaid CLI tool to process diagram input through Node.js child processes, allowing it to capture both validation results and rendered outputs. The server returns text confirmation along with base64-encoded PNG data for valid diagrams, and detailed error messages for invalid ones.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when your application needs to validate and render Mermaid diagrams as PNG images in an AI workflow.
When NOT to choose this
Don't choose this if you need SVG output format or require more advanced diagram manipulation features beyond validation and basic rendering.
Tools this server exposes
1 tool extracted from the READMEvalidateMermaiddiagram: stringValidates a Mermaid diagram and returns the rendered PNG if valid
Comparable tools
Installation
Installation
Using npx:
npx -y @rtuin/mcp-mermaid-validator@latestAdd to your MCP configuration (e.g., Claude Desktop):
{
"mcpServers": {
"mermaid-validator": {
"command": "npx",
"args": [
"-y",
"@rtuin/mcp-mermaid-validator@latest"
]
}
}
}FAQ
- What image formats are supported?
- The server currently outputs diagrams in PNG format for better compatibility with most MCP clients, particularly those that don't support SVG.
- How are errors handled?
- The server distinguishes between validation errors (invalid diagram syntax) and system errors, providing detailed error messages to help users fix their diagrams while maintaining service stability.
Compare mcp-mermaid-validator with
Last updated · Auto-generated from public README + GitHub signals.