Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ“ Architecture & Design
  3. Mermaid MCP Server
Mermaid MCP Server logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 12:49:47 PM

Mermaid MCP Server

User RatingsBe the first to rate and review this MCP server!
View Repository15 GitHub StarsTotal stargazers on GitHub for the source repository (15 stars).Visit Website
mermaiddiagramgithubvisualizationkroki

MCP server that diagrams local or GitHub projects as Mermaid PNGs rendered via Kroki.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet β€” we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for GittyBurstein/mermaid-mcp-server, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing AlternativesπŸ“ More in Architecture & Design

Overview

This MCP server converts local project folders or GitHub repositories into Mermaid diagrams and renders them as PNG images using Kroki. It provides tools to list files, read file contents, and render Mermaid text, enabling agents to visualize project structure and flow efficiently. Use it when you need to programmatically explore and diagram codebases for better understanding or documentation.

Use cases

β€’List files in local or GitHub repositories with glob filtering
β€’Read file contents from local projects or GitHub repos with size limits
β€’Generate Mermaid diagrams from project code or documentation
β€’Render Mermaid diagrams to PNG images via Kroki
β€’Save and retrieve rendered diagrams for project visualization

Key features

β€’Supports local filesystem and GitHub repository sources
β€’Agent-friendly tool pipeline: list_files, read_file, render_mermaid
β€’Configurable file size limits and output directories
β€’Renders Mermaid diagrams to PNG using Kroki service
β€’Saves rendered diagrams to disk with safe filename handling
β€’Restricts local file reads to a configured project root

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Mermaid MCP Server.

Extracted Tool Capabilities
Supports local filesystem and GitHub repository sources
Agent-friendly tool pipeline: list_files, read_file, render_mermaid
Configurable file size limits and output directories
Renders Mermaid diagrams to PNG using Kroki service
Saves rendered diagrams to disk with safe filename handling
Restricts local file reads to a configured project root

Documentation Overview

mermaid-mcp β€” one MCP server to diagram any project (Local/GitHub β†’ Mermaid β†’ PNG)

Mermaid MCP Server is an MCP server that helps agents turn large codebases (local folders or GitHub repositories) into Mermaid diagrams and render them as PNG images via Kroki, enabling fast, reliable understanding of a project’s structure and flow.

Why this server

When working with a new codebase, it’s easy to lose time jumping between folders and files. This server provides a clean, tool-based workflow for agents to discover, read, and visualize a project β€” without guessing paths or inventing structure.

Key features

  • Local + GitHub sources: analyze either a local project folder or a remote repository.
  • Agent-friendly pipeline: list_files β†’ read_file β†’ generate Mermaid β†’ render_mermaid.
  • Safe local access boundary: local reads are restricted to PROJECT_ROOT.
  • Configurable limits: control max file size (MAX_FILE_CHARS) and output directory (DIAGRAM_OUT_DIR).
  • Portable output: rendered diagrams are returned as image content and also saved as PNG files.

It exposes three tools:

ToolDescription
list_filesList files from a local folder or a GitHub repo (supports root + glob filtering).
read_fileRead file contents (local or GitHub) with a configurable max length.
render_mermaidRender Mermaid text via Kroki and return ImageContent (also saves to disk).

1) list_files

Returns a list of files for a given source (local / github) with root + glob filtering.

Parameters

  • source: "local" or "github"
  • root: default "."
  • glob: default "**/*"
  • repo_url: required when source="github"
  • ref: default "main"
  • recursive: default true

Example (local)

config.json
{
  "source": "local",
  "root": ".",
  "glob": "**/*.py",
  "recursive": true
}

Example (github)

config.json
{
  "source": "github",
  "repo_url": "https://github.com/<owner>/<repo>",
  "ref": "main",
  "root": "src",
  "glob": "**/*.py",
  "recursive": true
}

2) read_file

Reads file contents (local or GitHub) with a length limit.

Parameters

  • source: "local" or "github"
  • path: required
  • repo_url: required when source="github"
  • ref: default "main"
  • max_chars: default MAX_FILE_CHARS

Example (local)

config.json
{
  "source": "local",
  "path": "src/server/server.py",
  "max_chars": 200000
}

Example (github)

config.json
{
  "source": "github",
  "repo_url": "https://github.com/<owner>/<repo>",
  "ref": "main",
  "path": "README.md",
  "max_chars": 200000
}

3) render_mermaid

Accepts Mermaid text, renders it to a PNG via Kroki, returns ImageContent, and saves the file to disk.

Parameters

  • mermaid: required (string) β€” the Mermaid diagram source text
  • title: optional (string) β€” used to derive the output filename (will be sanitized)

Returns

  • ImageContent containing the rendered PNG bytes
  • Also writes the PNG file to PROJECT_ROOT/DIAGRAM_OUT_DIR/<filename>.png

Behavior

  • If mermaid is empty β†’ error
  • File is saved under DIAGRAM_OUT_DIR (inside PROJECT_ROOT)
  • Output path: the image is saved to PROJECT_ROOT/DIAGRAM_OUT_DIR/<filename>.png (default output dir: ./diagrams/).
  • Filename: derived from title (sanitized to be filesystem-safe). If title is missing, a default name is used.
  • Name collisions: if <filename>.png already exists, it is overwritten.

Example

config.json
{
  "mermaid": "flowchart LR\nA[Start] --> B[Build]\nB --> C[Run]\n",
  "title": "my_flow"
}

Requirements

  • Python 3.10+ (recommended)
  • Internet access (for Kroki, and for GitHub when using github source)

Project structure

text
.
β”œβ”€β”€ README.md
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ .env.example
β”œβ”€β”€ .gitignore
└── src/
    β”œβ”€β”€ config.py                  # Env/config defaults
    β”œβ”€β”€ server/                    # MCP server entrypoint
    β”‚   └── server.py
    β”œβ”€β”€ tools/                     # MCP tools (list/read/render)
    β”‚   β”œβ”€β”€ list_files.py
    β”‚   β”œβ”€β”€ read_file.py
    β”‚   └── render_mermaid.py
    β”œβ”€β”€ sources/                   # File sources behind one interface (Local / GitHub)
    β”‚   β”œβ”€β”€ local_source.py
    β”‚   β”œβ”€β”€ github_source.py
    β”‚   └── source_factory.py
    β”œβ”€β”€ core/                      # Contracts + primitives (interfaces, errors, cache, pacing, rate limiting)
    β”‚   β”œβ”€β”€ interfaces.py          # Source contract that shapes all implementations
    β”‚   β”œβ”€β”€ models.py
    β”‚   β”œβ”€β”€ errors.py
    β”‚   β”œβ”€β”€ paths.py               # Shared path normalization + glob semantics (incl. **)
    β”‚   β”œβ”€β”€ cache.py
    β”‚   β”œβ”€β”€ pacing.py
    β”‚   └── rate_limiter.py
    β”œβ”€β”€ clients/                   # External API clients (kept thin; shared policies live in core)
    β”‚   β”œβ”€β”€ kroki_client.py
    β”‚   └── github/
    β”‚       β”œβ”€β”€ client.py          # HTTP + policy (cache/rate/pacing)
    β”‚       β”œβ”€β”€ inputs.py          # normalize/validate inputs
    β”‚       └── refs.py            # resolve refs (+ fallback)
    β”œβ”€β”€ resources/                 # Mermaid styles and small assets
    └── prompts/                   # Server-side canonical prompts

For architecture details, see: ARCHITECTURE.md

Docker (optional)

Build and run with Docker (example):

bash
# build image
docker build -t mermaid-mcp:latest .

# run container (example, mount project root and set env vars)
docker run --rm -it \
  -v "$PWD":/app \
  -e PROJECT_ROOT=/app \
  -e KROKI_BASE_URL=https://kroki.io \
  -e KROKI_TIMEOUT=20 \
  -e DIAGRAM_OUT_DIR=diagrams \
  mermaid-mcp:latest

Installation & Setup

1) Clone the repo

bash
git clone <REPO_URL>
cd <REPO_DIR>

2) Create a venv + install dependencies

Windows (PowerShell):
powershell
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install .[dev]
Windows (CMD):
cmd
python -m venv .venv
.venv\Scripts\activate.bat
pip install .[dev]
macOS/Linux:
bash
python -m venv .venv
source .venv/bin/activate
pip install .[dev]

This installs runtime dependencies and development extras (tests).

3) Configuration (Environment Variables)

You can set env vars in your shell OR in the MCP client config that launches the server.

Required / Recommended

VariableDescriptionUsed by
PROJECT_ROOTLocal project root that the server is allowed to access (security boundary)local_source
KROKI_BASE_URLe.g. https://kroki.iorender_mermaid
KROKI_TIMEOUTKroki request timeoutrender_mermaid
DIAGRAM_OUT_DIRWhere to save PNGs (must be inside PROJECT_ROOT)render_mermaid
MAX_FILE_CHARSMax characters to read from a file (prevents huge reads)read_file

Optional

VariableDescriptionUsed by
HTTP_VERIFYVerify SSL certificates (as needed)server
GITHUB_TOKENRecommended to avoid GitHub rate limits; if set, adds an Authorization headersrc/clients/github/client.py

Example (Windows)

cmd
set PROJECT_ROOT=.
set KROKI_BASE_URL=https://kroki.io
set KROKI_TIMEOUT=20
set DIAGRAM_OUT_DIR=diagrams
set MAX_FILE_CHARS=200000

Example (macOS / Linux)

server.ts
export PROJECT_ROOT=.
export KROKI_BASE_URL=https://kroki.io
export KROKI_TIMEOUT=20
export DIAGRAM_OUT_DIR=diagrams
export MAX_FILE_CHARS=200000

4) Run the server (stdio)

bash
python src/server/server.py

Server name: mermaid-mcp

Connect an MCP client (example: Claude Desktop)

Any MCP client that can launch a local stdio server can use this project. Below is an example configuration for Claude Desktop.

1) Locate Claude Desktop config

Claude Desktop stores MCP server definitions in a JSON config file.

Common locations:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

If the file doesn’t exist yet, create it.


2) Add this server to claude_desktop_config.json

Example (Windows):

config.json
{
  "mcpServers": {
    "mermaid-mcp": {
      "command": "C:\\Users\\<YOU>\\path\\to\\repo\\.venv\\Scripts\\python.exe",
      "args": [
        "C:\\Users\\<YOU>\\path\\to\\repo\\src\\server\\server.py"
      ],
      "env": {
        "PROJECT_ROOT": "C:\\Users\\<YOU>\\path\\to\\repo",
        "KROKI_BASE_URL": "https://kroki.io",
        "KROKI_TIMEOUT": "20",
        "DIAGRAM_OUT_DIR": "diagrams",
        "MAX_FILE_CHARS": "200000"
      }
    }
  }
}

3) Restart Claude Desktop

After saving the config file, fully close Claude Desktop and reopen it so the server is loaded.


4) Verify tools are available

Open Claude Desktop and check that the server tools appear (e.g. list_files, read_file, render_mermaid).


Using the canonical prompt

This project includes a canonical system prompt used to generate Mermaid diagrams in a consistent, tool-driven way. The prompt is registered on the MCP server under the name generate_mermaid_canonical and is defined in src/prompts/mermaid_prompt.py.

Two common ways to use it:

  • Client-supported prompts (recommended): If your MCP client supports server-side prompts, select the server mermaid-mcp, pick the prompt named generate_mermaid_canonical from the prompt list, and run it as the agent's system/instruction before invoking the tools. Using the server-registered prompt ensures agents always get the latest prompt text.

  • Copy & paste: If your client does not support server-side prompts, open src/prompts/mermaid_prompt.py, copy the prompt text, and paste it into the agent's system message or save it locally as a preset. Keep in mind you will need to update your local copy when the repository prompt changes.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Architecture & Design View all alternatives
  • Diagramzu MCP logoDiagramzu MCP

    Let your AI author Mermaid diagrams (flowchart, sequence, ER, mindmap) in a shared workspace, then read, comment on, embed, and present them at a clean URL β€” instead of pasting back hundreds of lines of prose. Hosted endpoint https://mcp.diagramzu.ai/mcp or local npx -y @diagramzu/mcp. 14 tools incl. diagram CRUD, version history, comments, presentation decks, and analyzediagram lints.

    πŸ“ Architecture & Design2 views
    Compare vs Diagramzu MCP β†’
  • Figma Context MCP logoFigma Context MCP

    Provide coding agents direct access to Figma data to help them one-shot design implementation.

    πŸ“ Architecture & Design3 views
    Compare vs Figma Context MCP β†’
  • Network Sketcher logoNetwork Sketcher

    Local-first MCP server for AI-driven network design. Creates Cisco-style network master files, L1/L2/L3 topology diagrams, combined HTML viewers, device tables, and AI Context files.

    πŸ“ Architecture & Design2 views
    Compare vs Network Sketcher β†’
  • Figwright logoFigwright

    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 & Design5 views
    Compare vs Figwright β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
15
Stargazers on the source repository.
Last commit
8mo ago
Most recent push to the default branch.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Mermaid MCP Server

It supports both local project folders and remote GitHub repositories.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMermaid MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gittyburstein-mermaid-mcp-server?style=directory)](https://allmcps.com/mcp/gittyburstein-mermaid-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/gittyburstein-mermaid-mcp-server"><img src="https://allmcps.com/api/badge/gittyburstein-mermaid-mcp-server?style=directory" alt="Mermaid MCP Server on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ“Architecture & Design
PricingFree
More technical detailsExpand β–Ύ
AuthNo auth required
Last updatedAug 9, 2026
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars15
GitHub Star CountTotal stargazers on GitHub representing community popularity (15 stars).
Last commit8mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jan 12, 2026
33Quality signal: Emerging Β· 33/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools13/30
Adoption & activity2/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

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

Explore more

More in πŸ“ Architecture & Design β†’Alternatives to Mermaid MCP Server β†’Install in Claude DesktopInstall in CursorInstall in VS Code