Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keySecurity

Wireshark MCP

Lets your AI agent analyze network capture files with tshark, find threats and answer questions about packets.

371 stars on GitHubby bx33661License MITUpdated 22 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add wireshark -- uvx wireshark-mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Analyze capture.pcap and write the findings to report.md.
Find all DNS queries going to suspicious domains in this capture.

What it is

Wireshark MCP wraps tshark and optional Wireshark tools into 54 analysis tools. Drop a .pcap file, ask questions in plain English and get answers backed by real tshark output. It covers packets, statistics, protocol analysis, security detectors and forensics.

What it can do

  • wireshark_open_file: open a capture
  • wireshark_quick_analysis: first overview
  • wireshark_aggregate: counts and distributions across a capture
  • wireshark_extract_fields: pull fields from packets
  • wireshark_analyze_protocol: 25 protocols such as mqtt, modbus and kerberos
  • wireshark_detect_dns_tunnel: spot DNS tunneling
  • wireshark_index: DuckDB index for large captures
  • wireshark_case: keep an investigation in a case file

When to use

  • β€ΊWhen you want to find suspicious DNS queries in a capture.
  • β€ΊWhen you need to investigate a large pcap over several sessions.
  • β€ΊWhen you want a report of findings with the tshark command to re-check each one.

What you need

Python 3.10 or newer and Wireshark with tshark on your PATH. Install with pip install wireshark-mcp and run wireshark-mcp install, or use the Claude Code or Codex plugin with uv.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes, it is MIT licensed and published on PyPI.

Does it need Wireshark?

Yes. Only tshark is required. Tools such as capinfos, mergecap and editcap are used when found.

Can it write files?

Some tools do, and they fail closed until WIRESHARK_MCP_ALLOWED_DIRS names allowed folders.

Is the tool list large?

The default is about 23 KB. The analysis and core profiles advertise fewer tools.

Can it handle big captures?

With the optional index extra, a capture is indexed once into a local DuckDB file.

Which clients work?

Claude Desktop, Claude Code, Cursor, VS Code and many other MCP clients.

If it does not work

  • β€ΊRun wireshark-mcp doctor if anything looks off.
  • β€ΊCheck that tshark is installed and on your PATH.
  • β€ΊSet WIRESHARK_MCP_ALLOWED_DIRS to existing folders if file-writing tools are refused, and restart your client.

5 new skills a week. 1 minute to read.