Mermaid

Design and media

Generate mermaid diagram and chart with AI MCP dynamically.

Your AI app calls the Mermaid MCP server, which does the design and media work and sends the result back to the chat.

About Mermaid

Mermaid is a community MCP server from hustcc, filed in our directory under design and media. Generate mermaid diagram and chart with AI MCP dynamically.

At a glance

Publisher
hustcc (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
652

How to set up Mermaid

  1. Follow the install steps in the Mermaid README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Mermaid README for keys or settings; the registry lists none that Mermaid requires.
  3. Add Mermaid to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mermaid tools to confirm the connection.
  5. Run one read-only task with Mermaid first, and keep your app asking before each tool call until the results look right.

Mermaid compared with similar servers

  • Touchdesigner by 8beeeaaat has fewer GitHub stars than Mermaid (646 against 652); both are community servers, and both run locally.
  • Kept by keptinventory has more GitHub stars than Mermaid (668 against 652); both are community servers, and both run locally.
  • Watch Skill by oxbshw has fewer GitHub stars than Mermaid (636 against 652); both are community servers, and both run locally.

Before you connect Mermaid

  • Give Mermaid its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mermaid tool call until you trust what it does with them.
  • Treat text that Mermaid fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mermaid on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mermaid

How marketing and sales teams put Mermaid to work, by company size. Pick the size closest to yours and start Mermaid on one use case.

Small business

  • A small business can use Mermaid to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask Mermaid to pull brand assets and make quick ad and social variations that still look on brand.
  • Mermaid runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect Mermaid so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use Mermaid to hand off designs to web and ads with specs attached, cutting review rounds.
  • Start Mermaid on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Mermaid with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use Mermaid to localize and version assets for many markets with review built in.
  • Mermaid is a community server, so have security review the code and pin a version before Mermaid touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mermaid README

From hustcc/mcp-mermaid on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCP Mermaid

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.

Questions about Mermaid

What is the Mermaid MCP server?

Generate mermaid diagram and chart with AI MCP dynamically. Mermaid is maintained by hustcc on GitHub at hustcc/mcp-mermaid, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mermaid MCP server?

Mermaid doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (hustcc/mcp-mermaid). Like most servers, Mermaid ends with a command or URL you paste into your AI app's MCP config.

Does Mermaid need an API key?

The registry lists no required keys for Mermaid. Check the Mermaid README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mermaid an official MCP server?

No. Mermaid is a community server maintained by hustcc. Community servers can be excellent; read the code and the open issues before you give Mermaid access to company data.

What license is Mermaid under?

Mermaid is released under the MIT license, according to its GitHub repository. The license covers the code of Mermaid; the service it connects to has its own terms.