Network Forensics Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Network Forensics Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A high-performance MCP Server for Network Forensics that enables AI agents to analyze PCAP files through the Model Context Protocol. Built with direct tshark integration for maximum speed.
Tested on a 1.1GB PCAP file with 1,028,287 packets:
| Operation | Time | Optimization |
|---|---|---|
| Packet Count | 0.6s | capinfos (26x faster) |
| Get Summary | 0.2s | -c flag (90x faster) |
| Filter HTTP | 13s | Full file scan |
| Protocol Stats | 17s | Full file scan |
| Extract IPs | 11s | Full file scan |
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install tshark wireshark-commonmacOS:
brew install wiresharkWindows: Download from wireshark.org
Verify installation:
tshark --version
capinfos --version # Optional, for faster packet counting# Clone repository
git clone https://github.com/yourusername/mcp-network-forensics.git
cd mcp-network-forensics
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
# or: venv\Scripts\activate # Windows
# Install package
pip install -e .Edit claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"network-forensics": {
"command": "python",
"args": ["-m", "mcp_network_forensics"],
"env": {
"MCP_MAX_FILE_SIZE": "10737418240",
"MCP_MAX_PACKETS": "10000",
"TSHARK_PATH": "/usr/bin/tshark"
}
}
}
}Add to your settings:
{
"mcpServers": {
"network-forensics": {
"command": "python",
"args": ["-m", "mcp_network_forensics"],
"disabled": false,
"autoApprove": []
}
}
}Analyze a PCAP file and return summary statistics.
Parameters:
file_path: Absolute path to PCAP file (required)packet_limit: Maximum packets to analyze (default: 1000)display_filter: Optional Wireshark display filterExample:
{
"file_path": "/home/user/captures/traffic.pcap",
"packet_limit": 100,
"display_filter": "ip.addr == 192.168.1.1"
}Get detailed information about a specific packet.
Parameters:
file_path: Absolute path to PCAP filepacket_index: Index of packet (0-based)include_layers: Include layer information (default: true)Example:
{
"file_path": "/home/user/captures/traffic.pcap",
"packet_index": 0,
"include_layers": true
}Filter packets using Wireshark display filter syntax.
Parameters:
file_path: Absolute path to PCAP filedisplay_filter: Wireshark filter (e.g., "tcp.port == 80", "http", "dns.qry.name contains 'google'")max_results: Maximum results to return (default: 100)Example:
{
"file_path": "/home/user/captures/traffic.pcap",
"display_filter": "tcp.flags.syn == 1 and tcp.flags.ack == 0",
"max_results": 50
}Get protocol distribution statistics.
Parameters:
file_path: Absolute path to PCAP filepacket_limit: Maximum packets to analyze (default: 1000)Example:
{
"file_path": "/home/user/captures/traffic.pcap",
"packet_limit": 1000
}Extract unique IP addresses from the capture.
Parameters:
file_path: Absolute path to PCAP fileExample:
{
"file_path": "/home/user/captures/traffic.pcap"
}Please analyze this PCAP file and show me the protocol distribution.
File: /home/user/captures/traffic.pcapFind all HTTP requests to external IPs in this capture.
File: /home/user/captures/web.pcapShow me all TCP SYN packets without ACK (possible port scan).
File: /home/user/captures/suspicious.pcapGet detailed information about packet 100, including all layers.
File: /home/user/captures/malware.pcap| Variable | Description | Default |
|---|---|---|
MCP_SERVER_NAME | Server name | mcp-network-forensics |
MCP_MAX_FILE_SIZE | Max file size in bytes | 10737418240 (10GB) |
MCP_MAX_PACKETS | Max packets per request | 10000 |
MCP_TIMEOUT | Request timeout in seconds | 300 |
TSHARK_PATH | Path to tshark binary | auto-detect |
┌─────────────────┐ ┌──────────────────┐ ┌─────────────┐
│ MCP Client │────▶│ MCP Server │────▶│ tshark │
│ (Claude/VSCode) │ │ (Python/FastMCP)│ │ (Wireshark)│
└─────────────────┘ └──────────────────┘ └─────────────┘
│
▼
┌──────────────┐
│ PCAP File │
└──────────────┘mcp-network-forensics/
├── src/
│ └── mcp_network_forensics/
│ ├── __init__.py
│ ├── __main__.py # Entry point
│ ├── server.py # MCP server with tools
│ ├── config.py # Configuration
│ ├── exceptions.py # Custom exceptions
│ ├── capture/
│ │ ├── __init__.py
│ │ ├── file_capture.py # File capture manager
│ │ └── tshark_wrapper.py # Direct tshark integration
│ ├── models/
│ │ ├── __init__.py
│ │ └── packet.py # Pydantic models
│ └── utils/
│ ├── __init__.py
│ ├── validators.py # Input validation
│ └── formatters.py # Output formatting
├── pyproject.toml
├── requirements.txt
├── requirements-dev.txt
└── README.mdpip install -e ".[dev]"black src
isort src
flake8 src
mypy src# Check installation
which tshark # Linux/Mac
where tshark # Windows
# Set path manually
export TSHARK_PATH=/usr/bin/tshark # Linux/Mac
set TSHARK_PATH=C:\Program Files\Wireshark\tshark.exe # WindowsIncrease timeout or reduce packet_limit:
export MCP_TIMEOUT=600
export MCP_MAX_PACKETS=5000MIT License - see LICENSE file for details.
For issues and feature requests, please use the GitHub issue tracker.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.