DiagramZu

ai.diagramzu由 diagramzu.ai 發布官方發布者v0.0.3更新於 Oct 25, 2026

Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.

已驗證Streamable HTTP可網頁執行效率與工作流媒體與設計

概覽

AI 產生的概覽

託管式 MCP 伺服器,讓 AI 助理在 DiagramZu 工作區中建立、讀取和更新 Mermaid 圖表、簡報和 Markdown 頁面。

可以做什麼
列出工作區、圖表、資料夾、簡報和頁面,支援搜尋與排序,並依 id 取得單一圖表、簡報或頁面,包含頁面大綱、章節和圖表版本歷程。建立和更新圖表,設定 Mermaid 原始碼、標題、描述和樣式,並取得節點、連線和密度的結構摘要。用既有圖表組成、調整順序和編輯簡報。建立和編輯 Markdown 頁面,可做定點修改,也可依指定版本整份替換內文。讀取圖表留言並發表留言,可固定在某個節點或回覆某串討論。
適用情境
適合團隊把架構圖、流程圖或業務流程圖放在 DiagramZu,並希望助理在對話中起草、修改或摘要這些圖表、用它們製作簡報,或維護搭配的 Markdown 頁面。
執行需求
需要 DiagramZu 帳號,並在帳號設定中建立 API 權杖;遠端端點透過 Bearer Authorization 標頭傳入,本機 stdio 套件以 npx 執行並透過 DIAGRAMZU_API_TOKEN 傳入。權杖限定於單一工作區或帳號所屬的全部工作區;DIAGRAMZU_SPACE_ID 為選用,用於固定預設工作區。需要能連線到託管端點。
安裝前請注意
權杖對其授權的工作區具有讀寫權限,應視為機密保管。工具會在團隊共用工作區中建立和修改圖表、簡報和頁面,並發表留言。回傳的連結僅限成員開啟;伺服器刻意不提供產生公開分享連結的工具,公開分享需由人在應用程式內操作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 DiagramZu,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/ai.diagramzu%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "diagramzu": {
      "type": "http",
      "url": "https://mcp.diagramzu.ai/mcp"
    }
  }
}

README

@diagramzu/mcp

[smithery badge]

MCP server for diagramzu.ai. Lets Claude Code, Claude Desktop, Cursor, Windsurf, ChatGPT custom GPTs, and any MCP client read and write Mermaid diagrams in your Space.

You author diagrams by talking to your AI — it stores them in your Space at diagramzu.ai/app/d/<id>, where your team can read them and publish a public link.

Available in the official MCP Registry as ai.diagramzu/mcp.

1. Get a token

Sign up at diagramzu.ai, then create an API token at diagramzu.ai/app/settings/connections. Tokens look like dz_live_… and are scoped to one Space — no separate space-id needed.

2. Connect your client

The hosted server is the easy path: no install, no build. Just paste a config.

Claude Code

bash
claude mcp add --scope user --transport http diagramzu https://mcp.diagramzu.ai/mcp \  --header "Authorization: Bearer dz_live_xxx"

Claude Desktop, Cursor, Windsurf, Cline

Add to your client's MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS for Claude Desktop, ~/.cursor/mcp.json for Cursor, etc.):

json
{  "mcpServers": {    "diagramzu": {      "type": "http",      "url": "https://mcp.diagramzu.ai/mcp",      "headers": { "Authorization": "Bearer dz_live_xxx" }    }  }}

ChatGPT custom GPT (Actions)

In the GPT builder, add an MCP server action pointing to https://mcp.diagramzu.ai/mcp with a Bearer-token authentication header set to your dz_live_… token.

Local stdio (for clients that don't speak remote MCP)

bash
npx -y @diagramzu/mcp

with environment:

DIAGRAMZU_BASE_URL=https://diagramzu.aiDIAGRAMZU_API_TOKEN=dz_live_xxxDIAGRAMZU_SPACE_ID=<your space id>   # optional

DIAGRAMZU_SPACE_ID is optional. Left unset, the server uses the token's own default workspace — the one chosen when the token was minted. Set it to pin a different workspace as the default for this process.

Most users should prefer the remote HTTP transport above — the stdio path exists for clients without HTTP MCP support.

Workspaces

A token is scoped either to one workspace or to all the workspaces its owner belongs to, chosen when the token is authorized (the consent page's Access radio, or Settings → API tokens). An account-scoped token follows its owner's live memberships: joining a workspace adds it, being removed from one closes it on the next call.

  • list_spaces shows every workspace this connection can act in, which one is the default, and your role in each.
  • Every other tool takes an optional space — a workspace id, slug, or exact name (case-insensitive). Omit it to act in the default workspace. A name matching more than one workspace is refused rather than guessed; pass the id or slug.
  • Every tool result ends with the workspace it acted in.
  • Returned /app/... links carry ?space=, so opening one switches the browser to that workspace when you are a member.

Tools

ToolDescription
list_spacesList every workspace this connection can act in, with ids, slugs, roles, and which is the default
list_diagramsList diagrams in the Space (filter with q, sort by updated / created)
list_foldersList folders in the Space
get_diagramFetch one diagram by id (title, description, Mermaid source)
create_diagramCreate a new diagram (returns its id and its /app/d/<id> URL)
update_diagramUpdate title, Mermaid source, description, or style of an existing diagram
analyze_diagramGet a structural summary of a diagram (nodes, edges, density)
list_versionsList version history for a diagram
get_versionFetch a specific historical version of a diagram
list_commentsList a diagram's comments, oldest first (optionally only one node's thread)
add_commentPost a comment, optionally pinned to a node or replying to a thread
list_decksList presentation decks in the Space, newest-edited first
get_deckFetch one deck by id, with its ordered slides
create_deckAssemble existing diagrams into an ordered presentation deck
update_deckChange a deck's title, description, or slide order (slides is declarative)
list_pagesList the workspace's Markdown pages (id, title, revision, snippet; filter with q)
get_pageFetch one page by id — the whole body, or just its outline or one section
create_pageCreate a Markdown page (title comes from the body's front matter or first heading)
update_pageEdit a page: targeted edits, or baseRevision + a whole new body

Which URLs are public

Two different things get called "a link" here, and only one of them works for someone outside your Space:

URLWho can open it
diagramzu.ai/app/d/<id>Space members only — the diagram in the app.
diagramzu.ai/app/present/<deck id>Space members only — the deck's presentation view.
diagramzu.ai/app/pages/<id>Space members only — the Markdown page in the app.
diagramzu.ai/s/<slug>Anyone with the link — the public, read-only diagram page.
diagramzu.ai/s/p/<slug>Anyone with the link — the public, read-only deck.
diagramzu.ai/s/pg/<slug>Anyone with the link — the public, read-only Markdown page.

The tools hand back the /app/… URLs, so a link pasted straight out of a chat is a members-only one: send it to someone outside the Space and they land on sign-in. To publish, open the diagram, deck or page in DiagramZu and use its Share button. This MCP server deliberately ships no tool that mints a public link — not because a token cannot (a dz_live_… token can mint one over the REST API), but because publishing a Space's content should be a deliberate human action rather than a side effect of a conversation. Once a diagram has a public link, get_diagram and update_diagram report it on a Share (public, read-only): line of their own.

A Markdown page is shared the same way. diagramzu.ai/s/pg/<slug> is its public, read-only address, minted by a person from the page's Share button, so get_page, create_page and update_page print the members-only /app/pages/<id> URL and point at that button for anything wider. They do NOT look a page's link up: unlike get_diagram they report no Share (public, read-only): line, so a page's public address is something a human hands over, not something an agent discovers.

Show off your setup

If you publish your MCP / Claude Code config in a dotfiles or example repo, drop this in the README so the next person knows where the diagrams come from:

markdown
[![MCP: diagramzu](https://diagramzu.ai/badge/mcp.svg)](https://diagramzu.ai)

Renders as a small shields-style badge — gray MCP + indigo diagramzu.

Local development (this repo)

For hacking on diagramzu itself, build from source:

bash
cd packages/mcp-diagramzupnpm installpnpm run build# point your client at: node dist/index.js# with DIAGRAMZU_BASE_URL / DIAGRAMZU_API_TOKEN (DIAGRAMZU_SPACE_ID optional)

License

MIT

來源:README.md,提交 364b1c4

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分