技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
GittyBurstein/mermaid-mcp-server

GittyBurstein/mermaid-mcp-server

🐍 ☁️ - Turn local projects or GitHub repositories into Mermaid diagrams rendered via Kroki
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add mermaid-mcp-server -- npx -y mermaid-mcp-server
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
15 ★ · GittyBurstein/mermaid-mcp-server · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 15 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 GittyBurstein/mermaid-mcp-server;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

mermaid-mcp — one MCP server to diagram any project (Local/GitHub → Mermaid → PN

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

**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 |
来源
awesome · https://github.com/GittyBurstein/mermaid-mcp-server
按领域浏览
MCP 服务
Traction
15 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引