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 capturewireshark_quick_analysis: first overviewwireshark_aggregate: counts and distributions across a capturewireshark_extract_fields: pull fields from packetswireshark_analyze_protocol: 25 protocols such as mqtt, modbus and kerberoswireshark_detect_dns_tunnel: spot DNS tunnelingwireshark_index: DuckDB index for large captureswireshark_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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
analyzing-network-traffic-with-wiresharkHelps your agent capture and analyze network packets to find malicious traffic. It's useful for troubleshooting and investigating security incidents.wireshark-analysisTeaches your agent to capture and analyze network traffic in Wireshark, filter packets and follow conversations for troubleshooting or investigation.performing-network-forensics-with-wiresharkHelps your agent analyze network traffic to understand what happened. It's useful for investigating security incidents and finding malicious activities.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.