1. Conduid
  2. Developer Tools
  3. hustcc/mcp-mermaid
MCP server · Developer Tools

hustcc/mcp-mermaid

❤️ Generate mermaid diagram and chart with AI MCP dynamically.

Unclaimed MIT devtools
82Excellent

Scored 11 days ago · breakdown

About hustcc/mcp-mermaid

hustcc/mcp-mermaid is an MCP server published by hustcc in the Developer Tools category: ❤️ Generate mermaid diagram and chart with AI MCP dynamically.

The repository has 645 stars and 60 forks, with the last commit 5 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/hustcc/mcp-mermaid

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about hustcc/mcp-mermaid

Powered by Claude · Grounded in docs

I know everything about hustcc/mcp-mermaid. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

0.4.10.4.1 · 12 Feb 2026What's Changed removed started log to avoid json-rpc error by @peterwilli in https://github.com/hustcc/mcp-mermaid/pull/27 New Contributors @peterwilli made their first contribution in https://github.com/hustcc/mcp-mermaid/pull/27 Full…
0.4.00.4.0 · 18 Nov 2025What's Changed fix: #22 Dockerfile fixed. by @aakashH242 in https://github.com/hustcc/mcp-mermaid/pull/23 feat: Added url output type by @aakashH242 in https://github.com/hustcc/mcp-mermaid/pull/26 New Contributors @aakashH242 made their…
0.3.00.3.0 · 14 Oct 2025What's Changed feat: add file output support for AI agents by @Susuperli in https://github.com/hustcc/mcp-mermaid/pull/17 Full Changelog: https://github.com/hustcc/mcp-mermaid/compare/0.2.1...0.3.0
0.2.10.2.1 · 26 Sep 2025What's Changed feat(cli): add --host option and bind host for SSE/streamable by @withsmilo in https://github.com/hustcc/mcp-mermaid/pull/13 New Contributors @withsmilo made their first contribution in…
0.2.00.2.0 · 13 Sep 2025What's Changed feat: migrate HTTP servers to use Express.js by @Susuperli in https://github.com/hustcc/mcp-mermaid/pull/12 New Contributors @Susuperli made their first contribution in https://github.com/hustcc/mcp-mermaid/pull/12 Full…

README

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.

🤖 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

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

README fetched from the repository 4 days ago. The original is authoritative.

Questions

About hustcc/mcp-mermaid

How do I install hustcc/mcp-mermaid?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is hustcc/mcp-mermaid safe to use with an AI agent?

Its trust score is 82 out of 100 (excellent). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is hustcc/mcp-mermaid still maintained?

Yes — the last commit was 5 months ago. The repository has 645 stars and 60 forks and 10 open issues.