claude mcp add mermaid-mcp-server -- npx -y mermaid-mcp-server
A pasteable skeleton generated from the repository name. Check the project README for the exact package and arguments.
Star count
15 โ ยท GittyBurstein/mermaid-mcp-server ยท read from the repository page ยท (checked 2026-10-16 20:00:20)
Source
collected from the punkpeye/awesome-mcp-servers list ยท type: MCP server
Harvest history
first seen 2026-10-09 ยท last seen 2026-10-16 ยท seen 32ร ยท listed by 7 sources
Score
score 703 ยท 15 โ ยท 7 sources ยท mcp
FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP ๆๅก. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository GittyBurstein/mermaid-mcp-server๏ผfirst catalogued 2026-10-09๏ผlast seen 2026-10-16ใThere is no official certification or quality rating here โ we record sources and dates only.
Third-party quality signals
mermaid-mcp โ one MCP server to diagram any project (Local/GitHub โ Mermaid โ PN
**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: | Tool | Description | |------|-------------| | list_files | List files from a local folder or a GitHub repo (supports root + glob filtering). | | read_file | Read file contents (local or GitHub) with a configurable max length. | | render_mermaid | Render 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) Example (github) 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) Example (github) 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/ .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/ .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 .png already exists, it is overwritten. Example Requirements - Python 3.10+ (recommended) - Internet access (for Kroki, and for GitHub when using github source) --- Project structure For architecture details, see: ARCHITECTURE.md Docker (optional) Build and run with Docker (example): --- Installation & Setup 1) Clone the repo 2) Create a venv + install dependencies Windows (PowerShell): Windows (CMD): macOS/Linux: > 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 | Variable | Description | Used by | |---|---|---| | PROJECT_ROOT | Local project root that the server is allowed to access (security boundary) | local_source | | KROKI_BASE_URL | e.g. https://kroki.io | render_mermaid |