NM

narasimhaponnada/mermaid-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

53 stars 10 forks 质量 54 趋势 0NOASSERTION

narasimhaponnada/mermaid-mcp 是从 https://github.com/narasimhaponnada/mermaid-mcp. 导入的 MCP 服务器候选人。

概览

narasimhaponnada/mermaid-mcp 是从 https://github.com/narasimhaponnada/mermaid-mcp. 导入的 MCP 服务器候选人。

概述(AI 翻译)

利用模型上下文协议(MCP)生成人工智能驱动的美人鱼图

🎯 概述

Mermaid MCP 服务器使 GitHub Copilot、Claude 等 AI 助手及自定义 LLM 应用能够用自然语言生成专业架构图、流程图、时序图等。它提供了模型上下文协议接口,方便与 AI 编码助手无缝集成。

✨ 主要特色

  • 🤖 AI驱动生成:使用GitHub Copilot或Claude使用自然语言创建图表
  • 🎨 生产就绪SVG:符合XML标准、经过验证的SVG文件,随时可用
  • 📦 50+ 预构建模板:架构模式、工作流和数据模型
  • 🔧 多重集成:VS Code、Claude Desktop、光标IDE、CLI和自定义应用
  • 🚀 22+图型类型:流程图、序列、ERD、状态机、甘特图等
  • ⚡ 快速且可靠:基于浏览器的Puppeteer渲染以实现稳定输出

📋 包含内容

🚀 快速启动

先决条件

  • Node.js 18岁及以上
  • NPM或纱线
  • GitHub Copilot(推荐)或 Claude Desktop

安装

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Mermaid MCP Server

AI-powered Mermaid diagram generation using Model Context Protocol (MCP)

🎯 Overview

The Mermaid MCP Server enables AI assistants like GitHub Copilot, Claude, and custom LLM applications to generate professional architecture diagrams, flowcharts, sequence diagrams, and more using natural language. It provides a Model Context Protocol interface for seamless integration with AI coding assistants.

✨ Key Features

  • 🤖 AI-Powered Generation: Create diagrams using natural language with GitHub Copilot or Claude
  • 🎨 Production-Ready SVGs: XML-compliant, validated SVG files ready for any use
  • 📦 50+ Pre-built Templates: Architecture patterns, workflows, and data models
  • 🔧 Multiple Integrations: VS Code, Claude Desktop, Cursor IDE, CLI, and custom apps
  • 🚀 22+ Diagram Types: Flowcharts, sequences, ERDs, state machines, Gantt charts, and more
  • ⚡ Fast & Reliable: Browser-based rendering with Puppeteer for consistent output

📋 What’s Included

Mermaid/
├── mermaid-mcp-server/          # Main MCP server
│   ├── src/                     # TypeScript source code
│   ├── dist/                    # Compiled JavaScript
│   ├── examples/architectures/  # 5 production-ready SVG samples
│   ├── package.json             # Dependencies
│   └── README.md                # Server documentation
├── Setup.md                     # Complete setup guide
├── UserGuide.md                 # Comprehensive usage guide
└── *.md                         # Analysis and documentation

🚀 Quick Start

Prerequisites

  • Node.js 18 or higher
  • npm or yarn
  • GitHub Copilot (recommended) or Claude Desktop

Installation

# Global installation - easiest way to get started
npm install -g @narasimhaponnada/mermaid-mcp-server

# Test the installation
mermaid-mcp --version

# The server is now ready to use with Copilot/Claude!

Option 2: Install from Source

# Clone the repository
git clone https://github.com/Narasimhaponnada/mermaid-mcp.git
cd mermaid-mcp/mermaid-mcp-server

# Install dependencies
npm install

# Build the server
npm run build

# Generate sample diagrams
node generate-svg-samples.js

Configure with GitHub Copilot

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →