NetsCLI

io.github.fstubnerv0.3.4更新于 Oct 4, 2026

Network scanner for AI agents: discover hosts, scan TCP and UDP ports, query DNS and mDNS.

概览

AI 生成的概览

让助手在本机发现主机、扫描 TCP/UDP 端口、查询 DNS 与 mDNS,并检查网络设备。

功能
NetsCLI 以 MCP 工具的形式向智能体提供网络扫描能力。默认提供九个工具:discover、scan、ping、DNS、ARP、inspect、sweep、interfaces 和 mDNS;抓包版本还会增加四个。它可以发现本地子网中的主机、检查指定端口是否开放、解析 DNS 记录,并查询带厂商信息的 ARP 表项。同一套核心也以命令行、终端界面和桌面应用形式发布。
适用场景
适合让助手回答本地网络相关问题,例如刚接入的是哪台设备、某主机的端口是否开放,而无需调用外部命令并解析面向人的输出。适用于桌面机器上的家庭实验室与局域网排查。
运行要求
以 npm 包 netscli 通过 stdio 在本机运行,使用 serve 参数启动;安装可用 Rust 工具链或平台包管理器(Homebrew、winget、cargo)。仅支持桌面端,不能在网页中执行。未声明账号或 API 密钥。环境变量 NETSCLI_MCP_ALLOW_PUBLIC_TARGETS 控制是否允许扫描自身网络之外的目标。
安装前请注意
默认只扫描自身网络;将 NETSCLI_MCP_ALLOW_PUBLIC_TARGETS 设为 1 后助手可扫描外部目标,对不属于自己的系统可能具有侵入性甚至违法。扫描会向主机发送流量,可能被记录或拦截。抓包版本需要较高的抓包权限。

安装

在 SourceWeft 中

  1. 打开 控制台中的 NetsCLI,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[NETSCLI]

A network scanner written in Rust. CLI, terminal UI, desktop app, and MCP server. One library behind all four.

[CI] [crates.io] [Release] [Downloads] [License: MIT]

Documentation · Install · Changelog

Why this exists

The terminal UI came first. I wanted to understand how the newer TUIs work, the ones coding agents like Claude Code have put real effort into. Autocomplete, command history, in-place progress, and a UI that does not take over the terminal, so scrollback and copying text keep working. Building one seemed like the way to learn it, and a network scanner gave it something to do.

The MCP server came next. I thought it would be interesting to let an agent work with a network that way. Ask which device just joined, or whether port 22 is open on some host, instead of shelling out to another tool and parsing output that was written for a person to read.

Then the CLI, for programmatic use. A script or a cron job wants one command and JSON back, not an interactive session.

The desktop app came last. Some people would rather have a GUI than a terminal, and honestly I sometimes prefer it myself over running the commands locally.

Three of them are the same binary. netscli <command> is the CLI, netscli on its own opens the terminal UI, and netscli serve starts the MCP server. The desktop app is a separate download over the same core.

Screenshots

Install

bash
# macOS / Linuxbrew tap fstubner/tap && brew install netscli
# Windowswinget install netscli        # CLI, TUI and MCP serverwinget install netscli-gui    # desktop app
# Any platform, via cargocargo install netscli

Desktop installers for Windows, macOS and Linux are attached to every release.

Scoop, the AUR, the one-line install scripts, packet-capture builds and signature verification are all covered in the install guide.

Usage

bash
netscli discover                     # find hosts on the local subnetnetscli scan 192.168.1.10 -p 22,80,443netscli inspect example.com          # ping + scan + resolvenetscli dns example.com              # all record typesnetscli arp                          # ARP table with vendor lookupnetscli interfaces

Every non-interactive command takes --json or --yaml, so results pipe straight into jq, and the ones that return a list also take --csv and --md.

Run netscli with no arguments for the terminal UI: slash commands with autocomplete, command history, scrollback and /export.

Full command reference: CLI · TUI · desktop app

MCP server

json
{  "mcpServers": {    "netscli": {      "command": "netscli",      "args": ["serve"]    }  }}

Nine tools by default: discover, scan, ping, DNS, ARP, inspect, sweep, interfaces and mDNS. Packet-capture builds add four more. Details and the full schemas are in the MCP guide.

Documentation

PageCovers
OverviewWhat it does, the interface model, safety limits
InstallationEvery install route, per platform
CLICommands, flags, structured output
Terminal UISlash commands and session behaviour
Desktop appTabs, filters, exports
MCP serverTools, schemas, agent setup
OperationsWhat each scan actually does
Result modelShape of the JSON and YAML output
Packet captureRequirements and the pcap builds
Core libraryUsing netscli-core directly

Contributing

Issues and pull requests are welcome. Building from source, the desktop app dev loop, packet-capture builds and the repository layout are all in CONTRIBUTING.md.

License

MIT

来源:README.md,提交 7a84ca7

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.3.4最新Oct 4, 2026