Mermaid MCP Server
AI-powered natural language to Mermaid diagram server via Model Context Protocol
Key Features
Use Cases
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
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
- Setup.md - Complete installation and configuration guide (807 lines)
- UserGuide.md - Comprehensive usage guide with examples (2,349 lines)
- mermaid-mcp-server/README.md - Server-specific documentation
- mermaid-mcp-server/PROJECT-SUMMARY.md - Technical deep-dive
π¨ 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
- GitHub Copilot in VS Code - Daily development workflow
- Claude Desktop - Standalone diagram generation
- Cursor IDE - AI-first development
- Direct CLI - Automation and scripting
- MCP Inspector - Testing and debugging
- 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 Gatewaycloud-infrastructure.svg(31KB) - Cloud infrastructure componentscicd-pipeline.svg(28KB) - Complete CI/CD workflowdata-pipeline.svg(24KB) - ETL data processing pipelineserverless-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
- Read the setup guide: Setup.md
- Install and configure: Follow the quick start above
- Try it out: Generate your first diagram with Copilot
- Explore use cases: Check UserGuide.md
- 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! π¨πβ¨
Star History
Repository Owner
User
Repository Details
Programming Languages
Tags
Topics
Join Our Newsletter
Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.
Related MCPs
Discover similar Model Context Protocol servers
MCP Mermaid
AI-powered dynamic generation of Mermaid diagrams via the Model Context Protocol.
MCP Mermaid enables dynamic generation of Mermaid diagrams and charts using AI via the Model Context Protocol (MCP). It supports all features and syntax of Mermaid, and can export diagrams in various formats including SVG, base64, and files. The server can be run locally or globally using different transport protocols such as stdio, SSE, or streamable, making it compatible with tools like Claude, VSCode, and Smithery. It provides customization for background color and theme, and validates output to ensure correct syntax and graphics.
- β 283
- MCP
- hustcc/mcp-mermaid
Mindpilot MCP
Visualize and understand code structures with on-demand diagrams for AI coding assistants.
Mindpilot MCP provides AI coding agents with the capability to visualize, analyze, and understand complex codebases through interactive diagrams. It operates as a Model Context Protocol (MCP) server, enabling seamless integration with multiple development environments such as VS Code, Cursor, Windsurf, Zed, and Claude Code. Mindpilot ensures local processing for privacy, supports multi-client connections, and offers robust configuration options for server operation and data management. Users can export diagrams and adjust analytics settings for improved user control.
- β 61
- MCP
- abrinsmead/mindpilot-mcp
Taskade MCP
Tools and server for Model Context Protocol workflows and agent integration
Taskade MCP provides an official server and tools to implement and interact with the Model Context Protocol (MCP), enabling seamless connectivity between Taskadeβs API and MCP-compatible clients such as Claude or Cursor. It includes utilities for generating MCP tools from any OpenAPI schema and supports the deployment of autonomous agents, workflow automation, and real-time collaboration. The platform promotes extensibility by supporting integration via API, OpenAPI, and MCP, making it easier to build and connect agentic systems.
- β 90
- MCP
- taskade/mcp
Kanboard MCP Server
MCP server for seamless AI integration with Kanboard project management.
Kanboard MCP Server is a Go-based server implementing the Model Context Protocol (MCP) for integrating AI assistants with the Kanboard project management system. It enables users to manage projects, tasks, users, and workflows in Kanboard directly via natural language commands through compatible AI tools. With built-in support for secure authentication and high performance, it facilitates streamlined project operations between Kanboard and AI-powered clients like Cursor or Claude Desktop. The server is configurable and designed for compatibility with MCP standards.
- β 15
- MCP
- bivex/kanboard-mcp
Mindmap MCP Server
Convert Markdown content into interactive mindmaps via an MCP-compliant server.
Mindmap MCP Server provides a Model Context Protocol (MCP) compatible service that transforms Markdown input into interactive mindmap visualizations. It supports command-line, Python, and Docker installation methods for flexibility across platforms. Designed to integrate with MCP clients like Claude Desktop, it ensures seamless Markdown-to-mindmap conversion using markmap under the hood. The server is intended for easy plug-and-play use in model-powered workflows that require structured, visual context formatting.
- β 205
- MCP
- YuChenSSR/mindmap-mcp-server
Replicate Flux MCP
MCP-compatible server for high-quality image and SVG generation via Replicate models.
Replicate Flux MCP is an advanced Model Context Protocol (MCP) server designed to enable AI assistants to generate high-quality raster images and vector graphics. It leverages Replicate's Flux Schnell model for image synthesis and Recraft V3 SVG model for vector output, supporting seamless integration with AI platforms like Cursor, Claude Desktop, Smithery, and Glama.ai. Users can generate images and SVGs by simply providing natural language prompts, with support for parameter customization, batch processing, and variant creation.
- β 66
- MCP
- awkoy/replicate-flux-mcp
Didn't find tool you were looking for?