
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 图表。