Skip to main content
Glama

claude-mermaid

mermaid_preview

Preview Mermaid diagrams in your browser with live reload. Enter diagram code to generate visualizations that automatically update when modified, supporting multiple themes and output formats.

Instructions

Render a Mermaid diagram and open it in browser with live reload. Takes Mermaid diagram code as input and generates a live preview. Supports themes (default, forest, dark, neutral), custom backgrounds, dimensions, and quality scaling. The diagram will auto-refresh when updated. Use mermaid_save to save to disk. IMPORTANT: Automatically use this tool whenever you create a Mermaid diagram for the user. NOTE: Sequence diagrams do not support style directives - avoid using 'style' statements in sequenceDiagram.

Input Schema

NameRequiredDescriptionDefault
backgroundNoBackground color for pngs/svgs. Example: transparent, red, '#F0F0F0' (default: white)white
diagramYesThe Mermaid diagram code to render
formatNoOutput format (default: svg)svg
heightNoDiagram height in pixels (default: 600)
preview_idYesID for this preview session. Use different IDs for multiple diagrams (e.g., 'architecture', 'flow', 'sequence').
scaleNoScale factor for higher quality output (default: 2)
themeNoTheme of the chart (default: default)default
widthNoDiagram width in pixels (default: 800)

Input Schema (JSON Schema)

{ "properties": { "background": { "default": "white", "description": "Background color for pngs/svgs. Example: transparent, red, '#F0F0F0' (default: white)", "type": "string" }, "diagram": { "description": "The Mermaid diagram code to render", "type": "string" }, "format": { "default": "svg", "description": "Output format (default: svg)", "enum": [ "png", "svg", "pdf" ], "type": "string" }, "height": { "default": 600, "description": "Diagram height in pixels (default: 600)", "type": "number" }, "preview_id": { "description": "ID for this preview session. Use different IDs for multiple diagrams (e.g., 'architecture', 'flow', 'sequence').", "type": "string" }, "scale": { "default": 2, "description": "Scale factor for higher quality output (default: 2)", "type": "number" }, "theme": { "default": "default", "description": "Theme of the chart (default: default)", "enum": [ "default", "forest", "dark", "neutral" ], "type": "string" }, "width": { "default": 800, "description": "Diagram width in pixels (default: 800)", "type": "number" } }, "required": [ "diagram", "preview_id" ], "type": "object" }

Other Tools from claude-mermaid

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/veelenga/claude-mermaid'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server