diagram
(string): The Mermaid diagram syntax to validate
How to use it
diagram is exposed by the MCP Mermaid Validator MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the diagram tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Mermaid Validator
$
npx @modelcontextprotocol/inspector node dist/main.js