mermaid mcp server

Local 2025-08-31 23:58:03 0

A server that implements the Model Context Protocol (MCP), providing an interface for LLM applications to generate mermaid.js visualizations and diagrams.


@longjianjiang/mermaid-mcp-server Mermaid MCP Server Mermaid MCP Server ==================

smithery badge

Introduction

Welcome to the official README for the Mermaid MCP Server. This server implements the Model Context Protocol (MCP), providing an interface for LLM applications to integrate with mermaid.js visualizations.

Features

  • Secure Interface: A secure and robust interface for generating mermaid diagrams.
  • Compliant: Fully compliant with the MCP 1.0 specification.
  • Optimized: Designed with performance and scalability in mind.
  • Extensible: Easily extend with additional tools and resources.

Installing via Smithery

To install Mermaid MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @longjianjiang/mermaid-mcp-server --client claude

Installation

  1. Clone this repository.
  2. Run npm install to install dependencies.
  3. Execute npm start to start the server.

Usage

  1. Connect your LLM application to the running server.
  2. Use MCP methods such as tools/call and resources/read to interact with the server.
  3. Generate beautiful diagrams using native mermaid syntax.

Configuration

Adjust the config.json file to configure options like server port and path restrictions.

Contributing

We welcome contributions! Please read the CONTRIBUTING.md file for instructions on submitting changes and improvements.

License

This software is released under the MIT License. See LICENSE file for more details.