Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WIRESHARK_MCP_ALLOWED_DIRSNoDirectory (or directories) that file-writing tools are allowed to write to. Since 3.0, tools that create files fail closed until this names existing directories.
WIRESHARK_MCP_MAX_RESULT_CHARSNoRaise or lower the ceiling for bounded tool results (default 8000 characters). Output over this is truncated head-and-tail with a marker.8000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Analyze packet captures with the advertised Wireshark tools. Start with wireshark_open_file for capture context. For full-capture totals, grouped distributions, distinct counts, top-k results, or time buckets, prefer wireshark_aggregate over shell pipelines or paginated extraction. It scans the full filter automatically; top_k limits only returned groups. Use packet-level tools afterward to verify the highest-value findings. For a large capture that needs several capture-wide questions, run wireshark_index once first.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
wireshark_get_capabilitiesA

Get Wireshark suite capabilities for this MCP server instance (available tools and versions).

wireshark_get_file_infoA

Get capture file metadata (type, packet count, duration, size) via capinfos.

wireshark_merge_pcapsC

Merge multiple capture files into one. input_files: comma-separated paths.

wireshark_text2pcap_importB

Convert ASCII or hex dump into a capture file using text2pcap. encapsulation: link-layer type (default: ether).

wireshark_list_interfacesA

List available network interfaces for capture.

wireshark_captureB

Capture live network traffic. capture_filter: BPF syntax. ring_buffer: "filesize:1024,files:5".

wireshark_filter_saveB

Filter packets from a pcap and save to a new file using a Wireshark display filter.

wireshark_editcap_trimC

Trim capture to a timestamp window. Times in editcap format.

wireshark_editcap_splitC

Split a capture into smaller files by packet count or interval.

wireshark_editcap_time_shiftC

Adjust all packet timestamps by a positive or negative offset in seconds.

wireshark_editcap_deduplicateC

Remove duplicate packets within a sliding window (default: 5 packets).

wireshark_aggregateC

[Primary statistics] Full-filter counts, groups, distinct values, numeric metrics, top-k, and time buckets. Field lists are comma-separated.

wireshark_stats_protocol_hierarchyC

[PHS] Protocol hierarchy statistics showing distribution of protocols in the capture.

wireshark_stats_endpointsB

[Endpoints] List all endpoints and traffic stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.

wireshark_stats_conversationsB

[Conversations] Communication pairs and stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.

wireshark_stats_io_graphC

[I/O Graph] Traffic volume by time bucket, optionally split by semicolon-separated display filters.

wireshark_stats_expert_infoC

[Expert Info] Automatic anomaly detection: retransmissions, errors, warnings, protocol issues.

wireshark_stats_service_response_timeC

[SRT] Service response time statistics. protocol: 'http'|'dns'|'smb' etc.

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.

wireshark_get_packet_listC

[Summary] Packet list (top pane). TSV: No/Time/Src/Dst/Proto/Len/Info. custom_columns: comma-separated fields.

wireshark_get_packet_detailsA

[Detail] Full JSON for one packet. layers: comma-separated protocol filter (e.g. "ip,tcp,http").

wireshark_get_packet_bytesB

[Bytes] Raw hex/ASCII dump of a single packet.

wireshark_get_packet_contextB

[Context] Packets surrounding a specific frame (count before and after).

wireshark_read_packetsB

[DEPRECATED] JSON packet data. Use get_packet_list + get_packet_details instead.

wireshark_extract_fieldsC

[Tabular] Extract fields as TSV. fields: comma-separated; limit/offset count lines including the header.

wireshark_search_packetsC

[Search] Find packets by content.

wireshark_follow_streamC

[Stream] Reassemble stream with pagination. protocol: tcp|udp|tls|http|http2. output_mode: ascii|hex|raw.

wireshark_quick_analysisC

[Agent] One-call traffic overview: file info, protocols, top talkers, conversations, hostnames, anomalies.

wireshark_decode_asC

[Dissection] Decode-as for non-standard ports. Rules: 'tcp.port==8080,http;udp.port==5353,dns'.

wireshark_set_protocol_prefsD

[Dissection] Protocol preference overrides. Prefs: 'tcp.desegment_tcp_streams:TRUE;http.ssl.port:8443'.

wireshark_decrypt_tlsB

[Decrypt] Decrypt TLS traffic using SSLKEYLOGFILE, show HTTP data.

wireshark_decrypt_wpaB

[Decrypt] Decrypt WPA/WPA2 traffic with passphrase (+SSID).

wireshark_extract_framesA

[File] Extract specific frame ranges to a new pcap. Ranges: '1-10 15 20-30'.

wireshark_flow_graphB

[Stats] Flow/sequence graph showing packet exchange. Types: 'any', 'tcp', 'icmp'.

wireshark_caseC

[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_protocolB

[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_healthB

[TCP] Analyze TCP connection health (retransmissions, dup ACKs, zero window, resets).

wireshark_detect_arp_spoofingB

[ARP] Detect potential ARP spoofing (duplicate IP-MAC, gratuitous floods, reply storms).

wireshark_detect_beaconingB

[Anomaly] Detect periodic communication patterns (C2 beacons) by analyzing connection timing intervals and jitter.

wireshark_detect_dns_tunnelB

[Security] Detect DNS tunneling candidates (long query names, TXT abuse, high subdomain fanout).

wireshark_detect_dos_attackC

[Security] Detect DoS/DDoS traffic volume patterns (SYN flood, ICMP/UDP flood, DNS amplification).

wireshark_detect_exfiltrationA

[Anomaly] Detect data exfiltration (large outbound transfers, DNS length anomalies, non-standard ports).

wireshark_detect_port_scanA

[Security] Detect port scanning (SYN, FIN, NULL, Xmas scans). threshold: min unique dst ports to flag.

wireshark_detect_protocol_anomaliesB

[Anomaly] Detect protocol anomalies (known protocols on non-standard ports, unusual protocol distributions).

wireshark_export_objectsB

[Export] Extract embedded files from traffic. protocol: 'http'|'smb'|'tftp'|'imf'|'dicom'.

wireshark_extract_credentialsA

[Security] Scan for plaintext credentials (HTTP Basic Auth, FTP passwords, Telnet).

wireshark_extract_dns_queriesA

[DNS] Extract DNS query details (name, type, response flag) as TSV.

wireshark_extract_fingerprintsA

[Forensics] Extract JA3/JA3S TLS fingerprints and optionally match local user-maintained lists. Treat matches as leads.

wireshark_extract_http_requestsB

[HTTP] Extract HTTP request details (method, URI, host, user-agent) as TSV.

wireshark_geoip_enrichA

[Enrichment] GeoIP lookup for unique IPs — country, city, ASN. Needs GeoLite2 DB.

wireshark_scan_file_signaturesB

[Forensics] Count packets containing common file signatures. Hits require object extraction and verification.

wireshark_verify_ssl_decryptionC

[TLS] Verify TLS decryption with SSLKEYLOGFILE-format keylog file.

wireshark_yara_scanC

[Security] YARA scan exported files. Detects malware, webshells, shellcode. protocol: http|smb|tftp.

wireshark_open_fileB

[Entry Point] Open a pcap and get protocol-aware tool recommendations. Returns protocols and relevant tools.

Prompts

Interactive templates invoked by user choice

NameDescription
security_auditComprehensive security audit of a network capture file.
performance_analysisNetwork performance analysis of a capture file.
incident_responseIncident response investigation workflow.
traffic_overviewQuick traffic overview and summary.
analyze_with_hypothesisHypothesis-driven traffic analysis — form, test, and refine hypotheses systematically.
investigate_alertInvestigate a single IOC/alert and expand the analysis outward.

Resources

Contextual data attached and managed by the client

NameDescription
get_display_filter_referenceWireshark display filter syntax cheatsheet with common examples.
get_protocol_field_referenceCommon Wireshark protocol field names for use in filters and extraction.
get_usage_guideWireshark MCP usage guide with recommended analysis workflows.
get_capabilitiesMachine-readable capability summary for the current Wireshark toolchain.

TDQS

C2.9/5.0

Scored across 54 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count2/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo recent community issues