Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Narasimhaponnada/mermaid-mcp

FreeNot checked

Mermaid diagram generation (flowcharts, sequence, class, ER, architecture and state diagrams) with templates, layout engines and SVG/PNG/PDF export.

GitHubEmbed

About

Mermaid diagram generation (flowcharts, sequence, class, ER, architecture and state diagrams) with templates, layout engines and SVG/PNG/PDF export.

README

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

npm version npm downloads Node.js License MCP Mermaid

🎯 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

Option 1: Install from NPM (Recommended)

# 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

Add to your VS Code settings (Cmd+Shift+P → "Preferences: Open User Settings (JSON)"):

If installed via NPM globally:

{
  "github.copilot.mcp.servers": {
    "mermaid": {
      "command": "mermaid-mcp"
    }
  }
}

If installed from source:

{
  "github.copilot.mcp.servers": {
    "mermaid": {
      "command": "node",
      "args": ["/absolute/path/to/mermaid-mcp-server/dist/index.js"]
    }
  }
}

Use with Copilot

Open GitHub Copilot Chat and try:

Create a microservices architecture diagram for an e-commerce platform
Generate a CI/CD pipeline flowchart showing GitHub Actions workflow
Show me a sequence diagram for user authentication with OAuth

📚 Documentation

🎨 Diagram Types Supported

  • Process Diagrams: Flowcharts, Block Diagrams
  • Interactions: Sequence Diagrams, User Journeys, Timelines
  • Structure: Class Diagrams, ER Diagrams, C4 Diagrams, Architecture
  • Data Visualization: Pie Charts, XY Charts, Sankey, Radar, Quadrant, Treemap
  • Project Management: Gantt Charts, Requirement Diagrams, Kanban Boards
  • Specialized: State Diagrams, Git Flow, Mindmaps, Packet Diagrams

🔌 Integration Methods

  1. GitHub Copilot in VS Code - Daily development workflow
  2. Claude Desktop - Standalone diagram generation
  3. Cursor IDE - AI-first development
  4. Direct CLI - Automation and scripting
  5. MCP Inspector - Testing and debugging
  6. Custom Applications - Build your own integrations

💡 Use Cases

  • 📖 Documentation: Auto-generate architecture diagrams for docs
  • 🔄 Code Reviews: Include diagrams in pull requests
  • 👥 Onboarding: Visual guides for new developers
  • 📊 Technical Proposals: Explain changes with visuals
  • 🚨 Incident Response: Document incidents with timelines
  • 💼 Client Presentations: Explain technical concepts visually
  • 📚 Training Materials: Create consistent learning resources

🌟 Example Output

The server generates production-ready SVG files like these (included in examples/architectures/):

  • microservices-architecture.svg (27KB) - Microservices with API Gateway
  • cloud-infrastructure.svg (31KB) - Cloud infrastructure components
  • cicd-pipeline.svg (28KB) - Complete CI/CD workflow
  • data-pipeline.svg (24KB) - ETL data processing pipeline
  • serverless-architecture.svg (31KB) - Event-driven serverless

All SVGs are XML-validated and render perfectly in browsers, documentation, and presentations.

🛠️ Technology Stack

  • Node.js - Server runtime
  • TypeScript - Type-safe development
  • Puppeteer - Browser-based rendering
  • Mermaid v10 - Diagramming library (via CDN)
  • MCP SDK - Model Context Protocol implementation

📈 Project Status

  • ✅ Production-Ready: All core features implemented and tested
  • ✅ Validated: All SVG outputs are XML-compliant
  • ✅ Documented: Comprehensive guides and examples
  • ✅ Clean Codebase: 43 essential files, no cruft
  • ✅ Battle-Tested: Fixed HTML-to-XML tag issues, subgraph syntax, etc.

🤝 Contributing

Contributions are welcome! Please feel free to:

  • Report bugs and issues
  • Suggest new diagram types or features
  • Submit pull requests
  • Share usage examples and best practices

📄 License

MIT License - see mermaid-mcp-server/LICENSE for details

🙏 Acknowledgments

  • Mermaid.js - Amazing diagramming library
  • Model Context Protocol - Enabling AI tool integration
  • GitHub Copilot - AI-powered development
  • Puppeteer - Reliable browser automation

📞 Support

  • 📖 Documentation: See Setup.md and UserGuide.md
  • 🐛 Issues: Open an issue on GitHub
  • 💬 Discussions: Start a discussion for questions
  • 📧 Contact: Via GitHub profile

🚀 Getting Started

  1. Read the setup guide: Setup.md
  2. Install and configure: Follow the quick start above
  3. Try it out: Generate your first diagram with Copilot
  4. Explore use cases: Check UserGuide.md
  5. Integrate into your project: Use one of 6 integration methods

Last Updated: October 30, 2025
Author: Narasimha Rao Ponnada
Version: 1.0.0

Start creating amazing diagrams with AI! 🎨📊✨

from github.com/Narasimhaponnada/mermaid-mcp

Installing Narasimhaponnada/mermaid-mcp

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/Narasimhaponnada/mermaid-mcp

FAQ

Is Narasimhaponnada/mermaid-mcp MCP free?

Yes, Narasimhaponnada/mermaid-mcp MCP is free — one-click install via Unyly at no cost.

Does Narasimhaponnada/mermaid-mcp need an API key?

No, Narasimhaponnada/mermaid-mcp runs without API keys or environment variables.

Is Narasimhaponnada/mermaid-mcp hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Narasimhaponnada/mermaid-mcp in Claude Desktop, Claude Code or Cursor?

Open Narasimhaponnada/mermaid-mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

LibreOffice Tools

Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a

passerbyflutterby passerbyflutter

Figma

Extract design specs and assets

Figmaby Figma

dannote/figma-use

Figma control: create shapes, text and components, and set styles, auto-layout, variables and exports.

dannoteby dannote

Logo.dev

Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content

NOVA-3951by NOVA-3951

Design Inspiration Server

Searches top design platforms like Dribbble and Behance to provide UI inspiration, color palettes, and layout patterns via the Serper API. It allows users to re

YonasValentinby YonasValentin

PIX4Dmatic

Enables GUI automation for controlling PIX4Dmatic on Windows through MCP. Supports launching, focusing, capturing screenshots, sending hotkeys, clicking UI elem

jangjo123by jangjo123

mcp-dockmaster

An Open-Sourced UI to install and manage MCP servers for Windows, Linux and macOS.

by Community

ariekogan/ateam-mcp

Build, validate and deploy multi-agent AI solutions on the ADAS platform: design skills with tools and manage the solution lifecycle.

ariekoganby ariekogan

thinkchainai/mcpbundles

Create custom tool bundles, connect providers with OAuth or API keys, and use one MCP server across many integrations, with a UI for bundles and credentials.

thinkchainaiby thinkchainai

jau123/MeiGen-AI-Design-MCP

Image generation and editing with a curated prompt library, prompt enhancement and routing across local ComfyUI, MeiGen Cloud and OpenAI-compatible APIs.

jau123by jau123

Compare Narasimhaponnada/mermaid-mcp with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All design MCPs