MCP ServerHTTPOfficialv0.1.3

Smithery Hustcc MCP Mermaid MCP Server

Generate Mermaid diagrams and charts dynamically with AI assistance, supporting all Mermaid syntax, custom themes, and multiple export formats (SVG, PNG, base64, URLs). Ideal for developers building AI agents that need to visualize workflows, architecture, and data structures.

ai.smithery/hustcc-mcp-mermaid

Hosted URL

https://server.smithery.ai/@hustcc/mcp-mermaid/mcp

Transport

HTTP

Auth

No auth required

Smithery Hustcc MCP Mermaid repository at a glance

Live signal from GitHub, refreshed weekly.

Stars

558

Last commit

May 15, 2026

License

MIT

Language

TypeScript

What the Smithery Hustcc MCP Mermaid MCP server does

How models use it and what it is built for.

Generate Mermaid diagrams and charts dynamically with AI assistance, supporting all Mermaid syntax, custom themes, and multiple export formats (SVG, PNG, base64, URLs). Ideal for developers building AI agents that need to visualize workflows, architecture, and data structures.

Connect to Smithery Hustcc MCP Mermaid

Hosted endpoint — paste into any MCP client.

https://server.smithery.ai/@hustcc/mcp-mermaid/mcp

Resources

Where to find authoritative docs and source for Smithery Hustcc MCP Mermaid.

Example prompts for Smithery Hustcc MCP Mermaid

Paste any of these into Agent Studio after connecting Smithery Hustcc MCP Mermaid.

  • Create a flowchart showing a user authentication workflow with login, MFA, and session management
  • Generate a sequence diagram for a microservices payment processing system with error handling
  • Draw an entity relationship diagram for a blog database with users, posts, and comments tables
  • Make a Gantt chart for a software project timeline with three phases and dependencies

Documentation from project README

View on GitHub

Excerpted from the project's README — boilerplate sections (license, changelog, contributing) omitted for clarity.

MCP Mermaid build npm Version smithery badge npm License Trust Score

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.
  • 🖼️ 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 backgroundColor and theme, enabling large AI models to output rich style configurations.

  • 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.

mcp-mermaid

🤖 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) or http://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
Continue reading on GitHub

Smithery Hustcc MCP Mermaid MCP server — FAQ

Common questions about connecting and running Smithery Hustcc MCP Mermaid.

  • What diagram types does this MCP server support?

    It supports all Mermaid diagram types including flowcharts, sequence diagrams, class diagrams, state diagrams, entity relationship diagrams, Gantt charts, pie charts, and more. The README states it "fully support[s] all features and syntax of Mermaid."

  • How do I export diagrams generated by this server?

    The server supports multiple export formats: base64, SVG, Mermaid source code, file (PNG saved to disk), and URL-based formats (svg_url, png_url) for sharing via public mermaid.ink links. Use `outputType: "file"` to automatically save diagrams for AI agents.

  • What are the setup requirements and how do I install it?

    Install via `npm install -g mcp-mermaid` or use Docker with `docker pull susuperli/mcp-mermaid:latest`. Configure it in your MCP client (Claude, VSCode, Cline) by adding the server config with `npx mcp-mermaid` command, or run it with SSE/Streamable transports on localhost:3033 or localhost:1122.

  • Can I customize the appearance of generated diagrams?

    Yes, the server supports configuration of `backgroundColor` and `theme` settings, allowing AI models to output rich style configurations. This enables large language models to generate diagrams with custom styling.

  • Does this server validate Mermaid syntax before output?

    Yes, the README mentions validation for Mermaid syntax is included, which facilitates the model's multi-round output of correct syntax and graphics. This helps ensure generated diagrams are valid and renderable.

Run Smithery Hustcc MCP Mermaid across 30+ AI models, side-by-side

Connect Smithery Hustcc MCP Mermaid to Claude, GPT, Gemini, DeepSeek and 30+ AI models in MCP Agent Studio. Compare answers side-by-side, save reusable agent presets, share runs — all in your browser, no install required.

Open Agent Studio

Related servers

More on MCP Playground