
Mermaid Mcp App
io.github.finfin由 GitHub 账号 finfin 发布v0.3.2更新于 Oct 24, 2026
MCP App that renders Mermaid diagrams as interactive UI in Claude, VS Code and other MCP clients
概览
在兼容 MCP 的宿主中以可交互视图渲染 Mermaid 图表,支持平移、缩放和源码编辑器。
- 可以做什么
- 该 MCP 应用将 Mermaid 源码转换为宿主客户端内的可交互图表视图。它支持 13 种图表类型,包括流程图、时序图、类图、状态图、ER 图、甘特图、饼图、Git 图、思维导图、时间线、用户旅程、需求图和象限图。查看器提供平移缩放、适应容器、复制 SVG,以及带实时重渲染的分屏源码编辑器。编辑后的源码可发回给 LLM,输入时上下文会自动同步。
- 适用场景
- 当你希望助手绘制或修改图表,并想在不离开对话的情况下直观查看、编辑和迭代时,适合使用。它适用于架构草图、流程图、时序图以及其他 Mermaid 支持的可视化。
- 运行要求
- 通过 npx 作为本地进程运行(需要 Node.js),或作为 Claude Desktop 扩展(.mcpb)安装。仅限桌面端,无网页可执行版本。未声明认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Mermaid Mcp App,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Mermaid MCP App
English | 繁體中文
An MCP App that renders Mermaid diagrams in an interactive viewer with pan, zoom, and a built-in source editor. Edit diagrams directly in the split-view editor and send the updated source back to the LLM to continue the conversation with your changes. Works in Claude Desktop, VS Code, and any MCP-App-compatible host.
Usage
Once configured, ask the LLM to draw a diagram:
You can also specify a theme explicitly:
"Draw a class diagram with light theme"
Features
Interaction with AI
Edit the diagram source directly in the split-view editor, then send it back to the LLM to continue the conversation with your changes.
- Send to AI — sends the edited diagram source back to the LLM, triggering a response
- Auto context sync — LLM context is automatically updated as you type (debounced); the LLM always sees your latest source on the next message
Diagram Types (13 supported)
Flowchart
flowchart — General-purpose directed graphs. Supports top-down and left-right layouts, subgraphs, and various node shapes.
Sequence Diagram
sequenceDiagram — Interaction between participants over time. Shows messages, loops, and alternative flows.
Class Diagram
classDiagram — Object-oriented class structure with attributes, methods, and relationships (inheritance, composition, etc.).
State Diagram
stateDiagram-v2 — Finite state machines with transitions, composite states, and concurrency.
ER Diagram
erDiagram — Entity-relationship diagrams for data modeling with cardinality annotations.
Gantt Chart
gantt — Project timelines with tasks, milestones, dependencies, and critical paths.
Pie Chart
pie — Proportional data as pie slices with percentage labels.
Git Graph
gitGraph — Git branch and commit history visualization with merge and cherry-pick flows.
Mindmap
mindmap — Hierarchical tree of ideas radiating from a central root node.
Timeline
timeline — Chronological events grouped by time period.
User Journey
journey — User experience flows scored by satisfaction level across sections and actors.
Requirement Diagram
requirementDiagram — System requirements with type, risk, and verification method, linked to design elements.
Quadrant Chart
quadrantChart — Four-quadrant scatter plot for prioritization and positioning analysis.
UI
- Pan & zoom — mouse drag to pan, scroll wheel to zoom, pinch-to-zoom on touch
- Fit to container — auto-fits diagram on render; reset button restores fit
- Copy SVG — copies the rendered SVG to clipboard
- Split-view source editor — always-visible editor panel with live re-render (400ms debounce)
- Minimizable editor — collapse to a compact bottom bar; expand with one click
- Vertical / horizontal layout toggle — source below (vertical) or to the right (horizontal); minimized state always snaps to the bottom
- Theme support —
dark(auto-detected from system preference) andlight
Installation
Claude Desktop — Extension (recommended)
Download the latest .mcpb from GitHub Releases and double-click to install. No terminal or configuration needed.
Claude Desktop — Manual
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
VS Code
Add to .vscode/mcp.json or user settings:
Development
来源:README.md,提交 47319d0
工具
0版本历史
1- v0.3.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。