network-mcp

v0.1.2
network-mcp Checked 8 hours ago Published 11 months ago

Network MCP Server for AI Agents - Connectivity testing and pcap analysis

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cidr_info

CIDR primitives (IPv4/IPv6): mask, wildcard, usable range, counts. NOC use cases: - Validate the mask math in a change ticket - Quickly answer "what's the usable range for this VLAN subnet?"

ParameterTypeDescription
cidr *string

ip_in_subnet

Check if an IP is in a subnet and whether it is a usable host address. NOC use cases: - "Is this IP in this VLAN subnet?" - Catch network/broadcast mistakes (/24 .0 / .255) quickly

ParameterTypeDescription
cidr *string
ip *string

subnet_split

Split a CIDR into equal-size child subnets (by new_prefix or power-of-two count).

ParameterTypeDescription
cidr *string
count
new_prefix

cidr_summarize

Summarize/aggregate routes from a list of CIDRs (IPv4/IPv6 collapsed separately).

ParameterTypeDescription
cidrs *array

check_overlaps

Detect overlaps/containment between CIDRs (high-leverage sanity check).

ParameterTypeDescription
cidrs *array

validate_vlan_map

Validate a simple VLAN map (1 subnet per VLAN) and surface overlaps. Input formats supported: - Shorthand: {"10": "192.168.10.0/24"} - Structured: {"10": {"cidr": "192.168.10.0/24", "name": "Management"}}

ParameterTypeDescription
vlan_map *object

find_vlan_for_ip

Find which VLAN subnet(s) match an IP in a provided VLAN map. Tier 1 "hero tool": - "What VLAN does this IP belong to?" Example vlan_map: {"10": "192.168.10.0/24", "20": {"cidr": "192.168.20.0/24", "name": "Voice"}}

ParameterTypeDescription
ip *string
vlan_map *object

ip_in_vlan

Check if an IP belongs to a VLAN (1 subnet per VLAN) using a provided VLAN map. If it does NOT match, this tool will attempt a best-guess VLAN match to help Tier 1/2 triage. Example vlan_map: {"20": {"cidr": "10.10.20.0/24", "name": "Voice"}, "50": "10.10.50.0/24"}

ParameterTypeDescription
ip *string
vlan_id *
vlan_map *object

plan_subnets

Allocate VLAN subnets from a parent IPv4 block (deterministic, no network calls). Each requirement is 1 subnet per VLAN. Use either hosts (alias: needed_hosts) OR prefix (alias: desired_prefix). Example: parent_cidr="10.0.0.0/23" requirements=[ {"vlan_id": 10, "name": "Users", "hosts": 120}, {"vlan_id": 20, "name": "Voice", "hosts": 60}, {"vlan_id": 30, "name": "Printers", "prefix": 26}, ]

ParameterTypeDescription
parent_cidr *string
requirements *array

capabilities

Report server/runtime capabilities and dependency status. Use this tool first when running with local/smaller models so the agent can decide which tools will work (e.g., whether `mtr` is installed) and what security/pcap guardrails are active.

rdap_lookup

WHOIS-style lookup using RDAP (Registration Data Access Protocol). Use this to identify who owns an IP range or domain and to get registration metadata.

ParameterTypeDescription
query *string
timeoutinteger

asn_lookup

Lookup origin ASN for an IP address (BGP origin intel). Use this to quickly identify the ASN and prefix associated with an external IP.

ParameterTypeDescription
ip *string
timeoutinteger

ping

Ping a host to check connectivity and measure latency. Use this tool to verify if a host is reachable and measure round-trip latency. Returns packet loss percentage and latency statistics (min/avg/max). Args: target: Hostname or IP address to ping (e.g., "google.com" or "8.8.8.8") count: Number of ICMP packets to send (default: 4) timeout: Timeout in seconds for each packet (default: 5) Returns: Ping results including success status, packet loss, and latency statistics

ParameterTypeDescription
target *string
countinteger
timeoutinteger

traceroute

Trace the network path to a destination, showing each hop. Use this tool to understand the network path between you and a target, identify where latency is introduced, or find where packets are being dropped. Args: target: Hostname or IP address to trace (e.g., "google.com") max_hops: Maximum number of hops to trace (default: 30) timeout: Timeout in seconds for each probe (default: 5) Returns: Path analysis with hop-by-hop details including IP, hostname, and latency

ParameterTypeDescription
target *string
max_hopsinteger
timeoutinteger

dns_lookup

Perform DNS lookup for a hostname or reverse lookup for an IP. Use this tool to resolve hostnames to IP addresses, find mail servers (MX), or perform reverse DNS lookups. Args: query: Hostname to lookup (e.g., "google.com") or IP for reverse lookup record_type: DNS record type - A, AAAA, CNAME, MX, TXT, NS, SOA, PTR (default: A) nameserver: Optional specific nameserver to query (e.g., "8.8.8.8") Returns: DNS records found with TTL and response time

ParameterTypeDescription
query *string
nameserver
record_typestring

port_check

Check if a TCP port is open and optionally grab service banner. Use this tool to verify if a service is listening on a port, check firewall rules, or identify what service is running on a port. Args: target: Hostname or IP address to check port: TCP port number to check (1-65535) timeout: Connection timeout in seconds (default: 5) grab_banner: Whether to attempt to grab service banner (default: True) Returns: Port status (open/closed), response time, and optional service banner

ParameterTypeDescription
port *integer
target *string
grab_bannerboolean
timeoutnumber

mtr

Run MTR (My Traceroute) for detailed path analysis with statistics. MTR combines traceroute and ping to provide per-hop packet loss and latency statistics over multiple probes. Better than traceroute for diagnosing intermittent issues. Note: Requires MTR to be installed on the system. Args: target: Hostname or IP address to analyze count: Number of pings to send to each hop (default: 10) timeout: Timeout in seconds (default: 5) Returns: Per-hop statistics including packet loss percentage and latency

ParameterTypeDescription
target *string
countinteger
timeoutinteger

batch_ping

Ping multiple hosts concurrently for efficient connectivity testing. Use this tool when you need to check connectivity to multiple hosts at once. Results include per-target status and an overall summary. Targets are validated against the configured allowlist/blocklist. Args: targets: List of hostnames or IP addresses to ping count: Number of ICMP packets per target (default: 4) timeout: Timeout in seconds per packet (default: 5) max_concurrent: Maximum concurrent pings (default: 10) Returns: Batch results with per-target status, su…

ParameterTypeDescription
targets *array
countinteger
max_concurrentinteger
timeoutinteger

batch_port_check

Check multiple TCP ports on a single host concurrently. Use this tool to quickly scan multiple ports on a host, such as checking which common services are running. Returns open/closed status for each port. Args: target: Hostname or IP address to check ports: List of TCP port numbers to check (e.g., [22, 80, 443, 3306]) timeout: Connection timeout per port in seconds (default: 2) max_concurrent: Maximum concurrent checks (default: 20) Returns: Batch results with per-port status, open/closed counts, and summary

ParameterTypeDescription
ports *array
target *string
max_concurrentinteger
timeoutnumber

batch_dns_lookup

Perform DNS lookups for multiple hostnames at once. Use this tool when you need to resolve multiple hostnames or check DNS records for several domains efficiently. Args: queries: List of hostnames to lookup record_type: DNS record type for all queries (default: A) Returns: Batch results with per-query records, success/fail counts, and summary

ParameterTypeDescription
queries *array
record_typestring

get_interfaces

Get network interface information. Use this tool to list all network interfaces on the local system with their IP addresses, MAC addresses, and status. Works on Linux, macOS, and Windows. Returns: Interface list with IPs, MACs, status, and the default interface

get_routes

Get the routing table. Use this tool to view the system's routing table including default gateway, destination networks, and associated interfaces. Works on Linux, macOS, and Windows. Returns: Routing table with destinations, gateways, interfaces, and default gateway

get_dns_config

Get DNS configuration. Use this tool to view the configured DNS nameservers and search domains. Works on Linux, macOS, and Windows. Returns: DNS configuration with nameservers and search domains

get_arp_table

Get the ARP table. Use this tool to view the ARP cache showing IP to MAC address mappings for hosts on the local network. Works on Linux, macOS, and Windows. Returns: ARP entries with IP addresses, MAC addresses, and states

get_connections

Get active network connections. Use this tool to view active TCP/UDP connections including listening ports and established connections. Works on Linux, macOS, and Windows. Args: protocol: Filter by protocol (tcp, udp, or None for all) state: Filter by state (e.g., ESTABLISHED, LISTEN, or None for all) Returns: Connection list with local/remote addresses, states, and process info

ParameterTypeDescription
protocol
state

get_public_ip

Get the public/external IP address. Use this tool to determine the public IP address as seen from the internet. This is useful for understanding NAT configuration or verifying external connectivity. Tries multiple services for reliability. Args: timeout: Timeout in seconds for each service request (default: 10) Returns: Public IP address and the service used to determine it

ParameterTypeDescription
timeoutinteger

pcap_summary

Get a high-level summary of a packet capture file. Use this tool to quickly understand what's in a pcap file without reading every packet. Returns protocol breakdown, top talkers, and basic statistics. Args: file_path: Path to the pcap or pcapng file max_packets: Maximum packets to analyze (default: 100000) Returns: Capture summary including packet count, duration, protocols, and top talkers

ParameterTypeDescription
file_path *string
max_packetsinteger

get_conversations

Extract network conversations/flows from a pcap file. Use this tool to see which hosts are communicating and how much data they're exchanging. Useful for identifying top bandwidth consumers. Args: file_path: Path to the pcap or pcapng file max_packets: Maximum packets to analyze (default: 100000) top_n: Return top N conversations by packet count (default: 20) Returns: List of conversations with source/dest, protocol, packets, and bytes

ParameterTypeDescription
file_path *string
max_packetsinteger
top_ninteger

find_tcp_issues

Analyze TCP packets for issues like retransmissions and resets. Use this tool to diagnose network problems. Detects: - Retransmissions (indicating packet loss) - TCP resets (connection problems) - Zero window (buffer exhaustion) - Duplicate ACKs (packet loss signals) Args: file_path: Path to the pcap or pcapng file max_packets: Maximum packets to analyze (default: 100000) Returns: TCP issues categorized by type with severity and recommendations

ParameterTypeDescription
file_path *string
max_packetsinteger

analyze_dns_traffic

Analyze DNS queries and responses in a packet capture. Use this tool to understand DNS activity including: - Most queried domains - Failed queries (NXDOMAIN, SERVFAIL) - Slow DNS responses (>100ms) Args: file_path: Path to the pcap or pcapng file max_packets: Maximum packets to analyze (default: 100000) Returns: DNS traffic analysis with top domains, failures, and slow queries

ParameterTypeDescription
file_path *string
max_packetsinteger

filter_packets

Filter packets from a pcap file based on criteria. Use this tool to extract specific packets matching your criteria. Multiple filters can be combined (AND logic). Args: file_path: Path to the pcap or pcapng file src_ip: Filter by source IP address dst_ip: Filter by destination IP address protocol: Filter by protocol (TCP, UDP, ICMP, DNS) port: Filter by port number (source or destination) max_packets: Maximum packets to scan (default: 100000) max_results: Maximum matching packets to return (default: 100) Returns:…

ParameterTypeDescription
file_path *string
dst_ip
max_packetsinteger
max_resultsinteger
port
protocol
src_ip

get_protocol_hierarchy

Analyze protocol distribution in a packet capture. Use this tool to see the breakdown of protocols by packet count and bytes. Similar to Wireshark's protocol hierarchy view. Args: file_path: Path to the pcap or pcapng file max_packets: Maximum packets to analyze (default: 100000) Returns: Protocol hierarchy with packet counts, bytes, and percentages

ParameterTypeDescription
file_path *string
max_packetsinteger

analyze_throughput

Calculate observed throughput per conversation (Mbps) from a pcap file. This reports achieved throughput in the capture (not theoretical bandwidth).

ParameterTypeDescription
file_path *string
max_packetsinteger
sort_bystring
top_ninteger

custom_scapy_filter

Execute a custom scapy filter expression on a pcap file. Use this tool for advanced packet filtering using scapy's syntax. The filter is validated for safety before execution. Supported filter syntax examples: - "TCP in pkt and pkt[TCP].dport == 80" - HTTP traffic - "UDP in pkt and DNS in pkt" - DNS traffic - "pkt[IP].ttl < 64" - Packets with low TTL - "len(pkt) > 1000" - Large packets Args: file_path: Path to the pcap or pcapng file filter_expression: Scapy-style filter expression max_packets: Maximum packets to scan (default: 100000)…

ParameterTypeDescription
file_path *string
filter_expression *string
max_packetsinteger
max_resultsinteger