Wireshark MCP Server
Allows AI agents to perform network packet analysis using Wireshark/TShark, including protocol discovery, packet search, conversation analysis, stream following, traffic statistics, live capture, and more.
Click on "Install 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 Serverlist all TCP connections in capture.pcap"
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 Server
Overview
Wireshark MCP Server bridges AI assistants and network packet analysis by exposing Wireshark/TShark functionality through the Model Context Protocol (MCP).
Instead of manually searching through packet captures, AI clients can interact with PCAP data using natural language and structured MCP tools.
This project enables:
PCAP investigation
Protocol discovery
Packet filtering
Stream analysis
Traffic statistics
Network conversation mapping
Live packet capture
AI-assisted network troubleshooting
---
Related MCP server: mcp-wireshark
โจ Features
Feature | Description |
๐ Protocol Discovery | Identify all protocols present in a PCAP |
๐ฆ Packet Search | Search packets using Wireshark display filters |
๐ Conversation Analysis | Analyze communications between hosts |
๐ Stream Following | Follow TCP and UDP streams |
๐ Traffic Statistics | Generate protocol and traffic summaries |
๐ฏ Interface Discovery | Enumerate available capture interfaces |
โก Live Capture | Capture network traffic in real time |
๐ค MCP Integration | Compatible with MCP clients and AI agents |
๐ HTTP Transport | Expose tools through HTTP |
๐ป STDIO Transport | Native MCP STDIO support |
---
๐ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Client โ
โ ( Claude Desktop) โ
โโโโโโโโโโโโฌโโโโโโโโโโโโ
โ MCP
โผ
โโโโโโโโโโโโโโโโโโโโโโโโ
โ Wireshark MCP Serverโ
โโโโโโโโโโโโฌโโโโโโโโโโโโ
โ
โโโโโโโโโโโดโโโโโโโโโโ
โ โ
โผ โผ
TShark Wireshark
Engine Engine
โ
โโโ PCAP Files
โโโ Live Capture
โโโ Streams
โโโ Conversations
โโโ Statistics---
๐ Project Structure
app/
โโโ prompts/
โ โโโ prompts.py
โ
โโโ resources/
โ โโโ references.py
โ
โโโ tools/
โ โโโ behavior.py
โ โโโ conversations.py
โ โโโ discovery.py
โ โโโ interfaces.py
โ โโโ live\_capture.py
โ โโโ packets.py
โ โโโ save\_capture.py
โ โโโ statistics.py
โ โโโ streams.py
โ
โโโ transports/
โ โโโ http\_transport.py
โ โโโ stdio\_transport.py
โ
โโโ utils/
โ โโโ tshark.py
โ
โโโ config.py
โโโ server.py
โโโ .env
run.py
requirements.txt---
Requirements
Software
Python 3.11+
Wireshark
TShark
Verify TShark installation:
tshark -v---
Installation
Clone the repository:
git clone https://github.com/NathcorpTraining/Wireshark-MCP.git
cd Wireshark-mcp-serverCreate a virtual environment:
python -m venv venvActivate it:
Windows:
venv\\Scripts\\activateLinux/macOS:
source venv/bin/activateInstall dependencies:
pip install -r requirements.txt---
Configuration
Create a .env file:
TSHARK\_PATH=C:\\\\Program Files\\\\Wireshark\\\\tshark.exe
MAX\_TIMEOUT=30
MAX\_PACKETS=10000
HTTP\_HOST=0.0.0.0
HTTP\_PORT=8080---
Running the Server
STDIO Transport
python run.py --transport stdioHTTP Transport
python run.py --transport httpServer endpoint:
http://localhost:8080---
Available MCP Tools
Protocol Discovery
Discover protocols contained within a packet capture.
Packet Search
Search packets using Wireshark display filters.
Examples:
http
dns
tcp.port == 443
ip.addr == 192.168.1.10Conversation Analysis
Analyze communication flows between hosts.
Stream Analysis
Follow complete TCP or UDP streams.
Traffic Statistics
Generate protocol and traffic summaries.
Interface Discovery
List available capture interfaces.
Live Capture
Capture traffic directly from selected interfaces.
Save Capture
Persist temporary capture files for later analysis.
Behavior Analysis
Analyze communication patterns and traffic behavior.
---
Example Use Cases
Incident Response
Investigate suspicious network activity
Analyze compromised host communications
Review attack traffic
Network Troubleshooting
Identify connectivity issues
Analyze protocol failures
Review packet exchanges
Security Operations
Investigate PCAP files
Review alerts with packet evidence
Analyze suspicious traffic patterns
Threat Hunting
Search for indicators of compromise
Review communications between hosts
Identify unusual traffic behavior
---
Security Notice
This tool provides packet capture and analysis capabilities.
Only capture or analyze network traffic on systems and networks for which you have explicit authorization.
The maintainers assume no responsibility for misuse of this software.
---
Roadmap
Current
[x] Protocol Discovery
[x] Packet Search
[x] Stream Analysis
[x] Conversation Analysis
[x] Statistics
[x] Live Capture
[x] HTTP Transport
[x] STDIO Transport
Planned
[ ] IOC Extraction
[ ] Threat Detection
[ ] Session Reconstruction
[ ] AI Investigation Workflows
[ ] Protocol Anomaly Detection
[ ] Export Reports
[ ] MITRE ATT&CK Mapping
---
๐ค Contributing
Contributions, bug reports, and feature requests are welcome.
Fork the repository
Create a feature branch
Commit your changes
Open a Pull Request
---
๐ License
Licensed under the MIT License.
See the LICENSE file for details.
---
โญ Support
If you find this project useful:
Star the repository
Share feedback
Submit feature requests
Contribute improvements
---
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceAn MCP server that enables AI-assisted network packet analysis using Wireshark's TShark tool. It provides tools for pcap file overview, session extraction, protocol filtering, and statistical analysis through a standardized interface.1MIT
- AlicenseAqualityAmaintenanceEnables AI assistants to analyze, filter, and capture network traffic using Wireshark/tshark, allowing natural language interaction with packet captures.1454MIT
- Alicense-qualityDmaintenanceProvides AI assistants with direct access to Wireshark network analysis capabilities, enabling live packet capture, PCAP file analysis, protocol statistics, and network monitoring through a secure MCP interface.1MIT
- AlicenseAqualityFmaintenanceA Model Context Protocol server that enables AI assistants to perform network packet analysis, capture, and security operations on a remote machine via Wireshark/tshark.101MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors โ no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NathcorpTraining/Wireshark-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server