Network analysis for the AI age
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A modular Python MCP (Model Context Protocol) server for analyzing PCAP files. mcpcap exposes protocol-specific analysis tools that accept a local file path or remote HTTP URL at call time, so the server stays stateless and works cleanly with MCP clients.
mcpcap uses a modular architecture to analyze different network protocols found in PCAP files. Each module provides specialized analysis tools that can be called independently with any PCAP file, making it perfect for integration with Claude Desktop and other MCP clients.
mcpcap requires Python 3.10 or greater.
Build the image from the repository root:
Run it over HTTP for MCP clients that connect to a network endpoint:
Run it over stdio for clients that can spawn docker run directly:
When you mount local captures into the container, use the container path in tool calls:
Remote http:// and https:// PCAP URLs work without a volume mount because mcpcap downloads them inside the container at call time.
For the default HTTP workflow, start the bundled Compose service:
This pulls ghcr.io/mcpcap/mcpcap:latest, publishes http://127.0.0.1:8080/mcp, and mounts ./examples into the container as /pcaps.
To analyze your own captures, change the volume in docker-compose.yml from ./examples:/pcaps:ro to your local capture directory.
For local development against the checked-out source instead of GHCR:
Start mcpcap as a stateless MCP server:
Use stdio transport for local MCP clients like Claude Desktop:
Use HTTP transport when your MCP client expects a network endpoint:
Point your HTTP-capable MCP client at:
Docker users can publish the same endpoint with:
Or with Compose:
Use the analysis tools with any PCAP file by providing the file path or URL when you call the tool:
DNS Analysis:
DHCP Analysis:
ICMP Analysis:
TCP Connection Analysis:
TCP Pattern Analysis:
TCP Retransmission Analysis:
Traffic Flow Analysis:
SIP Analysis:
CapInfos Analysis:
If you are using Docker with a bind mount, pass the in-container path instead of the host path:
analyze_dns_packets(pcap_file): Complete DNS traffic analysis
analyze_dhcp_packets(pcap_file): Complete DHCP traffic analysis
analyze_icmp_packets(pcap_file): Complete ICMP traffic analysis
analyze_tcp_connections(pcap_file, server_ip=None, server_port=None, detailed=False): TCP connection state analysis
analyze_tcp_anomalies(pcap_file, server_ip=None, server_port=None): Observational TCP traffic analysis
analyze_tcp_retransmissions(pcap_file, server_ip=None, threshold=0.02): TCP retransmission analysis
analyze_traffic_flow(pcap_file, server_ip, server_port=None): Bidirectional traffic flow analysis
analyze_sip_packets(pcap_file): SIP signaling analysis
analyze_capinfos(pcap_file): PCAP file metadata and statistics
mcpcap provides specialized analysis prompts to guide LLM analysis:
security_analysis - Focus on threat detection, DGA domains, DNS tunnelingnetwork_troubleshooting - Identify DNS performance and configuration issuesforensic_investigation - Timeline reconstruction and evidence collectiondhcp_network_analysis - Network administration and IP managementdhcp_security_analysis - Security threats and rogue DHCP detectiondhcp_forensic_investigation - Forensic analysis of DHCP transactionsicmp_network_diagnostics - Network connectivity and path analysisicmp_security_analysis - ICMP-based attacks and reconnaissance detectionicmp_forensic_investigation - Timeline reconstruction and network mappingtcp_connection_troubleshooting - Connection issues, handshake analysis, termination patternstcp_security_analysis - Attack detection, firewall analysis, anomaly identificationFactual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcpcap)<a href="https://allmcps.com/mcp/mcpcap"><img src="https://allmcps.com/api/badge/mcpcap?style=directory" alt="Mcpcap on AllMCPs" /></a>