A Model Context Protocol (MCP) server for network operations. Gives AI agents the ability to discover devices, scan ports, fingerprint operating systems, and look up MAC vendors on local networks.
| Tool | Description |
|---|---|
discover_devices |
ARP scan a subnet to find active devices with IP, MAC, and vendor info |
scan_ports |
Concurrent TCP port scan with service detection |
fingerprint_host |
OS detection (TTL analysis) + device type classification (port patterns) |
lookup_mac_vendor |
MAC address to manufacturer lookup (IEEE OUI database) |
ping |
ICMP ping to check host reachability and latency |
go install github.com/lybw/netops-mcp@latestOr build from source:
git clone https://github.com/lybw/netops-mcp.git
cd netops-mcp
go build -o netops-mcp .Add to claude_desktop_config.json:
{
"mcpServers": {
"netops": {
"command": "netops-mcp"
}
}
}Add to settings:
{
"mcpServers": {
"netops": {
"command": "netops-mcp"
}
}
}Once connected, the AI agent can:
"Discover all devices on my local network 192.168.1.0/24"
"Scan ports 22, 80, 443 on 10.0.0.1"
"What OS is running on 192.168.1.100?"
"Look up the vendor for MAC address 00:0C:29:AA:BB:CC"
"Ping 8.8.8.8 to check connectivity"
Parameters:
cidr (required) - Subnet in CIDR notation, e.g., "192.168.1.0/24"
Performs an ARP sweep: pings all IPs in the subnet to populate the ARP table, then reads it to extract IP/MAC pairs. Enriches results with vendor names from the OUI database.
Parameters:
host (required) - Target IP or hostname
ports - Port spec: "22,80,443" or "1-1024" (default: common ports)
timeout_ms - Per-port timeout in ms (default: 2000)
workers - Concurrent scan workers (default: 100)
Parameters:
host (required) - Target IP or hostname
scan_ports - Also scan ports for device type detection (default: true)
Combines TTL-based OS detection with port-pattern device classification (Server, Printer, Camera, Network Device, etc.).
Parameters:
mac (required) - MAC address in any format
Parameters:
host (required) - Target IP or hostname
count - Number of packets (default: 4, max: 20)
netops-mcp
├── main.go # MCP server setup and stdio transport
└── tools/
├── register.go # Tool registration
├── discover.go # LAN device discovery
├── portscan.go # Port scanning
├── fingerprint.go # OS + device type detection
├── oui.go # MAC vendor lookup
├── ping.go # ICMP ping
└── helpers.go # Shared response helpers
Dependencies:
- netkit — Network operations library (discovery, scanning, fingerprinting, OUI)
- mcp-go — MCP protocol implementation for Go
MIT