wireshark-mcp
v0.6.5Professional network analysis with tshark.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
wireshark_list_interfaces
List available network interfaces for capture. Returns: List of interfaces with index, name, and status Example: wireshark_list_interfaces()
wireshark_capture
Capture live network traffic. Args: interface: Interface index or name (from list_interfaces) output_file: Absolute path for output .pcap file duration_seconds: Capture duration (0 = unlimited) packet_count: Stop after N packets (0 = unlimited) capture_filter: BPF filter (e.g. "host 192.168.1.1 and port 80") ring_buffer: Ring buffer config (e.g. "filesize:1024,files:5") Returns: Success message with file path or error JSON Errors: ExecutionError: Capture failed…
| Parameter | Type | Description |
|---|---|---|
interface * | string | |
output_file * | string | |
capture_filter | string | |
duration_seconds | integer | |
packet_count | integer | |
ring_buffer | string |
wireshark_filter_save
Filter packets from a pcap and save to a new file. Args: input_file: Source pcap file output_file: Destination pcap file display_filter: Wireshark display filter (e.g. "http.request.method == POST") Returns: Success message or error JSON Errors: FileNotFound: input_file does not exist ExecutionError: Filter failed Example: wireshark_filter_save("big.pcap", "http_only.pcap", "http")
| Parameter | Type | Description |
|---|---|---|
display_filter * | string | |
input_file * | string | |
output_file * | string |
wireshark_stats_protocol_hierarchy
[PHS] Get Protocol Hierarchy Statistics. Shows distribution of protocols in the capture. Returns: Tree-structured protocol statistics or JSON error Errors: FileNotFound: pcap_file does not exist Example: wireshark_stats_protocol_hierarchy("traffic.pcap")
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string |
wireshark_stats_endpoints
[Endpoints] List all endpoints and their traffic stats. Args: type: Protocol type - 'eth', 'ip', 'ipv6', 'tcp', 'udp', 'sctp', 'wlan' Returns: Endpoint statistics table or JSON error Errors: FileNotFound: pcap_file does not exist InvalidParameter: Invalid protocol type Example: wireshark_stats_endpoints("traffic.pcap", type="tcp")
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
type | string |
wireshark_stats_conversations
[Conversations] Show communication pairs and their stats. Args: type: Protocol type - 'eth', 'ip', 'ipv6', 'tcp', 'udp', 'sctp', 'wlan' Returns: Conversation statistics table or JSON error Errors: FileNotFound: pcap_file does not exist InvalidParameter: Invalid protocol type Example: wireshark_stats_conversations("traffic.pcap", type="tcp")
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
type | string |
wireshark_stats_io_graph
[I/O Graph] Traffic volume over time. Args: interval: Time interval in seconds (default: 1) Returns: Time-series traffic statistics or JSON error Errors: FileNotFound: pcap_file does not exist Example: wireshark_stats_io_graph("traffic.pcap", interval=5)
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
interval | integer |
wireshark_stats_expert_info
[Expert Info] Automatic anomaly detection. Detects: retransmissions, errors, warnings, protocol issues. Returns: Expert analysis results or JSON error Errors: FileNotFound: pcap_file does not exist Example: wireshark_stats_expert_info("traffic.pcap")
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string |
wireshark_stats_service_response_time
[SRT] Service Response Time statistics. Args: protocol: Application protocol - 'http', 'dns', 'smb', etc. Returns: Response time statistics or JSON error Errors: FileNotFound: pcap_file does not exist Example: wireshark_stats_service_response_time("web.pcap", protocol="http")
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
protocol | string |
wireshark_get_packet_list
[Summary] Get a summary list of packets (like Wireshark's top pane). Use this first to scan traffic before drilling down. Args: pcap_file: Path to capture file limit: Rows to return (default: 20) offset: Skip first N rows display_filter: Wireshark display filter (e.g. "tcp.port == 80") custom_columns: Comma-separated list of fields (e.g. "ip.src,http.host") If provided, replaces default columns. Returns: Tabular list with columns: No, Time, Source, Destination,…
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
custom_columns | string | |
display_filter | string | |
limit | integer | |
offset | integer |
wireshark_get_packet_details
[Detail] Get full details for a SINGLE packet (like Wireshark's bottom pane). Args: pcap_file: Path to capture file frame_number: The packet number (from wireshark_get_packet_list) layers: Comma-separated list of layers/protocols to include (e.g. "ip,tcp,http"). Reduces output size significantly. Returns: Complete JSON structure of the packet Example: wireshark_get_packet_details("traffic.pcap", frame_number=42, layers="http")
| Parameter | Type | Description |
|---|---|---|
frame_number * | integer | |
pcap_file * | string | |
layers | string |
wireshark_get_packet_bytes
[Bytes] Get raw Hex/ASCII dump (like Wireshark's 'Packet Bytes' pane). Args: pcap_file: Path to capture file frame_number: The packet number Returns: Standard Wireshark Hex/ASCII dump. Example: wireshark_get_packet_bytes("traffic.pcap", 42)
| Parameter | Type | Description |
|---|---|---|
frame_number * | integer | |
pcap_file * | string |
wireshark_get_packet_context
[Context] View packets surrounding a specific frame (before and after). Useful for understanding what led to an error or what happened immediately after. Args: pcap_file: Path to capture file frame_number: The center packet number count: Number of packets to show before and after (default: 5) Returns: Tabular packet list centering on the target frame.
| Parameter | Type | Description |
|---|---|---|
frame_number * | integer | |
pcap_file * | string | |
count | integer |
wireshark_read_packets
[DEPRECATED] Read packet data in structured JSON format. WARNING: This tool can return very large, complex JSON. Prefer `wireshark_get_packet_list` and `wireshark_get_packet_details` for efficient analysis. Args: pcap_file: Path to capture file limit: Maximum packets to return (default: 100) offset: Skip first N packets (pagination) display_filter: Wireshark display filter (e.g. "tcp.port == 80") Returns: JSON array of packets with full layer details on success JSON error object o…
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
display_filter | string | |
limit | integer | |
offset | integer |
wireshark_extract_fields
[Tabular] Extract specific fields as comma/tab-separated data. Args: fields: Comma-separated field names (e.g. "ip.src,tcp.port,http.host") display_filter: Optional filter (e.g. "http.request.method == POST") limit: Max rows to return (default: 100) offset: Skip first N rows (pagination) Returns: Tabular text output or JSON error Errors: FileNotFound: pcap_file does not exist ExecutionError: Field extraction failed Example: wireshark_extract_fields("file.…
| Parameter | Type | Description |
|---|---|---|
fields * | string | |
pcap_file * | string | |
display_filter | string | |
limit | integer | |
offset | integer |
wireshark_list_ips
[Convenience] List all unique IP addresses in capture. Args: type: IP type to extract - 'src', 'dst', or 'both' Returns: Newline-separated list of unique IPs or JSON error Example: wireshark_list_ips("traffic.pcap", type="src")
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
type | string |
wireshark_search_packets
[Search] Find packets containing specific data. Args: pcap_file: Path to capture file match_pattern: Pattern to search for search_type: Search method - 'string', 'hex', 'regex' limit: Maximum matches to return (default: 50) scope: Search scope - 'bytes' (default), 'details', or 'filter' - 'bytes': Searches raw packet payload (frame contains) - 'details': Searches decoded text layer (frame matches) - 'filter': Uses standard Wireshark display filter syntax (e.g.…
| Parameter | Type | Description |
|---|---|---|
match_pattern * | string | |
pcap_file * | string | |
limit | integer | |
scope | string | |
search_type | string |
wireshark_follow_stream
[Stream] Reassemble and view complete stream content. Supports pagination to avoid token limits. Args: stream_index: Stream ID from conversations/stats protocol: Stream protocol - 'tcp', 'udp', 'tls', 'http', 'http2' output_mode: Output format - 'ascii', 'hex', 'raw' limit_lines: Max lines to return (default: 500) offset_lines: Skip first N lines (for pagination) search_content: Optional string to grep/search within the stream Returns: Reconstructed stream data or JSON error…
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
stream_index * | integer | |
limit_lines | integer | |
offset_lines | integer | |
output_mode | string | |
protocol | string | |
search_content | string |
wireshark_get_file_info
Get detailed metadata about a capture file. Uses capinfos to show: file type, packet count, duration, size, etc. Returns: Detailed file metadata or JSON error Errors: FileNotFound: pcap_file does not exist ToolNotFound: capinfos not available Example: wireshark_get_file_info("traffic.pcap")
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string |
wireshark_merge_pcaps
Merge multiple capture files into one. Args: output_file: Path for merged output file input_files: Comma-separated list of input file paths Returns: Success message or JSON error Errors: FileNotFound: One or more input files not found ToolNotFound: mergecap not available Example: wireshark_merge_pcaps("merged.pcap", "file1.pcap,file2.pcap,file3.pcap")
| Parameter | Type | Description |
|---|---|---|
input_files * | string | |
output_file * | string |
wireshark_decode_payload
[Utils] Decode common encodings (Base64, Hex, URL, Gzip, etc.). Args: data: The string to decode. encoding: Target encoding. Supported: 'base64', 'hex', 'url', 'rot13', 'gzip', 'deflate', 'html', 'unicode', 'quopri', 'ascii85'. Use 'auto' to try all and sort by readability. Returns: Decoded string (or JSON in 'auto' mode).
| Parameter | Type | Description |
|---|---|---|
data * | string | |
encoding | string |
wireshark_plot_traffic
[Visualization] Generate an ASCII bar chart of traffic volume (I/O Graph). Useful for identifying traffic spikes, DDoS start times, or silence patterns. Args: pcap_file: Path to pcap file interval: Time interval bucket in seconds (default: 1) Returns: String containing the ASCII chart
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string | |
interval | integer |
wireshark_plot_protocols
[Visualization] Generate an ASCII tree of protocol hierarchy. Shows the distribution of protocols (e.g., how much is HTTP vs DNS). Args: pcap_file: Path to pcap file Returns: String containing the ASCII tree
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string |
wireshark_security_audit
[Agent] One-call comprehensive security audit. Automatically runs 8 analysis phases internally and returns a structured security report with risk scoring. No manual tool-chaining needed. Phases: File summary → Protocol overview → Threat intelligence (URLhaus) → Credential exposure → Port scan detection → DNS anomaly detection → Cleartext protocol usage → Protocol anomalies (Expert Info) Args: pcap_file: Path to capture file Returns: Complete security audit report with risk level, findings…
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string |
wireshark_quick_analysis
[Agent] One-call traffic overview and analysis. Automatically gathers file info, protocol distribution, top talkers, conversations, hostnames, and anomalies into a single comprehensive report. Phases: File info → Protocol distribution → Top talkers → Top conversations → Key hostnames (HTTP + DNS) → Anomaly summary (Expert Info) Args: pcap_file: Path to capture file Returns: Complete traffic analysis report with suggested next steps. Example: wireshark_quick_analysis("capture.pcap…
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string |
wireshark_get_capabilities
Get the current Wireshark suite capabilities for this MCP server instance. Returns: Structured capability map for required, recommended, and optional tools Example: wireshark_get_capabilities()
wireshark_editcap_trim
Trim a capture file to a timestamp window using editcap. Args: input_file: Source capture file output_file: Destination capture file start_time: Optional inclusive start time in editcap format stop_time: Optional exclusive stop time in editcap format Returns: Success message or JSON error
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
output_file * | string | |
start_time | string | |
stop_time | string |
wireshark_editcap_split
Split a capture into multiple files using editcap. Args: input_file: Source capture file output_prefix: Output filename prefix or base path packets_per_file: Split after this many packets per file seconds_per_file: Split after this many seconds per file Returns: Success message or JSON error
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
output_prefix * | string | |
packets_per_file | integer | |
seconds_per_file | integer |
wireshark_editcap_time_shift
Shift packet timestamps by a relative number of seconds using editcap. Args: input_file: Source capture file output_file: Destination capture file seconds: Relative time adjustment in seconds Returns: Success message or JSON error
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
output_file * | string | |
seconds * | number |
wireshark_editcap_deduplicate
Remove duplicate packets using editcap's duplicate window matching. Args: input_file: Source capture file output_file: Destination capture file duplicate_window: Number of prior packets to compare against Returns: Success message or JSON error
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
output_file * | string | |
duplicate_window | integer |
wireshark_text2pcap_import
Convert an ASCII or hex dump into a capture file using text2pcap. Args: input_text_file: Source text or hexdump file output_file: Destination capture file encapsulation: Output link-layer encapsulation, default is ether timestamp_format: Optional strptime-compatible timestamp format ascii_mode: Enable ASCII dump detection when the input includes an ASCII column Returns: Success message or JSON error
| Parameter | Type | Description |
|---|---|---|
input_text_file * | string | |
output_file * | string | |
ascii_mode | boolean | |
encapsulation | string | |
timestamp_format | string |
wireshark_open_file
[Entry Point] Open a pcap file and activate relevant analysis tools. This is the recommended FIRST tool to call. It analyzes the capture file, detects what protocols are present, and dynamically enables the most relevant tools for your analysis. This keeps the tool list focused and efficient. After calling this tool, new protocol-specific tools will become available (e.g., HTTP extraction, DNS tunnel detection, TLS handshake analysis). Args: pcap_file: Path to the capture file (.pcap, .pcapng, etc.) Returns:…
| Parameter | Type | Description |
|---|---|---|
pcap_file * | string |