Token导航 LogoToken导航TokenDH.com
MCP Mermaid logo
开发工具stdio官方级别未说明来源级核验

MCP Mermaid

MCP Server

MCP Mermaid是一个动态生成Mermaid图表和AI图表的服务,支持多种导出格式和传输协议。

工具数

0

提示词数

0

GitHub Stars

555

资源数

0
图表生成TypeScriptClaude开发工具ClaudeCline

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

hustcc

提供方

hustcc

最后核验

2026/5/17 20:20

运行时

Docker

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

docker run -p 3033:3033 susuperli/mcp-mermaid:latest --transport sse

详细介绍

生成 美人鱼 使用AI MCP动态绘制图表。您还可以使用:

✨ 特性

  • 完全支持的所有功能和语法 Mermaid.
  • 支持配置 backgroundColortheme,使大型AI模型能够输出丰富的样式配置。
  • 支持导出到 base64, svg, mermaid, file,远程友好 svg_url, png_url 格式,带有验证 Mermaid 以促进模型多轮输出正确的语法和图形。使用 outputType: "file" 自动将PNG图表保存到磁盘供AI代理使用,或通过公共mermaid.ink链接共享图表的URL模式。

🤖 用法

与一起使用 Desktop APP,如Claude、VSCode、Cline、Cherry Studio等,在下面添加MCP服务器配置。在Mac系统上:

{
  "mcpServers": {
    "mcp-mermaid": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-mermaid"
      ]
    }
  }
}

On Window系统:

{
  "mcpServers": {
    "mcp-mermaid": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "mcp-mermaid"
      ]
    }
  }
}

此外,您还可以在阿里云、modelscope、glama.ai、smithery.ai或其他具有HTTP、SSE协议的平台上使用它。

接入点:

  • 上海证券交易所 http://localhost:3033/sse
  • 可流式传输: http://localhost:1122/mcp

可用的Docker标签:

  • susuperli/mcp-mermaid:latest -最新稳定版本
  • 查看所有可用标签

🚰 使用SSE或流媒体传输运行

选项1:全局安装

全局安装软件包:

npm install -g mcp-mermaid

使用首选传输选项运行服务器:

# For SSE transport (default endpoint: /sse)
mcp-mermaid -t sse

# For Streamable transport with custom endpoint
mcp-mermaid -t streamable

方案2:地方发展

如果您在本地使用源代码:

# Clone and setup
git clone https://github.com/hustcc/mcp-mermaid.git
cd mcp-mermaid
npm install
npm run build

# Run with npm scripts
npm run start:sse        # SSE transport on port 3033
npm run start:streamable # Streamable transport on port 1122

接入点

然后,您可以访问服务器:

  • SSE运输: http://localhost:3033/sse
  • 可流动运输: http://localhost:1122/mcp (本地)或 http://localhost:3033/mcp (全球)

🎮 CLI选项

运行MCP服务器时,您还可以使用以下CLI选项。使用run-cli命令选项 -h.

MCP Mermaid CLI

Options:
  --transport, -t  Specify the transport protocol: "stdio", "sse", or "streamable" (default: "stdio")
  --port, -p       Specify the port for SSE or streamable transport (default: 3033)
  --endpoint, -e   Specify the endpoint for the transport:
                    - For SSE: default is "/sse"
                    - For streamable: default is "/mcp"
  --help, -h       Show this help message

🔨 发展

安装依赖项:

npm install

构建服务器:

npm run build

启动MCP服务器

使用MCP检查器(用于调试):

npm run start

使用不同的传输协议:

# SSE transport (Server-Sent Events)
npm run start:sse

# Streamable HTTP transport
npm run start:streamable

直接节点命令:

# SSE transport on port 3033
node build/index.js --transport sse --port 3033

# Streamable HTTP transport on port 1122
node build/index.js --transport streamable --port 1122

# STDIO transport (for MCP client integration)
node build/index.js --transport stdio

🐳 Docker使用

使用Docker运行MCP Mermaid:

# Pull the image
docker pull susuperli/mcp-mermaid:latest

# Run with SSE transport (default)
docker run -p 3033:3033 susuperli/mcp-mermaid:latest --transport sse

# Run with streamable transport
docker run -p 1122:1122 susuperli/mcp-mermaid:latest --transport streamable --port 1122

📄 许可证

麻省理工学院@hustcc.

目录标签

目录标签

图表生成TypeScriptClaude开发工具混合部署可托管AI整合多格式导出Mermaid支持

支持客户端

ClaudeCline

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Docker

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP