Generate mermaid diagram and chart with AI MCP dynamically. Also you can use: - mcp-server-chart to generate chart, graph, map. - Infographic to generate infographic, such as Timeline, Comparison, List, Process and so on. - Fully support all features and syntax of Mermaid. - Support configuration of backgroundColor and theme, enabling large AI models to output rich style configurations. - Support
Add this skill
npx mdskills install hustcc/mcp-mermaidWell-documented MCP server for generating Mermaid diagrams with multiple output formats and transport options
1# <img src="https://mermaid.js.org/favicon.svg" height="24"/> MCP Mermaid  [](https://github.com/hustcc/mcp-mermaid/actions/workflows/build.yml) [](https://www.npmjs.com/package/mcp-mermaid) [](https://smithery.ai/server/@hustcc/mcp-mermaid) [](https://www.npmjs.com/package/mcp-mermaid) [](https://archestra.ai/mcp-catalog/hustcc__mcp-mermaid)23Generate <img src="https://mermaid.js.org/favicon.svg" height="14"/> [mermaid](https://mermaid.js.org/) diagram and chart with AI MCP dynamically. Also you can use:45- <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ZFK8SrovcqgAAAAAAAAAAAAAemJ7AQ/original" height="14"/> [mcp-server-chart](https://github.com/antvis/mcp-server-chart) to generate chart, graph, map.6- <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*EdkXSojOxqsAAAAAQHAAAAgAemJ7AQ/original" height="14"/> [Infographic](https://github.com/antvis/Infographic) to generate infographic, such as `Timeline`, `Comparison`, `List`, `Process` and so on.789## โจ Features1011- Fully support all features and syntax of `Mermaid`.12- Support configuration of `backgroundColor` and `theme`, enabling large AI models to output rich style configurations.1314- Support exporting to `base64`, `svg`, `mermaid`, `file`, and remote-friendly `svg_url`, `png_url` formats, with validation for `Mermaid` to facilitate the model's multi-round output of correct syntax and graphics. Use `outputType: "file"` to automatically save PNG diagrams to disk for AI agents, or the URL modes to share diagrams through public mermaid.ink links.151617<img width="720" alt="mcp-mermaid" src="https://mermaid.js.org/header.png" />181920## ๐ค Usage2122To use with `Desktop APP`, such as Claude, VSCode, Cline, Cherry Studio, and so on, add the MCP server config below. On Mac system:2324```json25{26 "mcpServers": {27 "mcp-mermaid": {28 "command": "npx",29 "args": [30 "-y",31 "mcp-mermaid"32 ]33 }34 }35}36```3738On Window system:3940```json41{42 "mcpServers": {43 "mcp-mermaid": {44 "command": "cmd",45 "args": [46 "/c",47 "npx",48 "-y",49 "mcp-mermaid"50 ]51 }52 }53}54```5556Also, you can use it on aliyun, modelscope, glama.ai, smithery.ai or others with HTTP, SSE Protocol.575859## ๐ฐ Run with SSE or Streamable transport6061### Option 1: Global Installation6263Install the package globally:6465```bash66npm install -g mcp-mermaid67```6869Run the server with your preferred transport option:7071```bash72# For SSE transport (default endpoint: /sse)73mcp-mermaid -t sse7475# For Streamable transport with custom endpoint76mcp-mermaid -t streamable77```7879### Option 2: Local Development8081If you're working with the source code locally:8283```bash84# Clone and setup85git clone https://github.com/hustcc/mcp-mermaid.git86cd mcp-mermaid87npm install88npm run build8990# Run with npm scripts91npm run start:sse # SSE transport on port 303392npm run start:streamable # Streamable transport on port 112293```9495### Access Points9697Then you can access the server at:9899- SSE transport: `http://localhost:3033/sse`100- Streamable transport: `http://localhost:1122/mcp` (local) or `http://localhost:3033/mcp` (global)101102## ๐ฎ CLI Options103104You can also use the following CLI options when running the MCP server. Command options by run cli with `-h`.105106```plain107MCP Mermaid CLI108109Options:110 --transport, -t Specify the transport protocol: "stdio", "sse", or "streamable" (default: "stdio")111 --port, -p Specify the port for SSE or streamable transport (default: 3033)112 --endpoint, -e Specify the endpoint for the transport:113 - For SSE: default is "/sse"114 - For streamable: default is "/mcp"115 --help, -h Show this help message116```117118## ๐จ Development119120Install dependencies:121122```bash123npm install124```125126Build the server:127128```bash129npm run build130```131132### Start the MCP server133134**Using MCP Inspector (for debugging):**135136```bash137npm run start138```139140**Using different transport protocols:**141142```bash143# SSE transport (Server-Sent Events)144npm run start:sse145146# Streamable HTTP transport147npm run start:streamable148```149150**Direct node commands:**151152```bash153# SSE transport on port 3033154node build/index.js --transport sse --port 3033155156# Streamable HTTP transport on port 1122157node build/index.js --transport streamable --port 1122158159# STDIO transport (for MCP client integration)160node build/index.js --transport stdio161```162163## ๐ License164165MIT@[hustcc](https://github.com/hustcc).166
Full transparency โ inspect the skill content before installing.