mcp-mermaid
❤️ Generate mermaid diagram and chart with AI MCP dynamically.
claude mcp add --transport stdio hustcc-mcp-mermaid npx -y mcp-mermaid
How to use
MCP Mermaid is an MCP server that generates Mermaid diagrams and charts using AI assistance. It leverages the Mermaid syntax and output options, and can export results in formats like mermaid text, SVG, PNG, or base64 representations, enabling easy integration with AI-assisted workflows. The server is accessible via standard MCP transports (SSE or Streamable) or through local development builds, and can be invoked by an MCP-enabled client or agent to request diagram generation or diagram-based insights. To get started, configure the MCP server in your environment and point your MCP client to the mcp-mermaid server entry, then send requests that specify Mermaid diagram data and optional styling preferences. The server supports full Mermaid syntax and can adapt outputs based on the request details (diagram type, theme, background color, and export format).
How to install
Prerequisites:
- Node.js and npm installed on your system
- Internet access to fetch the mcp-mermaid package from npm
Option A: Global installation (recommended for quick testing)
- Install globally: npm install -g mcp-mermaid
- Run the server via MCP transport (SSE by default) or use your MCP client to connect to it.
Option B: Local development and build
- Clone the repository or download the package sources.
- Install dependencies: npm install
- Build the project (if applicable): npm run build
- Run the server locally or via npm scripts (see package.json for available scripts).
Using either option, ensure your MCP client is configured to connect to the server with the appropriate transport (SSE or Streamable) and endpoint as described in the documentation.
Additional notes
Tips and common considerations:
- The server exposes multiple transport options; choose SSE for simple streaming or Streamable for more flexible HTTP interactions.
- When using local development, you can start with npm run start:sse or npm run start:streamable to verify the server is up before integrating into your MCP workflow.
- If you encounter port conflicts, adjust the default ports via the CLI options described in the README (transport, port, endpoint).
- Ensure the environment where the server runs has network access to fetch dependencies and any AI model resources required for Mermaid generation.
- The npm package name is mcp-mermaid; the npm_package field below reflects this value.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
mermaid-live
MCP server from iishyfishyy/mermaid-live-mcp