Skip to main content
Glama

Mermaid MCP Server

by wwwzhouhui
MIT License
2

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoSets the logging level (e.g., DEBUG for detailed logs)INFO

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
convert_mermaid_to_image
将 Mermaid 图表代码转换为多种格式的图像(PNG、JPG、PDF、SVG)。 参数: mermaid_code: 要转换的 Mermaid 图表语法代码 output_format: 输出格式 - png、jpg、svg 或 pdf(默认:png) theme: 视觉主题 - default、dark、neutral 或 forest(默认:default) background_color: 背景颜色,十六进制代码(如 FF0000)或带 ! 前缀的命名颜色(如 !white) width: 图像宽度(像素,可选) height: 图像高度(像素,可选) 返回: 包含转换后图像数据和元数据的字典
validate_mermaid_syntax
通过尝试简单转换来验证 Mermaid 图表语法。 参数: mermaid_code: 要验证的 Mermaid 图表语法代码 返回: 包含验证结果的字典
get_supported_options
获取转换器支持的选项,如图表主题和输出格式。 返回: 一个包含支持的主题和格式列表的字典。

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/wwwzhouhui/mermaid_mcp_server'

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