Install mcpcap
Install with pip or uv, or pull the published container with Docker Compose
Start the Server
Run mcpcap over stdio, expose HTTP, or launch the GHCR image with Compose
Connect & Analyze
Provide file paths or URLs to analyze PCAP files (no uploads)
# Using pip
pip install mcpcap
# Using uv
uv add mcpcap
# One-time usage
uvx mcpcap
# Start the published container over HTTP
docker compose up
# MCP endpoint
http://127.0.0.1:8080/mcp
# Mounted sample capture path inside the container
analyze_dns_packets("/pcaps/dns.pcap")
# Start MCP server for Claude Desktop and similar clients
mcpcap
# Then use tools with local file PATHS (not uploads)
analyze_dns_packets("/path/to/capture.pcap")
analyze_dhcp_packets("/path/to/dhcp.pcap")
analyze_icmp_packets("/path/to/network.pcap")
analyze_tcp_connections("/path/to/tcp-session.pcap")
analyze_sip_packets("/path/to/voip-signaling.pcap")
analyze_capinfos("/path/to/capture.pcap")
# Start MCP server with HTTP transport
mcpcap --transport http --host 127.0.0.1 --port 8080
# Connect your MCP client to:
http://127.0.0.1:8080/mcp
# Start MCP server
mcpcap
# Then use tools with remote URLs (not uploads)
analyze_dns_packets("https://example.com/capture.pcap")
analyze_dhcp_packets("https://example.com/dhcp.pcap")
analyze_icmp_packets("https://example.com/network.pcap")
analyze_tcp_connections("https://example.com/tcp-session.pcap")
analyze_sip_packets("https://example.com/sip-signaling.pcap")
analyze_capinfos("https://example.com/capture.pcap")