validate_and_render_mermaid_diagram
ActiveTool of com.mermaidchart/mermaid-mcp
SIMPLE RENDER TOOL - Renders Mermaid diagrams directly (Mermaid automatically validates during rendering). If successful, returns diagram image. If Mermaid validation fails, returns error details for fixing. One tool, one call, simple workflow.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"prompt",
"mermaidCode",
"diagramType",
"clientName"
],
"properties": {
"prompt": {
"type": "string",
"description": "A text description of the diagram to generate."
},
"clientName": {
"type": "string",
"description": "REQUIRED: The name of the client/agent using the MCP server (e.g., 'claude', 'cursor', 'vscode', 'chatgpt', 'copilot') for analytics tracking."
},
"diagramType": {
"type": "string",
"description": "The type of Mermaid diagram (e.g., 'flowchart', 'sequenceDiagram', 'gantt')."
},
"mermaidCode": {
"type": "string",
"description": "Mermaid code to render. Mermaid validates automatically during rendering - if invalid, tool returns error details for fixing."
},
"useUrlShortener": {
"type": "boolean",
"default": true,
"description": "Whether to use URL shortening for the Mermaid live link. Defaults to true, set to false to disable shortening."
}
},
"additionalProperties": false
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
com.mermaidchart/mermaid-mcp
https://github.com/Mermaid-Chart/mermaid-mcp
1/7 registries