# bx33661/Wireshark-MCP [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/bx33661/Wireshark-MCP  
**GitHub Stars:** 408  
**Views:** 18  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bx33661-wireshark-mcp

## Description
Wireshark network packet analysis MCP Server with capture, protocol stats, field extraction, and security analysis capabilities.

## Tools
Capabilities this server exposes over MCP:

- **wireshark_get_capabilities** — Get Wireshark suite capabilities for this MCP server instance (available tools and versions).
- **wireshark_get_file_info** — Get capture file metadata (type, packet count, duration, size) via capinfos.
- **wireshark_merge_pcaps** — Merge multiple capture files into one. input_files: comma-separated paths.
- **wireshark_text2pcap_import** — Convert ASCII or hex dump into a capture file using text2pcap. encapsulation: link-layer type (default: ether).
- **wireshark_list_interfaces** — List available network interfaces for capture.
- **wireshark_capture** — Capture live network traffic. capture_filter: BPF syntax. ring_buffer: "filesize:1024,files:5".
- **wireshark_filter_save** — Filter packets from a pcap and save to a new file using a Wireshark display filter.
- **wireshark_editcap_trim** — Trim capture to a timestamp window. Times in editcap format.
- **wireshark_editcap_split** — Split a capture into smaller files by packet count or interval.
- **wireshark_editcap_time_shift** — Adjust all packet timestamps by a positive or negative offset in seconds.
- **wireshark_editcap_deduplicate** — Remove duplicate packets within a sliding window (default: 5 packets).
- **wireshark_aggregate** — [Primary statistics] Full-filter counts, groups, distinct values, numeric metrics, top-k, and time buckets. Field lists are comma-separated.
- **wireshark_stats_protocol_hierarchy** — [PHS] Protocol hierarchy statistics showing distribution of protocols in the capture.
- **wireshark_stats_endpoints** — [Endpoints] List all endpoints and traffic stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.
- **wireshark_stats_conversations** — [Conversations] Communication pairs and stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.
- **wireshark_stats_io_graph** — [I/O Graph] Traffic volume by time bucket, optionally split by semicolon-separated display filters.
- **wireshark_stats_expert_info** — [Expert Info] Automatic anomaly detection: retransmissions, errors, warnings, protocol issues.
- **wireshark_stats_service_response_time** — [SRT] Service response time statistics. protocol: 'http'|'dns'|'smb' etc.
- **wireshark_index** — [Index] Build once; aggregate/extract_fields reuse it. more_files: extra captures (capture_id). query: SELECT on packets/pkt/flows/captures. timeline: first/last seen. diff: vs more_files/compare_filter. export: Parquet.
- **wireshark_get_packet_list** — [Summary] Packet list (top pane). TSV: No/Time/Src/Dst/Proto/Len/Info. custom_columns: comma-separated fields.
- **wireshark_get_packet_details** — [Detail] Full JSON for one packet. layers: comma-separated protocol filter (e.g. "ip,tcp,http").
- **wireshark_get_packet_bytes** — [Bytes] Raw hex/ASCII dump of a single packet.
- **wireshark_get_packet_context** — [Context] Packets surrounding a specific frame (count before and after).
- **wireshark_read_packets** — [DEPRECATED] JSON packet data. Use get_packet_list + get_packet_details instead.
- **wireshark_extract_fields** — [Tabular] Extract fields as TSV. fields: comma-separated; limit/offset count lines including the header.
- **wireshark_search_packets** — [Search] Find packets by content.
- **wireshark_follow_stream** — [Stream] Reassemble stream with pagination. protocol: tcp|udp|tls|http|http2. output_mode: ascii|hex|raw.
- **wireshark_quick_analysis** — [Agent] One-call traffic overview: file info, protocols, top talkers, conversations, hostnames, anomalies.
- **wireshark_decode_as** — [Dissection] Decode-as for non-standard ports. Rules: 'tcp.port==8080,http;udp.port==5353,dns'.
- **wireshark_set_protocol_prefs** — [Dissection] Protocol preference overrides. Prefs: 'tcp.desegment_tcp_streams:TRUE;http.ssl.port:8443'.
- **wireshark_decrypt_tls** — [Decrypt] Decrypt TLS traffic using SSLKEYLOGFILE, show HTTP data.
- **wireshark_decrypt_wpa** — [Decrypt] Decrypt WPA/WPA2 traffic with passphrase (+SSID).
- **wireshark_extract_frames** — [File] Extract specific frame ranges to a new pcap. Ranges: '1-10 15 20-30'.
- **wireshark_flow_graph** — [Stats] Flow/sequence graph showing packet exchange. Types: 'any', 'tcp', 'icmp'.
- **wireshark_case** — [Case] Saved investigation. create(text=title,target=pcaps) record(text=tool JSON) verdict(target=finding id,text=confirmed|dismissed|open: note) note show report list
- **wireshark_analyze_protocol** — [Protocol] Analyze one protocol with preset fields and filter. Returns a summary and bounded rows; BLE values add device inventory, scanners, GATT timeline, connection lifecycle, pairing.
- **wireshark_analyze_tcp_health** — [TCP] Analyze TCP connection health (retransmissions, dup ACKs, zero window, resets).
- **wireshark_detect_arp_spoofing** — [ARP] Detect potential ARP spoofing (duplicate IP-MAC, gratuitous floods, reply storms).
- **wireshark_detect_beaconing** — [Anomaly] Detect periodic communication patterns (C2 beacons) by analyzing connection timing intervals and jitter.
- **wireshark_detect_dns_tunnel** — [Security] Detect DNS tunneling candidates (long query names, TXT abuse, high subdomain fanout).
- **wireshark_detect_dos_attack** — [Security] Detect DoS/DDoS traffic volume patterns (SYN flood, ICMP/UDP flood, DNS amplification).
- **wireshark_detect_exfiltration** — [Anomaly] Detect data exfiltration (large outbound transfers, DNS length anomalies, non-standard ports).
- **wireshark_detect_port_scan** — [Security] Detect port scanning (SYN, FIN, NULL, Xmas scans). threshold: min unique dst ports to flag.
- **wireshark_detect_protocol_anomalies** — [Anomaly] Detect protocol anomalies (known protocols on non-standard ports, unusual protocol distributions).
- **wireshark_export_objects** — [Export] Extract embedded files from traffic. protocol: 'http'|'smb'|'tftp'|'imf'|'dicom'.
- **wireshark_extract_credentials** — [Security] Scan for plaintext credentials (HTTP Basic Auth, FTP passwords, Telnet).
- **wireshark_extract_dns_queries** — [DNS] Extract DNS query details (name, type, response flag) as TSV.
- **wireshark_extract_fingerprints** — [Forensics] Extract JA3/JA3S TLS fingerprints and optionally match local user-maintained lists. Treat matches as leads.
- **wireshark_extract_http_requests** — [HTTP] Extract HTTP request details (method, URI, host, user-agent) as TSV.
- **wireshark_geoip_enrich** — [Enrichment] GeoIP lookup for unique IPs — country, city, ASN. Needs GeoLite2 DB.
- **wireshark_scan_file_signatures** — [Forensics] Count packets containing common file signatures. Hits require object extraction and verification.
- **wireshark_verify_ssl_decryption** — [TLS] Verify TLS decryption with SSLKEYLOGFILE-format keylog file.
- **wireshark_yara_scan** — [Security] YARA scan exported files. Detects malware, webshells, shellcode. protocol: http|smb|tftp.
- **wireshark_open_file** — [Entry Point] Open a pcap and get protocol-aware tool recommendations. Returns protocols and relevant tools.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "wireshark-mcp": {
    "command": "uvx",
    "args": ["wireshark-mcp"]
  }
}
```

## Documentation

## What bx33661/Wireshark-MCP MCP server does

bx33661/Wireshark-MCP connects MCP clients to the Wireshark command-line analysis stack, primarily through `tshark`. It accepts capture files for inspection and can also discover interfaces and capture live traffic. Results are returned through structured MCP tool responses rather than requiring an analyst to operate the Wireshark desktop application.

The server covers both routine packet analysis and security investigation. It can report capture metadata, show packet summaries and detailed dissections, extract protocol fields, search packet content, reassemble supported streams, and inspect raw packet bytes. Security-oriented workflows include expert information, anomaly review, TLS decryption with an SSL key log, and traffic overviews.

## How it works

A client calls tools with capture paths, display filters, field lists, protocol types, packet numbers, or other analysis parameters. Capture-wide operations include protocol hierarchy, endpoints, conversations, I/O graphs, service response times, filtered counts, groups, distinct values, numeric metrics, top-k results, and time buckets.

Packet-level tools provide different levels of detail: `wireshark_get_packet_list` returns a tabular summary, `wireshark_get_packet_details` returns selected protocol layers as JSON, and `wireshark_get_packet_bytes` returns a hex/ASCII representation. `wireshark_get_packet_context` adds surrounding frames, while `wireshark_follow_stream` supports TCP, UDP, TLS, HTTP, and HTTP/2 with ASCII, hex, or raw output modes.

Dissection can be adjusted with decode-as rules and protocol preference overrides. The server can also decrypt TLS traffic when suitable key material is available through `SSLKEYLOGFILE`.

## Setup and configuration

The traditional installation requires Python 3.10 or newer and Wireshark with `tshark` available on `PATH`. Install the Python package with `pip install wireshark-mcp`, then run `wireshark-mcp install` to select MCP clients and write their configuration. The client must be restarted after configuration changes.

Claude Code and Codex can use the plugin route, which requires `uv` and `tshark`. That route includes the Python project but does not install Wireshark or capture drivers. Optional package extras include `index`, `geoip`, and `yara`; the `index` extra adds a DuckDB-backed capture index for large captures.

Run `wireshark-mcp doctor` to check the installation. Optional suite programs such as `capinfos`, `mergecap`, `editcap`, `dumpcap`, and `text2pcap` are detected when available and unlock related operations.

## Tools and capabilities

- Inspect file type, packet count, duration, and size with `wireshark_get_file_info`.
- List interfaces and perform live captures with BPF filters and ring-buffer settings.
- Merge, filter-save, trim, split, time-shift, deduplicate, and import capture data.
- Extract fields such as IP addresses, ports, and HTTP hosts in tabular form.
- Analyze protocol distributions, endpoints, conversations, traffic graphs, expert information, and service response times.
- Search packets, inspect context and bytes, follow streams, decode non-standard ports, and override protocol preferences.

`wireshark_read_packets` is deprecated; packet lists and detailed packet inspection are the preferred alternatives.

## Limitations and notes

The base server depends on `tshark`; several file-manipulation features depend on additional Wireshark command-line programs. Live capture also depends on the interfaces and capture permissions available on the host. TLS decryption requires usable SSL key-log data. The optional capture index, GeoIP enrichment, and YARA scanning features require their corresponding package extras.

_Full upstream README: https://allmcps.com/mcp/bx33661-wireshark-mcp/readme_

