Back to Browse

Adv Netutils MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Pure-Go L2-L7 network diagnostics, triage recipes, 30-day cron monitor, and Operator Studio.

About

Pure-Go L2-L7 network diagnostics, triage recipes, 30-day cron monitor, and Operator Studio.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

5 files analyzed · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Optional 64-hex SHA-256 deadbolt passphrase hash for 30-minute unlock of sensitive diagnostics and watchlist mutations.Required

Environment variable: PASS_HASH

Optional high-entropy path secret protecting the remote HTTP MCP doorway (/{PATH_SECRET}/mcp).Required

Environment variable: PATH_SECRET

Optional token protecting the RFC1918-only LAN doorway (/lan/{LAN_MCP_TOKEN}/mcp).Required

Environment variable: LAN_MCP_TOKEN

Optional comma-separated CIDR allowlist restricting active diagnostic probe targets.Optional

Environment variable: NETUTILS_ALLOW_CIDRS

Optional comma-separated CIDR denylist blocking probe targets (169.254.0.0/16 is always blocked).Optional

Environment variable: NETUTILS_DENY_CIDRS

How to Install

Install command not verified. See the repository for install instructions.

View repository

Documentation

View on GitHub

From the project's GitHub README.

Advanced Network Utilities (mcp-adv-netutils) v2.2.1

Docker Image Project Showcase License: MIT

Advanced Network Utilities (mcp-adv-netutils) is a pure-Go (CGO_ENABLED=0) Model Context Protocol (MCP) server, scheduled cron monitor, and embedded 4-theme Operator Studio (/web) engineered for Layer 1–Layer 7 diagnostics across home labs, multi-VLAN infrastructure, and container hosts.

Interactive Showcase & Guides: Visit projects.oaworkbench.org/mcp-adv-netutils/ for the live zero-backend ?demo=1 Operator Studio (./demo/) and searchable plain-language guides (./docs/), or read docs/WORKFLOWS.md for the complete WF-01..WF-08 behavioral baseline.


What's New in v2.2.0

  • Local Adapter & Subnet Calculators (network_info, ip_subnet_calc): Adds network_info (inspecting active host interfaces, IPs, MACs, gateways, DNS servers, and default routing) and ip_subnet_calc (CIDR/IPv4/IPv6 network, broadcast, wildcard, usable range, host capacity, supernet, and visual subnet splitting), bringing the suite to 35 registered MCP tools.
  • 30-Hop IP_RECVERR + ECMP Traceroute & MTR (protocol: auto|udp|icmp|tcp): Expands traceroute, mtr_path_quality, and recipe_path_autopsy to 30 hops using Linux IP_RECVERR unprivileged error queues, ECMP multi-path responder aggregation, selectable protocol (auto, udp, icmp, tcp), and silent_transit_hops vs. dest_loss_pct separation.
  • DNS AUTO Parallel Multi-Record Sweep: Upgrades local_dns_query, remote_dns_query, and split_dns_audit with AUTO parallel sweeping across A|AAAA|CNAME|MX|NS|TXT|SOA, structured ParsedSOA, RawText, and per-record RecordTimings.
  • Fused LAN Discovery (UPnP XML + NetBIOS NBSTAT + Cross-VLAN TCP Liveness + lan_devices): Enriches recipe_lan_radar and mdns_ssdp_discover with UPnP XML device metadata fetching, UDP 137 NetBIOS NBSTAT name/workgroup queries, cross-VLAN TCP open/RST liveness probing, expanded homelab port presets, and SQLite lan_devices first_seen/last_seen persistence.
  • Network Studio (/web): Introduces a 17-item N1 Left Tool Rail (Overview: Info, Watcher, plus 15 tool views), Edge-to-Edge 1px Hairline Master-Detail Split (List | Chart | Split docking the Row Detail Inspector pivots), Joined 40px Command Bar (#cmdModeSelect), Sticky Bottom Telemetry Footer, Info 32×8 Tonal Micro-LED Strip + Horizontal Vector Path Schematic, Inline Timing Whiskers / sparkbars, IP Calculator visual split bar, standalone Apache ECharts reserved for Ping waveforms and Watcher timelines, live progress cancellation (AbortController), Appearance ▾, and a zero-height topbar DEMO popover.
  • Zero Node.js / Zero supergateway Runtime: Ships as a single static CGO_ENABLED=0 Go binary inside a single-layer Alpine container (~41.5 MB unpacked / ~11.4 MB compressed, USER netutils, setcap cap_net_raw+ep via RUN --mount=type=bind), serving native --stdio, Streamable HTTP, backward-compatible /sse, /web, and /healthz.
  • 35 Registered MCP Tools: Combines 14 hardened core & utility tools (12 core + network_info + ip_subnet_calc), 6 active L2–L7 probes, 8 coordinated Diagnostic Recipes (recipe_*), render_run_digest (with 1-call window auditing), 4 Cron, Saved Destinations & Archive tools (manage_saved_destinations), and unlock_netutils/lock_netutils.
  • Three-Tier ASCII Styles (style): Deterministic monospace cards across every tool and recipe—default (72 columns exact), quick (<= 40 columns borderless for 390px mobile), rich (76 columns boxed TUI), and json (< 18.5 KB wire cap with FAIL/WARN sorted first).
  • 30-Day SQLite Job Archive, Saved Destinations & Two-Tick Cron Watchlist: Pure-Go robfig/cron/v3 scheduler running watchlist.yaml plus dest_<id> Saved Destination monitors into WAL SQLite (netutils_jobs.db via modernc.org/sqlite), featuring Two-Tick Alert Hysteresis (>= 2 consecutive non-OK ticks), 7d -> 30d healthy tick down-aging, hourly TTL reaping + PRAGMA incremental_vacuum, and --max-store-mb 256 cap.
  • Thirty-Minute Passphrase Deadbolt & Two-Doorway Setup: Voice-normalized SHA-256 lock (PASS_HASH + crypto/subtle.ConstantTimeCompare) paired with a remote /{PATH_SECRET}/mcp + /web doorway, a LAN-only /lan/{LAN_MCP_TOKEN}/mcp + /sse doorway, and central CIDR target guard blocking 169.254.0.0/16.
  • 5 Bundled Agent Skills (skills/): Ready-to-use SKILL.md playbooks guiding LLM formatting, differential ping interpretation, LAN radar sweeps, split-horizon triage, and cron/destination monitoring.

MCP Tool Suite

mcp-adv-netutils v2.2.0 provides 32 core diagnostic, utility, recipe, destination, and archive tools (14 hardened core & utility + 6 active L2–L7 + 8 Diagnostic Recipes + 4 Cron, Destinations & Archive), plus render_run_digest and the unlock_netutils / lock_netutils Deadbolt controls (35 total registered MCP tools).

1. Hardened Core & Utility Tools (14)

ToolLayerCapabilities & v2.2.0 Hardening
mac_vendor_lookupL2Embedded 39,800+ IEEE OUI lookup; separates physical [UAA] from Docker/VM [LAA] (02:42:...)
pingL3Per-call Echo ID/sequence isolation, IPv4/IPv6 TTL control messages, explicit probe_mode (icmp vs tcp_fallback)
tracerouteL330-hop IP_RECVERR + ECMP multi-path probing, protocol: auto|udp|icmp|tcp (ICMP -> TCP 443/80 -> UDP fallback), bounded hop PTR lookups, "--" target guard
tcp_port_scanL4Concurrent TCP connect scan with named presets (common, expanded homelab, web, iot; default common)
dns_reverse_batchL7Concurrent reverse PTR resolution capped at 256 validated IPs per call
wol_wakeL2Sends standard 102-byte UDP Wake-on-LAN Magic Packet frames (port 7 or 9)
local_dns_queryL7Queries OS-configured local resolvers with AUTO parallel sweep (A|AAAA|CNAME|MX|NS|TXT|SOA), ParsedSOA, RawText, and RecordTimings
remote_dns_queryL7Queries Cloudflare and Google DNS-over-HTTPS (DoH) with AUTO parallel multi-record sweep, ParsedSOA, RawText, and RecordTimings
resolve_hostnameL7Resolves IPv4, IPv6, or dual-stack host addresses
whois_queryL7Domain registration metadata lookup via WHOIS
http_pingL7HTTP timing waterfall (dns, conn, tls, ttfb, total)
tls_certificate_checkL7Verifies against x509.SystemCertPool() + wire intermediates; supports Ed25519 keys
network_infoL2/L3Inspects host network interfaces, active IPv4/IPv6 CIDRs, MACs, gateways, DNS servers, and adapter state
ip_subnet_calcL3Computes CIDR network, broadcast, wildcard, usable host range, capacity, supernet, and subnet splits

2. Active L2–L7 Diagnostic Probes (6)

ToolLayerDescription
arp_neighbor_sweepL2OS/ARP neighbor discovery (mdlayher/arp) enriched with OUI vendors and UAA/LAA flags
mtu_path_probeL3Probes 1500 / 1492 / 1420 / 1280 DF frames to catch tunnel and WAN fragmentation black holes
mtr_path_qualityL330-hop parallel per-TTL wave MTR (IP_RECVERR, ECMP responder tracking, protocol: auto|udp|icmp|tcp), trailing-hop trim, and silent_transit_hops vs. dest_loss_pct separation
mdns_ssdp_discoverL7Bounded mDNS (hashicorp/mdns), SSDP/UPnP XML device metadata fetch, and UDP 137 NetBIOS NBSTAT local discovery
split_dns_auditL7Side-by-side comparison of internal local DNS vs. external DoH answers (AUTO multi-record parity, ParsedSOA, and RecordTimings)
snmp_switch_portL2Read-only SNMP (gosnmp) switch port, VLAN, and MAC FDB correlation

3. Diagnostic Recipes, Digest, Cron, Destinations & Deadbolt Tools

CategoryToolsPurpose
Diagnostic Recipes (8)recipe_diff_ping, recipe_diff_dns, recipe_diff_http, recipe_diff_snapshot, recipe_host_card, recipe_lan_radar, recipe_path_autopsy, recipe_wake_verifyCoordinated multi-probe differential ladders (recipe_path_autopsy with 30-hop IP_RECVERR ECMP + auto|udp|icmp|tcp), fused UAA/LAA LAN sweeps (UPnP XML + NetBIOS + cross-VLAN TCP open/RST liveness + lan_devices history), before/after snapshot diffs ([+], [-], [~]), and WOL verification
Digest Renderer (1)render_run_digestRe-renders any persisted job_id into default/quick/rich/json and supports one-call historical window auditing (window, since/until, target, tool_name, status, incidents_only, limit, window_summary)
Cron, Destinations & Archive (4)get_cron_status, manage_cron_watchlist, manage_saved_destinations, get_job_report< 5ms 24h/7d/30d ASCII health strips, watchlist.yaml management, list/save/delete/run saved targets (TargetGuard + dest_<id> cron sync), and 30-day job_id re-pulls with expires_at
Deadbolt Session (2)unlock_netutils, lock_netutilsVoice-normalized SHA-256 unlock (30m sliding TTL) and immediate manual relock

Three-Tier ASCII Styles & Output Budgets

Every tool, Diagnostic Recipe, and cron summary supports a style parameter designed for clean monospace rendering across mobile phones, IDE panes, and CI automation:

styleWidth / BudgetBest For
default (default)72 columns exactChat apps, IDE terminals, and unfolded tablets (900px)
quick<= 40 columns, borderlessFolded phones (390px) with zero line wrapping
rich76 columns, boxed TUIDesktop (1440px+) hop ladders, histograms, and status badges
json< 18.5 KB wire capProgrammatic diffing with FAIL and WARN rows sorted first

Cron Watchlist, Saved Destinations & 30-Day Job Archive

Scheduled jobs in watchlist.yaml and monitored Saved Destinations (dest_<id>) run automatically in-process via robfig/cron/v3 (SkipIfStillRunning) or as a one-shot external timer (--run-watchlist-once):

  • Default Watchlist Cadence: */5m public DNS recipe_diff_ping, */15m mtu_path_probe, */6h recipe_diff_dns and recipe_diff_http, plus nightly tls_certificate_check and recipe_diff_snapshot.
  • Saved Destinations (manage_saved_destinations): Stores friendly targets (category, optional Wake MAC, default check, pinned toggle, and 5-minute monitor toggle) in SQLite (saved_destinations), validates targets via TargetGuard, supports list | save | delete | run, and syncs dest_<id> checks with the cron watchlist.
  • Two-Tick Alert Hysteresis: Alerts flip only after >= 2 consecutive non-OK ticks, preventing single-packet jitter from triggering false alarms.
  • 30-Day WAL SQLite Archive (netutils_jobs.db): Pure-Go modernc.org/sqlite (?mode=ro readers) retains every manual, MCP, and incident report for 30d (get_job_report), persists discovered lan_devices (first_seen/last_seen), down-ages healthy */5m ticks across 7d -> 30d, and runs an hourly TTL reaper with PRAGMA incremental_vacuum bounded by --max-store-mb 256.

5-Layer Security & Two-Doorway Setup

See SECURITY.md for full details on the 5-layer defense-in-depth architecture:

  1. Thirty-Minute Passphrase Deadbolt (PASS_HASH): Voice-normalized SHA-256 verification via crypto/subtle.ConstantTimeCompare with automatic 30m relock (and optional redacted aggregate cron summaries while locked).
  2. Two-Doorway Setup:
    • Remote Doorway (/{PATH_SECRET}/mcp + /web): High-entropy path secret + Deadbolt protection for mobile/remote clients.
    • LAN-Only Doorway (/lan/{LAN_MCP_TOKEN}/mcp + /sse): Rejects X-Forwarded-For / X-Real-IP / Forwarded proxy headers and non-RFC1918 source IPs.
  3. /web/api/* Anti-CSRF & Anti-DNS-Rebinding: Strict Origin and Host header validation.
  4. Central Target Guard & CLI -- Prevention: Enforces --allow-cidrs / --deny-cidrs on DNS-resolved IPs, unconditionally blocks 169.254.0.0/16 metadata endpoints, and blocks leading - target injection.
  5. Unprivileged Container: Runs as USER netutils with minimal cap_net_raw+ep capability—no root, no Privileged: true.

Embedded Network Studio (/web)

Compiled directly into the Go binary (//go:embed), /web provides the 4-theme Network Studio (Pure White, Warm Paper, Dark, Dark Paper) with a consolidated Appearance ▾ popover (themes + Comfortable d2 / Compact d3 spacing) and a zero-height topbar DEMO popover (?demo=1 with one-click Return to Live Mode):

  • Pre-Unlock Gate: Clean passphrase challenge (Network Studio Locked) when PASS_HASH is locked, with a 1-tap link to depersonalized ?demo=1 preview fixtures.
  • 17-Item N1 Left Tool Rail, Joined 40px Command Bar & Master-Detail Split: Navigate all 17 interactive views (Overview: Info, Watcher; Local Network: Local Network, Subnet Scanner; Path & Ping: Ping, Multi-Point Ping, Traceroute, Path Autopsy; Ports & Services: Port Scanner, UPnP Scanner, Bonjour Browser; Web, DNS & Tools: DNS Lookup, Split DNS, Website and TLS, Whois, Wake on LAN, IP Calculator) from the adaptive Left Tool Rail, launch checks from the Joined 40px Command Bar (#cmdModeSelect mode/protocol/preset picker, target input, Save Destination, Options popover, Run Check), switch across the Edge-to-Edge 1px Hairline Master-Detail Split (List | Chart | Split docking the Row Detail Inspector in the right Split pane), and monitor live status in the Sticky Bottom Telemetry Footer.
  • Row Detail Inspector & Built-In Utilities (Info + IP Calculator): Click any row across checks, hops, DNS records, or LAN devices to populate the docked Row Detail Inspector with 1-click diagnostic pivots (Ping, Trace, Scan Ports, Whois, physical-only Wake on LAN, Split CIDR, Subnet Scan, Save Destination); inspect live host adapters in Info with the 32×8 Tonal Micro-LED Strip and Horizontal Vector Path Schematic; and slice CIDRs visually with the IP Calculator split bar.
  • Live In-Flight Progress Card & Cancellation: Displays real-time probe execution progress (#runProgressCard / #drawerProgressCard) with a 1-click Cancel control (AbortController) to abort long-running sweeps cleanly.
  • Apache ECharts Waveforms & Row-Aligned Timing Whiskers: Standalone Apache ECharts (renderer: 'svg') are reserved strictly for continuous Ping packet waveforms and Watcher 24h/7d/30d timelines, while table views (Traceroute, Path Autopsy, Multi-Point Ping, DNS Lookup, Port Scanner, Local Network) render Inline Timing Whiskers / sparkbars aligned in each row alongside Copy Summary (Markdown) and Copy Data (TSV) export.
  • Pinned Destinations & Integrated Views: Top Pinned bar (Manage, + Add, Scan Pinned), unified <dialog> Saved Destinations manager, Local Network (Physical Hardware, Routed Hosts, and Containers & VMs with lan_devices first_seen/last_seen, NetBIOS/UPnP details, baseline diffs, and 1-click Row Detail Inspector pivots), and Watcher (24h/7d/30d health timeline + Scheduled Checks & Destination Uptime + 30-day Past Check Runs opening the Past Run Drawer with Run Again & Compare).
  • Responsive Breakpoints: >= 40px touch targets and >= 16px inputs with 0px horizontal overflow at 390px (phone), adaptive rail + Master-Detail Split workspace at 900px (tablet), and full Studio workbench at 1440px+ (desktop).

Bundled Agent Skills (skills/)

Five ready-to-use SKILL.md guides ship inside skills/:

  • skills/netutils-ascii-display — Deterministic default/quick/rich/json formatting and render_run_digest.
  • skills/netutils-differential-ping — recipe_diff_ping, recipe_path_autopsy, mtu_path_probe, mtr_path_quality, 30-hop IP_RECVERR ECMP (protocol: auto|udp|icmp|tcp), and icmp vs. tcp_fallback triage.
  • skills/netutils-lan-radar — recipe_lan_radar, ARP/mDNS/SSDP/UPnP XML/NetBIOS NBSTAT/TCP liveness/PTR/SNMP correlation, UAA vs. LAA grouping, lan_devices persistence, recipe_diff_snapshot, network_info, ip_subnet_calc, and recipe_wake_verify.
  • skills/netutils-split-horizon-web — recipe_diff_dns, split_dns_audit, DNS AUTO parallel sweep (ParsedSOA + RecordTimings), recipe_diff_http, recipe_host_card, Deadbolt, and Apache ECharts /web Studio.
  • skills/netutils-cron-monitor — get_cron_status, manage_cron_watchlist, manage_saved_destinations, get_job_report, Two-Tick Alert Hysteresis, and 7d -> 30d down-aging.

Deployment & Setup

Docker Compose (Synology / Linux Docker host / Portainer GitOps Pattern)

Deploy the single-layer Alpine pure-Go image (~41.5 MB unpacked / ~11.4 MB compressed, cap_net_raw+ep via RUN --mount=type=bind) with persistent 30-day SQLite storage, NET_RAW for ICMP/ARP probes, and native HTTP flags (zero supergateway, and no runc exec container healthchecks on Synology DSM Kernel 4.4—use external GET /healthz checks instead):

services:
  mcp-netutils:
    image: ghcr.io/frankxlt/mcp-adv-netutils:latest
    container_name: mcp-netutils
    restart: unless-stopped
    init: true
    cap_add:
      - NET_RAW
    environment:
      - PASS_HASH=${PASS_HASH}
      - PATH_SECRET=${PATH_SECRET}
      - LAN_MCP_TOKEN=${LAN_MCP_TOKEN}
    command:
      - --http
      - --http-addr=:8000
      - --data-dir=/data
      - --max-store-mb=256
      - --watchlist=/app/watchlist.yaml
    volumes:
      - ./data:/data
    ports:
      - "8000:8000"
    # On Synology DSM Kernel 4.4, omit container exec healthchecks and monitor GET /healthz externally

Docker CLI (--stdio & HTTP Modes)

# Interactive --stdio JSON-RPC mode
docker run -i --rm ghcr.io/frankxlt/mcp-adv-netutils:latest --stdio

# Native HTTP mode with persistent SQLite store and /web Studio
docker run -d \
  --name mcp-adv-netutils \
  --cap-add NET_RAW \
  -p 8000:8000 \
  -v mcp_netutils_data:/data \
  -e PASS_HASH="<sha256-hex>" \
  -e PATH_SECRET="<high-entropy-secret>" \
  -e LAN_MCP_TOKEN="<lan-token>" \
  ghcr.io/frankxlt/mcp-adv-netutils:latest \
  --http --http-addr=:8000 --data-dir=/data

MCP Client Configuration

{
  "mcpServers": {
    "netutils-lan": {
      "url": "http://netutils.example.internal:8000/sse"
    },
    "netutils-stdio": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/frankxlt/mcp-adv-netutils:latest", "--stdio"]
    }
  }
}

MCP Registry

This server is published for the GitHub / Official MCP Registry under mcp-name: io.github.FrankXLT/mcp-adv-netutils.


Building from Source & Testing

git clone https://github.com/FrankXLT/mcp-adv-netutils.git
cd mcp-adv-netutils

# Build static pure-Go binary (CGO_ENABLED=0)
CGO_ENABLED=0 go build -ldflags="-s -w" -o mcp-adv-netutils .

# Run offline race-enabled unit tests
go test -race ./...

# Single-shot watchlist execution (for external systemd timers)
./mcp-adv-netutils --run-watchlist-once --watchlist=./watchlist.yaml --data-dir=./data

Documentation & Roadmap

  • docs/WORKFLOWS.md — Common Terms Glossary and bound workflows (WF-01..WF-08) across 390px, 900px, and 1440px.
  • SECURITY.md — 5-Layer Security Architecture, Passphrase Deadbolt, and CIDR Target Guard.
  • ROADMAP.md — Next milestone (Wave 4): Deadbolt-gated on-demand BPF SPAN/ERSPAN capture -> pure-Go parquet-go (72h raw TTL + 30d SQLite summary retention).

Attribution & License

Originally forked from patrickdappollonio/mcp-netutils and expanded into Advanced Network Utilities (FrankXLT/mcp-adv-netutils) with pure-Go single-binary transport, active L2–L7 diagnostics, Diagnostic Recipes, 30-day SQLite cron monitoring, and the embedded 4-theme Operator Studio.

Licensed under the MIT License — see LICENSE.

Reviews

No reviews yet

Be the first to review this server!