MCP 美人鱼

使用 AI MCP 动态生成美人鱼图和图表。您也可以使用mcp-server-chart生成图表、图形和地图。
✨ 特点
完全支持
Mermaid的所有功能和语法。支持
backgroundColor、theme的配置,使大型AI模型能够输出丰富的风格配置。支持导出为
png、svg、mermaid格式,并对Mermaid进行验证,方便模型多轮输出正确的语法和图形。
🤖 使用方法
如需与 Claude、VSCode、Cline、Cherry Studio 等Desktop APP配合使用,请添加下方 MCP 服务器配置。Mac 系统:
{
"mcpServers": {
"mcp-mermaid": {
"command": "npx",
"args": [
"-y",
"mcp-mermaid"
]
}
}
}
在 Windows 系统上:
{
"mcpServers": {
"mcp-mermaid": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"mcp-mermaid"
]
}
}
}
另外,您还可以在 aliyun、modelscope、glama.ai、smithery.ai 或其他具有 HTTP、SSE 协议的平台上使用它。
🚰 使用 SSE 或 Streamable 传输运行
全局安装该包。
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
然后您可以通过以下方式访问服务器:
SSE 传输:
http://localhost:3033/sse可流式传输:
http://localhost:3033/mcp
🎮 CLI 选项
运行 MCP 服务器时,您还可以使用以下 CLI 选项。使用-h运行 cli 命令。
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 服务器:
npm run start
📄 许可证
MIT@ hustcc 。