NetMCP
Integrates AbuseIPDB and URLhaus threat intelligence for IP reputation checks and PCAP-wide threat scanning.
Provides packet capture, deep protocol analysis, stream reconstruction, expert info, TLS decryption, and traffic export using Wireshark/TShark.
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., "@NetMCPscan my local network for open ports"
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.
🌐 NetMCP
Professional-grade network analysis MCP server — Wireshark/TShark + Nmap + Threat Intelligence
NetMCP bridges the gap between raw network data and AI comprehension. It gives Claude, Cursor, and any MCP-compliant client the ability to capture packets, scan networks, detect threats, and extract credentials — all through natural language.
Quick Start • Features • Configuration • API Reference • Architecture
🚀 Quick Start
# Install system dependencies
sudo apt-get install -y tshark nmap # Ubuntu/Debian
# brew install wireshark nmap # macOS
# Install NetMCP
pip install netmcp
# Run
netmcpThat's it. The server starts on stdio transport by default, ready for any MCP client.
Related MCP server: Wireshark MCP
✨ Features
📡 Packet Capture — Live capture, BPF filtering, targeted traffic, quick capture mode
🔬 Deep Analysis — PCAP parsing, protocol statistics, HTTP traffic analysis, DNS analysis, expert info, GeoIP enrichment
🔄 Stream Reconstruction — Follow TCP/UDP conversations, enumerate streams
📤 Flexible Export — JSON, CSV, pcap/pcapng format conversion
🔍 Nmap Integration — Port scan, service detection, OS fingerprinting, vulnerability scan
🛡️ Threat Intelligence — URLhaus + AbuseIPDB IP reputation checks, PCAP-wide threat scan
🔑 Credential Extraction — HTTP Basic, FTP, Telnet, Kerberos (hashcat-ready)
🌍 GeoIP Mapping — MaxMind GeoLite2 IP geolocation for traffic analysis
🔒 5-Layer Security — Input validation, shell=False, rate limiting, path traversal protection, audit logging
💬 Guided Workflows — Security audit, incident response, troubleshooting, traffic analysis, network baseline prompts
Advanced Features
🔀 PCAP Diff/Merge/Slice — Compare captures, combine files via mergecap, extract packet ranges via editcap
📊 Flow Visualization — ASCII art and Mermaid sequence diagrams of network conversations
🔓 TLS Decryption — Decrypt HTTPS traffic using SSLKEYLOGFILE (NSS Key Log Format)
🎨 Wireshark Profiles — List profiles, apply profile settings, parse color filters, capture with profile
🧬 DNS Tunneling Detection — Analyze DNS traffic and flag suspiciously long subdomain names
📦 Packet Decode — Detailed single-packet analysis with full protocol layer dissection
🏥 Expert Information — Extract Wireshark's expert warnings, errors, and protocol violation notes
📊 Tool Categories
NetMCP provides 48 tools across 9 categories, plus 3 resources and 5 prompts:
Category | Tools | Description |
📡 Capture & Analysis | 5 |
|
🔬 Protocol Analysis | 10 |
|
📊 Network Flows | 2 |
|
🔧 PCAP Tools | 4 |
|
🔄 Streams | 3 |
|
📤 Export | 3 |
|
🔍 Nmap | 6 |
|
🛡️ Security | 3 |
|
🎨 Wireshark Profiles | 4 |
|
📖 Full API reference with parameters and examples: docs/API.md
🔌 Transport Options
NetMCP supports all MCP transport protocols:
Transport | Command | Use Case |
stdio (default) |
| Claude Desktop, Cursor, local clients |
SSE |
| Web-based clients, remote access |
Streamable HTTP |
| Modern HTTP clients |
⚙️ Configuration
Claude Desktop
Edit your config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"netmcp": {
"command": "netmcp",
"env": {
"ABUSEIPDB_API_KEY": "your_api_key_here"
}
}
}
}Cursor
Edit .cursor/mcp.json in your project root:
{
"mcpServers": {
"netmcp": {
"command": "netmcp"
}
}
}Windsurf / VS Code
Edit .vscode/mcp.json:
{
"servers": {
"netmcp": {
"command": "netmcp",
"env": {
"ABUSEIPDB_API_KEY": "your_api_key_here"
}
}
}
}Environment Variables
Variable | Required | Default | Description |
| No | — | AbuseIPDB API key for threat intelligence. Get free key |
| No | Auto-detect | Custom path to tshark binary |
| No |
| Maximum packets per capture operation |
| No |
| Maximum PCAP file size in bytes (100 MB) |
📋 Requirements
Dependency | Required | Install |
Python | 3.11+ |
|
TShark | Yes |
|
Nmap | Optional |
|
macOS
brew install wireshark nmapLinux Permissions
# Option 1: Set capabilities (recommended)
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
# Option 2: Add user to wireshark group
sudo usermod -aG wireshark $USER && newgrp wireshark🛡️ Security Model
NetMCP implements 5 layers of defense in depth:
Layer | Mechanism | Prevents |
1. Input Validation | Regex, | Malformed input, injection payloads |
2. Command Construction | List args, | Command injection, shell expansion |
3. Subprocess Execution | Timeouts, captured output only | Runaway processes, resource exhaustion |
4. File System |
| Path traversal, symlink attacks |
5. Rate Limiting | Sliding window, per-operation tracking | Abuse, DoS attacks |
Additional protections:
🔒 Never auto-escalates privileges
📝 All operations audit-logged with timestamps
🚫 Dangerous nmap flags rejected (
--script-args,--interactive, etc.)⚠️ Clear error messages for permission issues
🎯 Usage Examples
Live Packet Capture
You: Capture 100 packets from eth0 and analyze the protocols.
Claude: [capture_live_packets(interface="eth0", packet_count=100)]
[get_protocol_statistics(filepath="capture.pcap")]
Found 8 protocols: TCP (62%), UDP (24%), DNS (8%), HTTP (4%)...Security Audit
You: Perform a security audit on suspicious.pcap
Claude: 1. [get_protocol_statistics] → traffic breakdown
2. [extract_credentials] → found HTTP Basic Auth credentials
3. [scan_capture_for_threats] → 2 malicious IPs detected
4. Generated full security report with IOCsNmap Vulnerability Scan
You: Scan 192.168.1.100 for vulnerabilities
Claude: [nmap_quick_scan("192.168.1.100")] → ports 22, 80, 443 open
[nmap_service_detection("192.168.1.100")] → nginx 1.18.0, OpenSSH 8.2
[nmap_vulnerability_scan("192.168.1.100")] → no critical CVEs found🧠 MCP Resources & Prompts
Resources
URI | Description |
| Dynamic list of available network interfaces |
| Available PCAP files in common directories |
| System capabilities: tool versions, features |
Prompts (Guided Workflows)
Prompt | Description |
| Comprehensive PCAP security analysis with IOC extraction |
| Step-by-step network diagnostics |
| Security incident investigation workflow |
| Deep traffic analysis with GeoIP mapping |
| Establish normal traffic patterns |
🧪 Development
# Clone and setup
git clone https://github.com/cortexc0de/netmcp.git
cd netmcp
python -m venv .venv
source .venv/bin/activate
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Run with coverage
pytest tests/ --cov=netmcp --cov-report=html
# Linting
ruff check src/netmcp/ tests/
ruff format --check src/netmcp/
mypy src/netmcp/Project Structure
src/netmcp/
├── server.py # FastMCP server entry point
├── core/
│ ├── security.py # 5-layer input validation + rate limiting
│ └── formatter.py # MCP response formatting
├── interfaces/
│ ├── tshark.py # TShark async CLI wrapper
│ ├── nmap.py # python-nmap wrapper
│ └── threat_intel.py # URLhaus + AbuseIPDB clients
├── tools/ # 48 MCP tools across 11 modules
├── resources/ # 3 MCP resources
└── prompts/ # 5 MCP prompts🤝 Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
Fork the repository
Create a feature branch (
git checkout -b feat/amazing-feature)Run tests (
pytest tests/ -v)Submit a Pull Request
📄 License
MIT License — see LICENSE for details.
🙏 Acknowledgments
Wireshark/TShark — packet analysis toolkit
Nmap — network scanner
Model Context Protocol — AI tool framework
Transform your network analysis with AI-powered packet capture, scanning, and threat intelligence.
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-qualityDmaintenanceAn 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.Last updated1MIT
- AlicenseBqualityBmaintenanceAn MCP server that enables LLMs to analyze pcap files by providing tools for packet dissection, stream following, and data extraction via tshark. It supports protocol hierarchy analysis, credential scanning, and threat intelligence checks on captured network traffic.Last updated51182MIT
- Flicense-qualityDmaintenanceAn automated security operations center MCP server that uses LLMs and network analysis tools like Tshark to detect threats in traffic data. It enables users to automatically ingest PCAP files, query specific packets, and generate intelligent security analysis reports.Last updated
- Alicense-qualityDmaintenanceA comprehensive MCP server that provides AI assistants with professional-grade network analysis capabilities, combining Wireshark packet analysis, nmap scanning, and threat intelligence for enhanced network troubleshooting and security analysis.Last updatedMIT
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
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/cortexc0de/netmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server