
Network Diagram Mcp
io.github.den-indance由 GitHub 帳號 den-indance 發布v1.0.7更新於 Oct 27, 2026
Network topology editor — Claude builds diagrams via MCP. nmap/CSV import, one-click SSH.
發布方自己的服務:Diagram
概覽
本機橋接服務,讓 AI 助理在 NetMap 瀏覽器應用中建立與編輯網路拓撲圖,並支援 nmap 與 CSV 匯入。
- 可以做什麼
- 讀取與修改地圖狀態:節點、連線、便條、工作表備註與應用程式設定
- 跨節點、連接埠、便條與連線標籤搜尋,或依類型列出節點
- 新增、重新命名、切換與刪除工作表,並可鎖定工作表禁止修改
- 以格狀、圓形、力導向或叢集方式自動排列節點,並控制縮放與平移
- 匯入 nmap XML 或 CSV 清單,或以 JSON 取代工作表內容
- 將工作表匯出為 JSON、PNG 或 PDF
- 適用情境
- 適合在 NetMap 中維護網路拓撲圖,並希望助理依掃描結果或資產表格草擬、調整與補充說明,而不必手動拖曳節點時使用。
- 執行需求
- 透過 npx 在本機執行(需 Node.js)。需要開啟 map.den.dance 的 NetMap 瀏覽器分頁並啟用 WebSocket 橋接,否則工具呼叫會逾時。選用環境變數 NETMAP_MCP_PORT(預設 47821)須與 NetMap 設定中的連接埠一致。無需登入或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Network Diagram Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@den.dance/network-diagram-mcp
Visual network topology editor with AI agent integration via the Model Context Protocol. Open-source successor to netViz (netViz Inc., 1990 → CA Technologies → discontinued 2012).
Try it live → https://map.den.dance/
What makes it different
- One-click ops dashboard. Click any web port (80 / 443 / 8080 / …) on a node card to open the service in a new tab. Click an SSH / Postgres / Redis port → in-app picker offers your installed clients (iTerm / Windows Terminal / psql / DBeaver / redis-cli / RDM / …) and launches the one you choose. The picker re-detects every click — newly installed clients show up immediately, never a silent locked-in default.
- AI agents edit the map. 44 MCP tools — your Claude / Cursor / Claude Desktop session can build a diagram for you, search across nodes / ports / notes, run smart auto-layouts, export PNG / PDF — all by talking to the open browser tab.
nmap -oXimport. Run a network scan, hand the XML to the agent, get a map with nodes auto-typed from OS fingerprint + port profile (router / switch / firewall / server / printer / …).- CSV inventory import. Drop in your asset spreadsheet — auto-detects columns
(name / ip / type / ports / notes; aliases like
hostname/descriptionaccepted). - Operator-grade node cards. Per-node: open ports with service names, Docker services, DNS domains, free-form notes. All searchable cross-entity via the agent.
- Smart auto-layout. Force-directed (deterministic via seed), cluster-by-type, cluster-by-connection.
- Multi-sheet, local-first. Multiple maps in one workspace, everything in
localStorage. No login, no cloud. Export JSON / PNG / PDF.
How it works
This package is a stdio → WebSocket bridge. It runs locally as an MCP server; the live NetMap browser tab connects to it over WebSocket. The agent talks to the bridge over MCP; the bridge forwards calls to the browser, which updates React state in real time.
⚠️ Requires an open NetMap browser tab. Open https://map.den.dance/ — the MCP bridge is enabled by default (v1.2+), so the connection comes up as soon as the tab is open. Without an open tab the bridge has no peer and every tool call will time out. (To opt out:
Settings → ⚙ → Integrations → AI Agent (MCP) → Enable WebSocket connection.)
Install
Claude Desktop
Add to claude_desktop_config.json:
Claude Code
With a custom port:
Then open https://map.den.dance/ — the bridge is enabled by default (v1.2+). Settings → Integrations → AI Agent (MCP) if you need to inspect or toggle the connection. The toolbar will show a 🟢 MCP online badge when the browser and server are connected.
Verify the agent side:
You should see netmap in the list.
Environment variables
URL Protocol Handlers + in-app client picker (v1.1+, picker since v1.2)
This package also ships an OS-level agent that registers handlers for ssh://,
postgres://, and redis:// URLs. Click any such link in a browser or terminal
and the agent spawns your installed client (psql / redis-cli / iTerm /
Windows Terminal / kitty / DBeaver / TablePlus / RedisInsight / …).
Inside NetMap (v1.2+): when the serve daemon is running, clicking an
SSH / Postgres / Redis port button on a node card opens an in-app picker of
installed clients on your machine and launches the one you pick — every click
re-detects, so newly installed clients show up immediately. Without the daemon,
port-clicks fall back to the OS default URL handler.
Install once per machine:
Other CLI subcommands:
Click handling is daemon-less — OS routes the link to a short-lived
bin/handler.js process which parses the URL, picks the first installed
client (priority order: CLI → popular GUI → cross-platform power), and spawns
it. The optional serve daemon adds HTTP endpoints (/status, /detect,
/exec) for browser-side integration with a Bearer-token-gated /exec.
npx @den.dance/network-diagram-mcp with no args still runs the original
stdio MCP server (back-compat — Smithery / Claude Desktop probes are
unaffected).
Top-5 clients per scheme (priority order, first-installed wins):
postgresql:// aliases to postgres; rediss:// is preserved and triggers
redis-cli --tls.
Available tools
State & layout
Nodes
Connections
Sticky notes
Sheets (multi-sheet)
View / canvas
Lock / protection
Notes & settings
Search
Example — find everything matching postgres anywhere in the map:
map_search and map_get_nodes_by_type are read-only — they work on locked sheets.
Import
Example — turn a 2-host nmap scan into a map in one call:
Provide {"hosts": [...]} instead of xml when you already have parsed host data — hosts takes priority when both are given.
Example — turn a CSV inventory snippet into a map:
For non-standard headers, pass an explicit columns mapping (-1 means "absent"):
map_import_nmap and map_import_csv are mutations — blocked on locked sheets.
Layout
map_suggest_layout repositions every node according to a chosen algorithm; result shape:
{ ok: true, algorithm, changed: <node count> }.
Force-directed is O(n²) per iteration — fine up to a few hundred nodes; bring iterations down
for larger scenes. map_suggest_layout is a mutation — blocked on locked sheets.
Export (JSON / PNG / PDF)
PNG / PDF capture renders the live workspace via html-to-image + jsPDF, so the MCP server raises
the per-command timeout to 30 s for this tool. map_export is read-only — works on locked sheets.
Connection status indicator
A badge appears next to the NetMap version in the toolbar (click it to open Settings):
Detailed status (with URL and hints) is shown inside Settings → Integrations → AI Agent (MCP).
Running from source (for contributors)
Override port: NETMAP_MCP_PORT=12345 node index.js.
Register the local build in Claude Code instead of npm:
License
MIT — see LICENSE.
來源:README.md,提交 f9a3503
工具
0版本歷史
1- v1.0.7最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Diagram 整合

Diagram
la.diagram官方發布者
儲存助理繪製的圖,並回傳可分享的連結,圖被編輯後該連結仍保持有效。
NativeDiagram
由 GitHub 帳號 ChanMo 發布
一個遠端 MCP 伺服器,讓助理為 Microsoft Word 和 PowerPoint 建立原生、可編輯的 SmartArt 圖表。

AI Diagram Maker
由 GitHub 帳號 erajasekar 發布
透過 AI Diagram Maker 服務,把自然語言、JSON、ASCII、圖片或 Mermaid 轉成軟體圖(流程圖、時序圖、ERD、架構圖、UML)。
VoltPlan Wiring Diagrams
由 GitHub 帳號 YUZU-Hub 發布
為露營車、船隻與離網系統計算 12V/24V/48V 電力系統選型,並產生可在編輯器中開啟的配線圖。

Vaults Diagram Tools
由 GitHub 帳號 Malnati 發布
一個本機 stdio MCP 伺服器,讓助理把 Mermaid 圖表算繪成 SVG/JPEG 資產,並從原始碼產生 Mermaid 圖表。