Narasimhaponnada/mermaid-mcp

šŸ“ Architecture & Design
0 Views
0 Installs

šŸ“‡ ā˜ļø šŸŽ 🪟 🐧 - AI-powered Mermaid diagram generation with 22+ diagram types including flowcharts, sequence diagrams, class diagrams, ER diagrams, architecture diagrams, state machines, and more. Features 50+ pre-built templates, advanced layout engines, SVG/PNG/PDF exports, and seamless integration with GitHub Copilot, Claude, and any MCP-compatible client. Install via NPM: npm install -g @narasimhaponnada/mermaid-mcp-server

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "narasimhaponnada-mermaid-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "narasimhaponnada-mermaid-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Mermaid MCP Server

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! šŸŽØšŸ“ŠāœØ

Related MCP Servers

aidc2026ai-melon/aidc-ai-mcp

šŸŽ–ļø šŸ“‡ ā˜ļø - Deterministic AI data-center design engine exposed as MCP tools (design, validate, layout): rack count, design PUE, total MVA, liquid/air cooling split, CDU planning, cost & timeline. NVIDIA Rubin-era, 22.9 kV intake, Korea. Remote Streamable HTTP at https://aidc-ai.io/api/mcp; no key for the anonymous tier.

šŸ“ Architecture & Design0 views
awdr74100/figwright

šŸ“‡ šŸ  šŸŽ 🪟 🐧 - Bidirectional Figma server over a local WebSocket relay: turn a selection into framework-aware code (reusing your components and tokens), or author frames, text, styles, variables, and whole screens back onto the canvas. 92 tools, any MCP client, no Dev Mode seat or paid tier.

šŸ“ Architecture & Design0 views
betterhyq/mermaid-grammer-inspector-mcp

šŸ“‡ šŸ  šŸŽ 🪟 🐧 - A Model Context Protocol (MCP) server for validating Mermaid diagram syntax and providing comprehensive grammar checking capabilities

šŸ“ Architecture & Design0 views
BV-Venky/excalidraw-architect-mcp

šŸ šŸ  šŸŽ 🪟 🐧 - Generate beautiful Excalidraw architecture diagrams with auto-layout, architecture-aware component styling, and stateful editing. 50+ technology mappings including databases, message queues, caches, and more. No API keys required.

šŸ“ Architecture & Design0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
ā˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.