Wireshark

Security

Professional network analysis with tshark. Security audits, deep-dives, and threat detection.

Your AI app calls the Wireshark MCP server, which does the security work and sends the result back to the chat.

About Wireshark

Wireshark is a community MCP server from bx33661, filed in our directory under security. Professional network analysis with tshark. Security audits, deep-dives, and threat detection.

Wireshark runs on your own machine: your AI app starts it with the command uvx wireshark-mcp==0.6.5 and talks to it over standard input and output.

Wireshark is listed in the official MCP registry as io.github.bx33661/wireshark-mcp, version 0.6.5.

At a glance

Publisher
bx33661 (community)
Runs
Locally on your machine
Install from
Python package on PyPI: wireshark-mcp
Written in
Python
License
MIT
GitHub stars
425
Official MCP registry
io.github.bx33661/wireshark-mcp

How to set up Wireshark

  1. Install uv on the machine that runs your AI app, because Wireshark starts with uvx and fetches its Python package on first run.
  2. Check the Wireshark README for keys or settings; the registry lists none that Wireshark requires.
  3. Add Wireshark to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Wireshark tools to confirm the connection.
  5. Run one read-only task with Wireshark first, and keep your app asking before each tool call until the results look right.

Wireshark compared with similar servers

  • Lasso Security Gateway by lasso-security has fewer GitHub stars than Wireshark (402 against 425); both are community servers, and both run locally.
  • Evil Winrm Py by adityatelange has more GitHub stars than Wireshark (429 against 425); both are community servers, and both run locally.
  • API by vulnersCom has fewer GitHub stars than Wireshark (380 against 425); both are community servers, and both run locally.

Before you connect Wireshark

  • Give Wireshark its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Wireshark tool call until you trust what it does with them.
  • Treat text that Wireshark fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Wireshark on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Wireshark

How marketing and sales teams put Wireshark to work, by company size. Pick the size closest to yours and start Wireshark on one use case.

Small business

  • A small business can use Wireshark to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Owners can ask Wireshark whether a tool or vendor has known issues before connecting it to customer data.
  • Wireshark runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can use Wireshark to review what each connected app can access and remove keys nobody uses.
  • Security and web teams can connect Wireshark to scan campaign sites and forms before launch, not after an incident.
  • Start Wireshark on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Wireshark in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Large orgs can use Wireshark to keep evidence for audits, showing which agents reached which data and when.
  • Wireshark is a community server, so have security review the code and pin a version before Wireshark touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Wireshark README

From bx33661/Wireshark-MCP on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Wireshark MCP

Give your AI assistant a packet analyzer.

Drop a .pcap file, ask questions in plain English, get answers backed by real tshark data.

English • 中文 • Docs (github.com/bx33661/Wireshark-MCP/blob/main/docs/README.md) • Changelog • Roadmap • Contributing

What is this?

An MCP server that wraps tshark (and optional Wireshark suite tools) into a structured analysis interface. Works with Claude Desktop, Claude Code, Cursor, VS Code, and 18+ other MCP clients.

You:    "Find all DNS queries going to suspicious domains in this capture."
Claude: [calls wireshark_extract_dns_queries → wireshark_detect_dns_tunnel]
        "Found repeated high-entropy DNS queries consistent with tunneling: ..."
New in 4.1
  • Hierarchy-aware triage & calibrated detectors. wireshark_open_file preserves protocol hierarchy counts and dominant payload protocols (guiding direct inspection of uncovered dissectors like DoIP/UDS instead of running generic IP/TCP checklists), gates geoip/yara on runtime availability, separates internal RFC1918 bulk flows from zeroed exfiltration scans, avoids confirmed negative claims at zero denominator, and distinguishes dissected single-flow UDP traffic from UDP floods.
  • Single-pass TCP health & cleaner tool envelopes. wireshark_analyze_tcp_health runs in 1 pass instead of 9 (adding no-SYN, unidirectional, and oversized-MSS segment checks), wireshark_quick_analysis includes exact -z expert counts, and TSharkClient strips host-global baseline startup stderr noise.
  • Index schema v2, extcap backend & hardening. RFC-4180 quoted TSV index exports (SCHEMA_VERSION = 2), WIRESHARK_MCP_CAPTURE_BACKEND=tshark for extcap interfaces, contiguous prefix result capping, strict path/pref sandboxing, and cross-platform installer/plugin isolation. Full notes: 4.1.0 changelog.
New in 4.0
  • Capture index. With the optional [index] extra, wireshark_index dissects a capture once into a local DuckDB file. Later wireshark_aggregate and wireshark_extract_fields calls read it with answers identical to tshark: 408× faster at 1 GB, and at 10 GB it answers questions the tshark path stops on. It also adds read-only SQL, capture sets, first-seen timelines, capture or window diffs and Parquet export. See Capture index.
  • One finding shape. Every detector returns data.findings with a stable id, evidence anchors, a native tshark command to re-check it and candidate ATT&CK techniques.
  • Case files. wireshark_case keeps captures, recorded results, findings and analyst verdicts in a JSON case file, so a long investigation survives a context reset. See Findings and cases.

Upgrading from 3.x needs no configuration change. Scripts that parsed the plain-text output of wireshark_detect_beaconing, wireshark_detect_exfiltration, wireshark_detect_protocol_anomalies, wireshark_detect_arp_spoofing, wireshark_yara_scan or wireshark_quick_analysis should read the JSON envelope instead. Full notes: 4.0.0 changelog.

Install

Claude Code / Codex plugin route

Prerequisites: uv and Wireshark CLI (tshark). The plugin includes this project and both skills; the client runs the locked Python project through uv over stdio. It does not install Wireshark or capture drivers.

From a checkout containing these plugin manifests, choose your client:

# Codex
codex plugin marketplace add .
codex plugin add wireshark-mcp@wireshark-mcp

# Claude Code
claude plugin marketplace add .
claude plugin install wireshark-mcp@wireshark-mcp

See plugin distribution for local installation, old-version refresh, environment settings and the GitHub entrypoint after publication. Choose this route or the traditional registration route below, not both.

Traditional Python package route

Prerequisites: Python 3.10+ and Wireshark with tshark on PATH.

Wireshark MCP runs on the stable MCP Python SDK 2.x line (mcp>=2.2.0,<3).

pip install wireshark-mcp
wireshark-mcp install   # choose from detected MCP clients

For scripts/non-interactive terminals, select clients explicitly. Preview before installing into the current project:

wireshark-mcp install --client codex --scope project --dry-run
wireshark-mcp install --client codex --scope project

The default scope is global. Repeat --client or explicitly use --client all. Restart the client to load configuration. See the installation guide for updates, removal, backups and exit codes.

Optional extras add features on top of the base install: index (DuckDB capture index for large captures), geoip (GeoIP enrichment) and yara (YARA scanning), or all:

pip install 'wireshark-mcp[index]'

The container image and the plugin route include [index] (while geoip and yara remain optional). Every setting, extra and limit is listed in the configuration reference.

The project also ships MCP and full TShark CLI analysis skills; see skill discovery and usage.

Run wireshark-mcp doctor if anything looks off. See docs/manual-configuration.md for manual setup or platform-specific notes.

Quick Start

Point your AI client at a .pcap file and try:

Analyze capture.pcap using the Wireshark MCP tools.
Start with wireshark_open_file, then run wireshark_quick_analysis.
Use wireshark_aggregate for any capture-wide count or distribution.
Write findings to report.md.

For a large capture (~20 MB+ / ~50k+ frames), 4+ repeated capture-wide aggregations on the same file, or multi-capture sets, build the index first and keep the investigation in a case file (for 1–3 queries on small captures, call wireshark_aggregate directly):

Index big.pcapng with wireshark_index, then use wireshark_aggregate and
wireshark_index action="timeline" to find when 10.0.0.5 first appeared.
Open a case with wireshark_case, record every detector result you rely on,
and verify each conclusion with wireshark_get_packet_details.

Tools

54 tools, each backed by real tshark output, organized into categories:

Category Highlights Count
Entry & Workflow wireshark_open_file, wireshark_quick_analysis, wireshark_case (persistent investigation case files) 3
Packet Analysis Packet list, details, bytes, context, stream follow, search, file info 8
Data Extraction HTTP requests, DNS queries, arbitrary fields, object export 4
Statistics Aggregate/group/distinct/top-k/time buckets, protocol hierarchy, endpoints, conversations, I/O graph, expert info, service response time, flow graph 8
Security & Anomaly Credential scan, port scan, DNS tunnel, DoS, beaconing, exfiltration, protocol anomalies, YARA 8
Protocol Analysis wireshark_analyze_protocol (25 protocols incl. BLE pairing, scanner detection, GATT timeline with handle labels, connection lifecycle), TCP health, ARP spoofing 3
Decrypt & Dissection TLS/WPA decrypt, decryption check, decode-as, protocol preferences 5
Forensics & Enrichment TLS fingerprints, file signature scan, GeoIP 3
File Ops, Capture & Suite Live capture, interfaces, merge, filter-save, editcap trim/split/dedup/time-shift, frame extract, text2pcap, capabilities 11
Capture Index (optional [index] extra) wireshark_index: one tshark pass into a local DuckDB file; wireshark_aggregate and wireshark_extract_fields reuse it. Read-only SQL, multi-capture sets, first-seen timelines, capture/window diffs and Parquet export 1

One tool covers 25 protocols rather than 25 tools covering one each: wireshark_analyze_protocol takes a protocol argument (tls_handshakes, mqtt, modbus, s7comm, zigbee, wifi, rtp, kerberos, …) and applies the right fields and display filter for it. The field names are the point, s7comm.param.item.dbnum is not something a caller should have to guess, and a wrong guess returns an empty result that reads like a clean capture.

The server starts with only tshark required. Optional tools (capinfos, mergecap, editcap, dumpcap, text2pcap) are auto-detected and enable extra features when present.

Context cost

The tool list travels in the prompt prefix of every request your client sends, so its size is a fixed per-request cost. The default surface is ~23 KB, about 9 KB of parameter schema, 5 KB of descriptions, and 3 KB of read/write annotations, and it is byte-identical across restarts so clients can cache the prefix rather than re-reading it each session.

If your client never captures live traffic or writes pcaps, --profile advertises less:

Profile Tools Payload Drops
full (default) 54 ~23 KB nothing
analysis 42 ~18 KB live capture, interface listing, all caller-directed file-writing tools
core 34 ~15 KB the above, plus decryption, dissection overrides, and low-level views
wireshark-mcp serve --profile core

Runtime prompts and protocol recommendations respect the selected profile. Static guides may describe full-only workflows, but the server never recommends an excluded tool during capture discovery.

Tool results are bounded too, since a result stays in the conversation for the rest of the session. Output over 8000 characters is bounded: structured lists/dicts are trimmed by item count, multi-line text keeps a contiguous leading prefix so offset / limit / display_filter paging has no gap, and single-line prose is trimmed head-and-tail. Raise or lower the ceiling with:

export WIRESHARK_MCP_MAX_RESULT_CHARS=16000

Every tool also declares whether it reads or writes, so clients can auto-approve the 41 read-only analysis tools and still prompt for the 12 that create files (live capture, merge, filter-save, editcap, text2pcap, frame extract, object export, case files). wireshark_index is marked non-destructive: it writes only the server's own index cache.

Since 3.0, those tools fail closed until WIRESHARK_MCP_ALLOWED_DIRS names existing directories. Remote HTTP/SSE binding also stays loopback-only unless --allow-insecure-http is explicitly supplied behind a trusted authenticated TLS proxy. See the 3.0 security migration guide.

Documentation

Topic Link
Documentation index docs/README.md
Configuration reference (extras, environment variables, limits) docs/configuration.md
Capture-wide aggregation docs/aggregation.md
Capture index (DuckDB) docs/capture-index.md
Findings and case files docs/findings-and-cases.md
Install, update and uninstall docs/installation.md
Platform setup (macOS/Linux/Windows) docs/platform-validation.md
Manual client configuration docs/manual-configuration.md
Deployment scenarios docs/deployment-scenarios.md
3.0 security migration docs/security-hardening-v3.md
Prompt templates docs/prompt-engineering.md
Architecture docs/architecture.md
Release checklist docs/release-checklist.md
Contributing CONTRIBUTING.md
Changelog CHANGELOG.md
Feature roadmap ROADMAP.md
Security policy SECURITY.md

Development

uv sync --group dev --extra index
uv run python -m pytest
uv run python -m ruff check src/ tests/

See CONTRIBUTING.md for the full guide.

MIT License · Report a Bug

Questions about Wireshark

What is the Wireshark MCP server?

Professional network analysis with tshark. Security audits, deep-dives, and threat detection. Wireshark is maintained by bx33661 on GitHub at bx33661/Wireshark-MCP, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Wireshark MCP server?

Add Wireshark to your AI app's MCP config with the command uvx wireshark-mcp==0.6.5. In Claude Code, run claude mcp add --transport stdio wireshark -- uvx wireshark-mcp==0.6.5. To run Wireshark this way you need uv installed.

Does Wireshark need an API key?

The registry lists no required keys for Wireshark. Check the Wireshark README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Wireshark an official MCP server?

No. Wireshark is a community server maintained by bx33661. Community servers can be excellent; read the code and the open issues before you give Wireshark access to company data.

What license is Wireshark under?

Wireshark is released under the MIT license, according to its GitHub repository. The license covers the code of Wireshark; the service it connects to has its own terms.