Mermaid Server

v0.1.3Developer Toolsstable

Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…

mcpmcp-servermermaidmermaidjsdata-visualization
Share:
560
Stars
0
Downloads
0
Weekly
0/5

What is Mermaid Server?

Mermaid Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to generate dynamic mermaid diagrams and charts with ai assistance. customize styles and export diagr…

Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Generate dynamic Mermaid diagrams and charts with AI assista

Use Cases

Generate and customize Mermaid diagrams with AI assistance.
Export diagrams in multiple formats for documentation and presentations.
hustcc

Maintainer

LicenseMIT License
Languagetypescript
Versionv0.1.3
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y mcp-mermaid

Manual Installation

npx -y mcp-mermaid

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Mermaid Server

mcp-mermaid (published as the mcp-mermaid npm package) is an MCP server that dynamically generates Mermaid diagrams and charts with AI assistance, supporting all Mermaid diagram types with customizable themes and background colors. It can export diagrams in multiple formats including base64, SVG, PNG files, and shareable URLs, making it suitable for embedding in documentation, presentations, and wikis. Teams use it to convert natural language descriptions of processes, architectures, and data flows into accurate visual diagrams without manually writing Mermaid syntax.

Prerequisites

  • Node.js 16+ and npx available
  • An MCP-compatible client such as Claude Desktop, Cursor, or Cline
  • Optional: Docker for containerized deployment
1

Run with npx (recommended, no install needed)

The fastest way to start is via npx which fetches the latest mcp-mermaid package automatically. This is compatible with all standard MCP stdio clients.

npx -y mcp-mermaid
2

Install globally for offline or repeated use

For environments without reliable internet access during server startup, install the package globally so it is available immediately.

npm install -g mcp-mermaid
3

Select a transport mode

Choose the transport that matches your client. stdio is default and works with Claude Desktop. SSE and streamable modes allow web-based connections.

mcp-mermaid -t stdio        # Claude Desktop, Cline (default)
mcp-mermaid -t sse          # SSE transport on port 3033
mcp-mermaid -t streamable   # Streamable HTTP on port 1122
4

Run with Docker

Pull and run the official Docker image for a self-contained deployment with SSE transport.

docker pull susuperli/mcp-mermaid:latest
docker run -p 3033:3033 susuperli/mcp-mermaid:latest --transport sse
5

Add to your MCP client configuration

Edit your claude_desktop_config.json to register mcp-mermaid as an MCP server. The diagram generation tools will then be available in your AI assistant.

Mermaid Server Examples

Client configuration

Add this to your claude_desktop_config.json. The server uses the mcp-mermaid npm package via npx and requires no environment variables or API keys.

{
  "mcpServers": {
    "mcp-mermaid": {
      "command": "npx",
      "args": ["-y", "mcp-mermaid"]
    }
  }
}

Prompts to try

After connecting, use these prompts to generate diagrams in different formats with custom styles.

- "Create a sequence diagram for a microservices checkout flow and export it as SVG."
- "Generate a flowchart of the CI/CD pipeline with a dark theme and transparent background."
- "Draw an entity-relationship diagram for a blog database and give me the PNG URL."
- "Make a state diagram for an order lifecycle from placed to delivered."
- "Create a pie chart showing browser market share and export as base64."

Troubleshooting Mermaid Server

Diagram syntax is rejected or produces a blank image

mcp-mermaid validates Mermaid syntax before rendering. Ask the AI to show the raw Mermaid source first so you can inspect it. Ensure node labels do not contain unescaped special characters like parentheses inside flowchart definitions.

Server fails to start on Windows

On Windows, the command must use the cmd wrapper: set command to 'cmd' and args to ['/c', 'npx', '-y', 'mcp-mermaid'] in your MCP client config. Direct npx invocation is not supported on Windows without the cmd shim.

File export (PNG) creates no file in the expected location

The PNG export writes to the current working directory of the MCP server process, not the AI client directory. Specify an absolute output path in your request, or use the png_url export format to get a shareable link instead.

Frequently Asked Questions about Mermaid Server

What is Mermaid Server?

Mermaid Server is a Model Context Protocol (MCP) server that generate dynamic mermaid diagrams and charts with ai assistance. customize styles and export diagr… It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Mermaid Server?

Install via npm with the command: npx -y mcp-mermaid. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Mermaid Server?

Mermaid Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Mermaid Server free to use?

Yes, Mermaid Server is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-server-mermaid": { "command": "npx", "args": ["-y", "mcp-mermaid"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Mermaid Server?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides