Skip to main content
Glama

Mermaid Chart MCP

render_mermaid_chart

Convert Mermaid diagram code into high-quality PNG, SVG, or PDF files with customizable dimensions, themes, and background colors. Ideal for creating and saving visual diagrams locally or via HTTP URLs.

Instructions

将 Mermaid 代码渲染为高质量图片文件

Input Schema

NameRequiredDescriptionDefault
backgroundColorNo背景颜色,默认为 whitewhite
formatNo输出格式(png, svg, pdf),默认为 pngpng
heightNo图片高度(像素),默认为 800
mermaidCodeYesMermaid 图表代码
outputPathYes输出文件路径(包含文件名和扩展名)
themeNoMermaid 主题,默认为 defaultdefault
widthNo图片宽度(像素),默认为 1200

Input Schema (JSON Schema)

{ "properties": { "backgroundColor": { "default": "white", "description": "背景颜色,默认为 white", "type": "string" }, "format": { "default": "png", "description": "输出格式(png, svg, pdf),默认为 png", "enum": [ "png", "svg", "pdf" ], "type": "string" }, "height": { "default": 800, "description": "图片高度(像素),默认为 800", "type": "number" }, "mermaidCode": { "description": "Mermaid 图表代码", "type": "string" }, "outputPath": { "description": "输出文件路径(包含文件名和扩展名)", "type": "string" }, "theme": { "default": "default", "description": "Mermaid 主题,默认为 default", "enum": [ "default", "dark", "forest", "neutral" ], "type": "string" }, "width": { "default": 1200, "description": "图片宽度(像素),默认为 1200", "type": "number" } }, "required": [ "mermaidCode", "outputPath" ], "type": "object" }

Other Tools from Mermaid Chart MCP

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/pickstar-2002/mermaid-chart-mcp'

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