awslabs.pcap-analyzer-mcp-server

v1.0.2
awslabs.pcap-analyzer-mcp-server Checked 2 days ago Published 3 months ago

A Model Context Protocol server for comprehensive network packet capture and analysis using Wireshark/tshark

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

list_network_interfaces

List available network interfaces for packet capture

start_packet_capture

Start packet capture on specified interface

ParameterTypeDescription
interface *stringNetwork interface to capture on (e.g., 'en0')
capture_filterstringBPF filter for capture (e.g., 'tcp port 80')
durationintegerCapture duration in seconds (default: 60)
output_filestringCustom output filename (optional)

stop_packet_capture

Stop an active packet capture session

ParameterTypeDescription
capture_id *stringID of the capture session to stop

get_capture_status

Get status of all active capture sessions

list_captured_files

List all captured pcap files in storage directory

analyze_pcap_file

Analyze a pcap file and generate insights

ParameterTypeDescription
pcap_file *stringPath to pcap file or filename in storage
analysis_typestringType of analysis (summary, protocols)
display_filterstringWireshark display filter (e.g., 'tcp.port == 80')

extract_http_requests

Extract HTTP requests from pcap file

ParameterTypeDescription
pcap_file *stringPath to pcap file
limitintegerMaximum number of requests to extract

generate_traffic_timeline

Generate traffic timeline with specified time intervals

ParameterTypeDescription
pcap_file *stringPath to pcap file
time_intervalintegerTime interval in seconds for timeline

search_packet_content

Search for specific patterns in packet content

ParameterTypeDescription
pcap_file *stringPath to pcap file
search_pattern *stringPattern to search for in packet content
case_sensitivebooleanWhether search should be case sensitive
limitintegerMaximum number of matches to return

analyze_network_performance

Analyze network performance metrics from pcap file

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_network_latency

Analyze network latency and response times

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_tls_handshakes

Analyze TLS handshakes including SNI, key exchange groups, and Post-Quantum Cryptography (PQC) detection

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_sni_mismatches

Analyze SNI mismatches and correlate with connection resets

ParameterTypeDescription
pcap_file *stringPath to pcap file

extract_certificate_details

Extract SSL certificate details and validate against SNI

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_tls_alerts

Analyze TLS alert messages that indicate handshake failures

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_connection_lifecycle

Analyze complete connection lifecycle from SYN to FIN/RST

ParameterTypeDescription
pcap_file *stringPath to pcap file

extract_tls_cipher_analysis

Analyze TLS cipher suite negotiations, key exchange groups, and PQC algorithm usage

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_tcp_retransmissions

Analyze TCP retransmissions and packet loss patterns

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_tcp_zero_window

Analyze TCP zero window conditions and flow control issues

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_tcp_window_scaling

Analyze TCP window scaling and flow control mechanisms

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_packet_timing_issues

Analyze packet timing issues and duplicate packets

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_congestion_indicators

Analyze network congestion indicators and quality metrics

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_dns_resolution_issues

Analyze DNS resolution issues and query patterns

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_expert_information

Analyze Wireshark expert information for network issues

ParameterTypeDescription
pcap_file *stringPath to pcap file
severity_filterstringFilter by severity (Chat, Note, Warn, Error)

analyze_protocol_anomalies

Analyze protocol anomalies and malformed packets

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_network_topology

Analyze network topology and routing information

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_security_threats

Analyze potential security threats and suspicious activities

ParameterTypeDescription
pcap_file *stringPath to pcap file

generate_throughput_io_graph

Generate throughput I/O graph data with specified time intervals

ParameterTypeDescription
pcap_file *stringPath to pcap file
time_intervalintegerTime interval in seconds for I/O graph

analyze_bandwidth_utilization

Analyze bandwidth utilization and traffic patterns

ParameterTypeDescription
pcap_file *stringPath to pcap file
time_windowintegerTime window in seconds for bandwidth calculation

analyze_application_response_times

Analyze application layer response times and performance

ParameterTypeDescription
pcap_file *stringPath to pcap file
protocolstringProtocol to analyze (http, https, dns, ftp)

analyze_network_quality_metrics

Analyze network quality metrics including jitter and packet loss

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_mtu_fragmentation

Analyze MTU/fragmentation issues including Path MTU discovery failures, IP fragmentation, and ICMP "packet too big" messages

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_tcp_resets

Analyze TCP connection resets (RST) with context: who sent the reset, connection duration, bytes transferred, and likely cause

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_duplicate_acks

Analyze duplicate ACKs and fast retransmit patterns to distinguish real packet loss from reordering

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_icmp_errors

Analyze ICMP error messages: destination unreachable, TTL exceeded, redirects, and parameter problems

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_connection_timeouts

Detect connection timeouts: unanswered SYNs (firewall drops), idle connection timeouts, and half-open connections

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_out_of_order_packets

Detect TCP out-of-order packets that indicate network path issues or reordering without actual loss

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_quic_traffic

Analyze QUIC/HTTP3 traffic: connection IDs, handshake failures, version negotiation, stream multiplexing, and connection migration

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_connection_reuse

Analyze HTTP connection pooling and reuse: requests per connection, keep-alive effectiveness, idle time before close, and connection churn

ParameterTypeDescription
pcap_file *stringPath to pcap file

analyze_geo_asn_mapping

Map IP addresses to ASN/organization using whois data to identify providers, CDNs, and traffic routing paths

ParameterTypeDescription
pcap_file *stringPath to pcap file
top_nintegerNumber of top IPs to resolve (default: 20)

follow_tcp_stream

Reassemble and follow a TCP stream by stream index, showing the full conversation payload between client and server

ParameterTypeDescription
pcap_file *stringPath to pcap file
stream_index *integerTCP stream index to follow

follow_udp_stream

Reassemble and follow a UDP stream by stream index

ParameterTypeDescription
pcap_file *stringPath to pcap file
stream_index *integerUDP stream index to follow

extract_fields

Extract arbitrary tshark fields from packets with optional display filter. Supports any valid tshark field name.

ParameterTypeDescription
fields *arrayList of tshark field names to extract (e.g., ['ip.src', 'tcp.port', 'http.host'])
pcap_file *stringPath to pcap file
display_filterstringOptional Wireshark display filter (e.g., 'http.request')
limitintegerMaximum number of packets to return (default: 100)

detect_arp_spoofing

Detect ARP spoofing: duplicate IP-to-MAC mappings, gratuitous ARP floods, and ARP reply storms

ParameterTypeDescription
pcap_file *stringPath to pcap file

detect_dns_tunneling

Detect DNS tunneling: unusually long domain queries, high TXT record volume, excessive subdomain entropy, and single-host query floods

ParameterTypeDescription
pcap_file *stringPath to pcap file

extract_credentials

Detect plaintext credentials in HTTP Basic Auth, FTP USER/PASS, Telnet, and SMTP AUTH traffic

ParameterTypeDescription
pcap_file *stringPath to pcap file