Wireshark MCP
Wraps tshark and the Wireshark CLI suite (capinfos, mergecap, editcap, dumpcap, text2pcap) to analyze .pcap/.pcapng captures: packet listing, details, byte views, stream following, field extraction, statistics and aggregations, protocol-specific dissectors, security detections (beaconing, DNS tunneling, exfiltration, ARP spoofing, YARA), decryption and decode-as overrides, plus live capture, merge, trim/split/dedup and export operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Wireshark MCP Analyze capture.pcap for suspicious DNS traffic"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Wireshark MCP — Painel Web Blue Team & Radar LAN
Painel web local-first (127.0.0.1:4173) integrado ao Wireshark-MCP.
Combina Radar LAN ativo (Camada 2/3/4) com triagem Blue Team baseada em evidências e integração opcional via JSON-RPC stdio com o servidor wireshark-mcp (tshark).
Principais Recursos
Estado Inicial Limpo (Zero Alucinação): Exibe apenas os dados reais da interface local, IP, sub-rede, gateway e status de conexão do
wireshark-mcp.Radar Topológico 360° (
<canvas>):Anel interno: Gateways / Roteadores
Anel intermediário: Computadores / Estações / Este Host
Anel externo: Demais dispositivos e MACs privados/randomizados (detecção pelo bit U/L
byte[0] & 0x02).
Triagem Blue Team + Gaveta Forense de Evidências:
Separação entre achados
confirmed(Confirmado) ecandidate(Candidato).Cada achado traz Observação, Impacto, Filtro de Exibição do Wireshark, Comando
tsharkequivalente e Mitigação.
Verificação Manual de Host & Auditoria Local:
Teste individual de IP e portas TCP personalizadas (
/api/radar/verify-host).Listagem de interfaces locais e portas em escuta (
ss -tuln).
Integração com Wireshark MCP (
stdio):Quando
wireshark-mcpetsharkestão instalados no ambiente, o painel conecta automaticamente e disponibiliza/api/mcp/interfacese/api/mcp/analyzepara arquivos.pcap/.pcapngempanel/data/captures/.
Related MCP server: mcp-wireshark
Estrutura de Diretórios
Wireshark-MCP/panel/
├── package.json
├── README.md
├── data/captures/ # Diretório confinado para capturas .pcap/.pcapng
├── server/
│ ├── index.js # Servidor HTTP (127.0.0.1:4173) e rotas /api/*
│ ├── radar.js # Motor de Radar LAN, detecção U/L e achados Blue Team
│ └── mcp-client.js # Cliente JSON-RPC 2.0 sobre stdio para wireshark-mcp
├── public/
│ ├── index.html # Interface principal + Gaveta Forense
│ ├── styles.css # Tema escuro SOC / Blue Team
│ └── app.js # Radar 360°, filtros, verificação e drawer
└── test/
└── radar.test.js # Testes automatizados (node --test)Como Executar
Não requer dependências externas de npm (usa apenas módulos nativos do Node.js 20+).
cd /home/wdson/Documentos/skill/Wireshark-MCP/panel
npm startAbra no navegador: http://127.0.0.1:4173
Variáveis de Ambiente Opcionais
Variável | Padrão | Descrição |
|
| Endereço de bind do painel |
|
| Porta HTTP do painel |
|
| Binário/comando do servidor Wireshark MCP |
|
| Argumentos passados ao |
Testes
cd /home/wdson/Documentos/skill/Wireshark-MCP/panel
npm testAvailable Tools
54 toolswireshark_aggregateCRead-only
[Primary statistics] Full-filter counts, groups, distinct values, numeric metrics, top-k, and time buckets. Field lists are comma-separated.
Inputs: pcap_file (required), top_k, sort_by, distinct, +8 more.
wireshark_analyze_protocolBRead-only
[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.
Inputs: protocol (required), pcap_file (required), limit.
wireshark_analyze_tcp_healthBRead-only
[TCP] Analyze TCP connection health (retransmissions, dup ACKs, zero window, resets).
Inputs: pcap_file (required).
wireshark_captureBDestructive
Capture live network traffic. capture_filter: BPF syntax. ring_buffer: "filesize:1024,files:5".
Inputs: interface (required), output_file (required), ring_buffer, packet_count, +2 more.
wireshark_caseCDestructive
[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
Inputs: action (required), text, target, case_id.
wireshark_decode_asCRead-only
[Dissection] Decode-as for non-standard ports. Rules: 'tcp.port==8080,http;udp.port==5353,dns'.
Inputs: pcap_file (required), decode_rules (required), limit, fields, +1 more.
wireshark_decrypt_tlsBRead-only
[Decrypt] Decrypt TLS traffic using SSLKEYLOGFILE, show HTTP data.
Inputs: pcap_file (required), keylog_file (required), display_filter.
wireshark_decrypt_wpaBRead-only
[Decrypt] Decrypt WPA/WPA2 traffic with passphrase (+SSID).
Inputs: pcap_file (required), wpa_passphrase (required), ssid, display_filter.
wireshark_detect_arp_spoofingBRead-only
[ARP] Detect potential ARP spoofing (duplicate IP-MAC, gratuitous floods, reply storms).
Inputs: pcap_file (required).
wireshark_detect_beaconingBRead-only
[Anomaly] Detect periodic communication patterns (C2 beacons) by analyzing connection timing intervals and jitter.
Inputs: pcap_file (required), max_jitter, min_connections.
wireshark_detect_dns_tunnelBRead-only
[Security] Detect DNS tunneling candidates (long query names, TXT abuse, high subdomain fanout).
Inputs: pcap_file (required).
wireshark_detect_dos_attackCRead-only
[Security] Detect DoS/DDoS traffic volume patterns (SYN flood, ICMP/UDP flood, DNS amplification).
Inputs: pcap_file (required).
wireshark_detect_exfiltrationARead-only
[Anomaly] Detect data exfiltration (large outbound transfers, DNS length anomalies, non-standard ports).
Inputs: pcap_file (required), limit.
wireshark_detect_port_scanARead-only
[Security] Detect port scanning (SYN, FIN, NULL, Xmas scans). threshold: min unique dst ports to flag.
Inputs: pcap_file (required), threshold.
wireshark_detect_protocol_anomaliesBRead-only
[Anomaly] Detect protocol anomalies (known protocols on non-standard ports, unusual protocol distributions).
Inputs: pcap_file (required), limit.
wireshark_editcap_deduplicateCDestructive
Remove duplicate packets within a sliding window (default: 5 packets).
Inputs: input_file (required), output_file (required), duplicate_window.
wireshark_editcap_splitCDestructive
Split a capture into smaller files by packet count or interval.
Inputs: input_file (required), output_prefix (required), packets_per_file, seconds_per_file.
wireshark_editcap_time_shiftCDestructive
Adjust all packet timestamps by a positive or negative offset in seconds.
Inputs: seconds (required), input_file (required), output_file (required).
wireshark_editcap_trimCDestructive
Trim capture to a timestamp window. Times in editcap format.
Inputs: input_file (required), output_file (required), stop_time, start_time.
wireshark_export_objectsBDestructive
[Export] Extract embedded files from traffic. protocol: 'http'|'smb'|'tftp'|'imf'|'dicom'.
Inputs: dest_dir (required), protocol (required), pcap_file (required).
wireshark_extract_credentialsARead-only
[Security] Scan for plaintext credentials (HTTP Basic Auth, FTP passwords, Telnet).
Inputs: pcap_file (required).
wireshark_extract_dns_queriesARead-only
[DNS] Extract DNS query details (name, type, response flag) as TSV.
Inputs: pcap_file (required), limit.
wireshark_extract_fieldsCRead-only
[Tabular] Extract fields as TSV. fields: comma-separated; limit/offset count lines including the header.
Inputs: fields (required), pcap_file (required), limit, offset, +1 more.
wireshark_extract_fingerprintsARead-only
[Forensics] Extract JA3/JA3S TLS fingerprints and optionally match local user-maintained lists. Treat matches as leads.
Inputs: pcap_file (required), limit.
wireshark_extract_framesADestructive
[File] Extract specific frame ranges to a new pcap. Ranges: '1-10 15 20-30'.
Inputs: pcap_file (required), output_file (required), frame_ranges (required).
wireshark_extract_http_requestsBRead-only
[HTTP] Extract HTTP request details (method, URI, host, user-agent) as TSV.
Inputs: pcap_file (required), limit.
wireshark_filter_saveBDestructive
Filter packets from a pcap and save to a new file using a Wireshark display filter.
Inputs: input_file (required), output_file (required), display_filter (required).
wireshark_flow_graphBRead-only
[Stats] Flow/sequence graph showing packet exchange. Types: 'any', 'tcp', 'icmp'.
Inputs: pcap_file (required), flow_type.
wireshark_follow_streamCRead-only
[Stream] Reassemble stream with pagination. protocol: tcp|udp|tls|http|http2. output_mode: ascii|hex|raw.
Inputs: pcap_file (required), stream_index (required), protocol, limit_lines, +3 more.
wireshark_geoip_enrichARead-only
[Enrichment] GeoIP lookup for unique IPs — country, city, ASN. Needs GeoLite2 DB.
Inputs: pcap_file (required), limit.
wireshark_get_capabilitiesARead-only
Get Wireshark suite capabilities for this MCP server instance (available tools and versions).
Inputs: no named parameters.
wireshark_get_file_infoARead-only
Get capture file metadata (type, packet count, duration, size) via capinfos.
Inputs: pcap_file (required).
wireshark_get_packet_bytesBRead-only
[Bytes] Raw hex/ASCII dump of a single packet.
Inputs: pcap_file (required), frame_number (required).
wireshark_get_packet_contextBRead-only
[Context] Packets surrounding a specific frame (count before and after).
Inputs: pcap_file (required), frame_number (required), count.
wireshark_get_packet_detailsARead-only
[Detail] Full JSON for one packet. layers: comma-separated protocol filter (e.g. "ip,tcp,http").
Inputs: pcap_file (required), frame_number (required), layers.
wireshark_get_packet_listCRead-only
[Summary] Packet list (top pane). TSV: No/Time/Src/Dst/Proto/Len/Info. custom_columns: comma-separated fields.
Inputs: pcap_file (required), limit, offset, custom_columns, +1 more.
wireshark_indexC
[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.
Inputs: pcap_file (required), sql, action, more_files, +2 more.
wireshark_list_interfacesARead-only
List available network interfaces for capture.
Inputs: no named parameters.
wireshark_merge_pcapsCDestructive
Merge multiple capture files into one. input_files: comma-separated paths.
Inputs: input_files (required), output_file (required).
wireshark_open_fileBRead-only
[Entry Point] Open a pcap and get protocol-aware tool recommendations. Returns protocols and relevant tools.
Inputs: pcap_file (required).
wireshark_quick_analysisCRead-only
[Agent] One-call traffic overview: file info, protocols, top talkers, conversations, hostnames, anomalies.
Inputs: pcap_file (required).
wireshark_read_packetsBRead-only
[DEPRECATED] JSON packet data. Use get_packet_list + get_packet_details instead.
Inputs: pcap_file (required), limit, offset, display_filter.
wireshark_scan_file_signaturesBRead-only
[Forensics] Count packets containing common file signatures. Hits require object extraction and verification.
Inputs: pcap_file (required).
wireshark_search_packetsCRead-only
[Search] Find packets by content.
Inputs: pcap_file (required), match_pattern (required), limit, scope, +1 more.
wireshark_set_protocol_prefsDRead-only
[Dissection] Protocol preference overrides. Prefs: 'tcp.desegment_tcp_streams:TRUE;http.ssl.port:8443'.
Inputs: prefs (required), pcap_file (required), limit, fields, +1 more.
wireshark_stats_conversationsBRead-only
[Conversations] Communication pairs and stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.
Inputs: pcap_file (required), type.
wireshark_stats_endpointsBRead-only
[Endpoints] List all endpoints and traffic stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.
Inputs: pcap_file (required), type.
wireshark_stats_expert_infoCRead-only
[Expert Info] Automatic anomaly detection: retransmissions, errors, warnings, protocol issues.
Inputs: pcap_file (required).
wireshark_stats_io_graphCRead-only
[I/O Graph] Traffic volume by time bucket, optionally split by semicolon-separated display filters.
Inputs: pcap_file (required), filters, interval.
wireshark_stats_protocol_hierarchyCRead-only
[PHS] Protocol hierarchy statistics showing distribution of protocols in the capture.
Inputs: pcap_file (required).
wireshark_stats_service_response_timeCRead-only
[SRT] Service response time statistics. protocol: 'http'|'dns'|'smb' etc.
Inputs: pcap_file (required), protocol.
wireshark_text2pcap_importBDestructive
Convert ASCII or hex dump into a capture file using text2pcap. encapsulation: link-layer type (default: ether).
Inputs: output_file (required), input_text_file (required), ascii_mode, encapsulation, +1 more.
wireshark_verify_ssl_decryptionCRead-only
[TLS] Verify TLS decryption with SSLKEYLOGFILE-format keylog file.
Inputs: pcap_file (required), keylog_file (required).
wireshark_yara_scanCDestructive
[Security] YARA scan exported files. Detects malware, webshells, shellcode. protocol: http|smb|tftp.
Inputs: pcap_file (required), dest_dir, protocol.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 54 tools
The tools are organized into clear functional clusters (packet reading, statistics, security detection, editcap file surgery, case management), and each description states its specific purpose. A few boundaries blur, e.g. wireshark_quick_analysis vs wireshark_open_file as entry points, wireshark_stats_expert_info vs wireshark_detect_protocol_anomalies, and wireshark_extract_http_requests/extract_dns_queries vs wireshark_analyze_protocol; the deprecated wireshark_read_packets also lingers alongside get_packet_list/get_packet_details.
All names share a wireshark_ prefix, snake_case, and readable verb_noun or noun_noun structure, with subsystem prefixes (stats_, detect_, extract_, editcap_, decrypt_) that group related tools predictably. Minor deviations exist (e.g. wireshark_case performing multiple operations via subcommands, text2pcap_import embedding a tool name), but the scheme is consistent overall.
54 tools is far beyond the 3-15 well-scoped range and creates a large surface an agent must navigate, with many near-sibling analysis and detection tools to choose among. The breadth is partly justified by covering capture, editing, statistics, forensics, and case management, but the set could be consolidated substantially.
The surface covers the full capture lifecycle: live capture, opening, merging/splitting/trimming, field extraction, stream reassembly, decryption, object export, YARA, and case tracking, with few dead ends. Minor gaps remain, such as HTTP response-side extraction (only requests are parsed) and limited packet-editing beyond trim/split/shift/dedupe.
Maintenance
Related MCP Connectors
34 security tools for AI agents: phishing links, exposure maps, DNS, SSL, PQC, history, pivots.
IP intelligence, network diagnostics, and AI service availability tools for AI agents.
ctlogs.dev searches the public Certificate Transparency logs, where every publicly trusted TLS certificate is recorded. Connected to it, an assistant can answer questions such as "which subdomains does example.com have", "who issued the certificates for this name" or "which domains does this company hold certificates for".
SEO & marketing toolkit for AI agents: GA4, Search Console, AdSense, GTM, PageSpeed, Trends.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with direct access to Wireshark network analysis capabilities, enabling AI-powered network troubleshooting, packet analysis, and network monitoring through a secure interface.14MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to analyze, filter, and capture network traffic using Wireshark/tshark, allowing natural language interaction with packet captures.1470MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze network traffic using Wireshark/tshark, providing packet statistics, protocol analysis, and anomaly detection through natural language interaction.75MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with tshark and related command-line tools for live packet capture, PCAP analysis, filtering, stream following, and capture file merging.1MIT