
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 分
請在儲存庫或註冊中心條目中宣告授權條款。