ai.smithery/hustcc-mcp-mermaid MCP Server
ai.smithery/hustcc-mcp-mermaid
Generate dynamic Mermaid diagrams and charts with AI assistance, supporting multiple export formats.
What is the ai.smithery/hustcc-mcp-mermaid MCP server?
The MCP Mermaid server generates Mermaid diagrams and charts dynamically with AI assistance. It supports all Mermaid features and syntax, with configurable styling (backgroundColor, theme) and multiple export formats including base64, SVG, PNG, and shareable URLs. The server integrates with Claude, Cursor, and other AI tools via stdio, SSE, or Streamable HTTP transports.
MCP Mermaid lets AI agents create rich diagrams, flowcharts, and visualizations on-the-fly. You can customize styles, validate syntax, and export to various formats—from embedded base64 to shareable mermaid.ink links. Useful for generating documentation, architecture diagrams, timelines, and any visual content that benefits from AI-assisted creation.
How to install ai.smithery/hustcc-mcp-mermaid
Copy-paste configuration for popular MCP clients.
AuthorizationrequiredsecretBearer token for Smithery authentication
Tools & capabilities
Tools this server exposes to the agent.
generate_mermaid— Generate Mermaid diagrams with customizable themes, backgroundColor, and syntax validationexport_diagram— Export diagrams to multiple formats: base64, svg, mermaid, file (PNG), svg_url, and png_url
Use cases
- Generate flowcharts and sequence diagrams from natural language descriptions
- Create architecture and system design diagrams with AI assistance
- Export diagrams as PNG files or shareable links for documentation
- Build timelines, comparison charts, and process visualizations
- Validate and iterate on Mermaid syntax through multi-round AI refinement
ai.smithery/hustcc-mcp-mermaid MCP server FAQ
It's an MCP server that generates Mermaid diagrams dynamically with AI assistance. It supports all Mermaid syntax, customizable styling, and exports to multiple formats including PNG, SVG, and shareable URLs.
Yes, MCP Mermaid is open-source under the MIT license.
Add the server to your MCP config file. On Mac, use `npx -y mcp-mermaid` as the command. On Windows, use `cmd /c npx -y mcp-mermaid`. You can also use the remote Smithery endpoint: https://server.smithery.ai/@hustcc/mcp-mermaid/mcp
The server supports base64, SVG, Mermaid source, PNG file output, and remote-friendly svg_url and png_url formats for sharing via mermaid.ink.
No authentication is required. The server runs locally or via public HTTP/SSE endpoints.
Yes, you can configure backgroundColor and theme settings, allowing AI models to output rich style configurations alongside diagram syntax.
README (reference)
Source of truth, from the repository.
<img src="https://mermaid.js.org/favicon.svg" height="24"/> MCP Mermaid

Generate <img src="https://mermaid.js.org/favicon.svg" height="14"/> mermaid diagram and chart with AI MCP dynamically. Also you can use:
- <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ZFK8SrovcqgAAAAAAAAAAAAAemJ7AQ/original" height="14"/> mcp-server-chart to generate chart, graph, map.
- <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*EdkXSojOxqsAAAAAQHAAAAgAemJ7AQ/original" height="14"/> Infographic to generate infographic, such as
Timeline,Comparison,List,Processand so on. - 🖼️ figure.ling.pub/gallery to browse and share AI-generated diagrams and figures created with mcp-mermaid and other tools.
✨ Features
-
Fully support all features and syntax of
Mermaid. -
Support configuration of
backgroundColorandtheme, enabling large AI models to output rich style configurations. -
Support exporting to
base64,svg,mermaid,file, and remote-friendlysvg_url,png_urlformats, with validation forMermaidto facilitate the model's multi-round output of correct syntax and graphics. UseoutputType: "file"to automatically save PNG diagrams to disk for AI agents, or the URL modes to share diagrams through public mermaid.ink links.
🤖 Usage
To use with Desktop APP, such as Claude, VSCode, Cline, Cherry Studio, and so on, add the MCP server config below. On Mac system:
{
"mcpServers": {
"mcp-mermaid": {
"command": "npx",
"args": [
"-y",
"mcp-mermaid"
]
}
}
}
On Window system:
{
"mcpServers": {
"mcp-mermaid": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"mcp-mermaid"
]
}
}
}
Also, you can use it on aliyun, modelscope, glama.ai, smithery.ai or others with HTTP, SSE Protocol.
Access Points:
- SSE:
http://localhost:3033/sse - Streamable:
http://localhost:1122/mcp
Available Docker Tags:
susuperli/mcp-mermaid:latest- Latest stable version- View all available tags at Docker Hub
🚰 Run with SSE or Streamable transport
Option 1: Global Installation
Install the package globally:
npm install -g mcp-mermaid
Run the server with your preferred transport option:
# For SSE transport (default endpoint: /sse)
mcp-mermaid -t sse
# For Streamable transport with custom endpoint
mcp-mermaid -t streamable
Option 2: Local Development
If you're working with the source code locally:
# 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
Access Points
Then you can access the server at:
- SSE transport:
http://localhost:3033/sse - Streamable transport:
http://localhost:1122/mcp(local) orhttp://localhost:3033/mcp(global)
🎮 CLI Options
You can also use the following CLI options when running the MCP server. Command options by run cli with -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
🔨 Development
Install dependencies:
npm install
Build the server:
npm run build
Start the MCP server
Using MCP Inspector (for debugging):
npm run start
Using different transport protocols:
# SSE transport (Server-Sent Events)
npm run start:sse
# Streamable HTTP transport
npm run start:streamable
Direct node commands:
# 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 Usage
Run MCP Mermaid with Docker:
# 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
📄 License
MIT@hustcc.
Related MCP servers
Analyze images from multiple angles to extract detailed insights or quick summaries. Describe visu…
Transform text into knowledge graphs and analyze conceptual relationships using network science algorithms.
Search Korean public libraries in real-time and check book availability across nearby branches.
Enrich user data by adding social network links based on provided personal information. Integrate…
Greet people by name and check local forecasts and weather alerts across the U.S. Switch to a play…
Fetch latest and historical currency exchange rates from Frankfurter. Convert amounts between curr…





