
Mcpcap MCP server
ai.mcpcap/mcpcap·v0.10.0·51 starsAn MCP server for analyzing PCAP files.
not scanned yet
51 stars103 downloads/wk
Reviews
Write oneNobody has reviewed Mcpcap yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Mcpcap tools
No tool declarations could be read from the package source. They show once the server is installed.
How Mcpcap compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 89/100
- higher than 80% of 48,255 servers
- GitHub stars
- 51
- more than 94% of 28,688 servers
- Downloads a week
- 103
- more than 63% of 12,191 servers with a package
Release history: 2 versions in the registry since 2026-03-17, latest 2026-09-30, typically one every 197 days.
Install Mcpcap in Claude Code, Cursor or VS Code
claude mcp add mcpcap -- uvx mcpcap
What the publisher says
From the Mcpcap repository's README, as published. We do not edit it. Read it on GitHub
mcpcap
<!-- mcp-name: ai.mcpcap/mcpcap -->
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.
Overview
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.
Key Features
- Stateless MCP Tools: Each analysis call supplies its own PCAP path or URL
- Modular Architecture: DNS, DHCP, ICMP, TCP, SIP, and CapInfos modules with easy extensibility for new protocols
- Advanced TCP Analysis: Connection lifecycle, traffic patterns, retransmissions, and flow inspection
- Local & Remote PCAP Support: Analyze files from local storage or HTTP URLs
- Scapy Integration: Leverages scapy's comprehensive packet parsing capabilities
- Specialized Analysis Prompts: Security, networking, and forensic analysis guidance
- JSON Responses: Structured data format optimized for LLM consumption
Installation
mcpcap requires Python 3.10 or greater.
Using pip
pip install mcpcapUsing uv
uv add mcpcapUsing uvx (for one-time usage)
uvx mcpcapUsing Docker
Build the image from the repository root:
docker build -t mcpcap .Run it over HTTP for MCP clients that connect to a network endpoint:
docker run --rm \
-p 8080:8080 \
-v "$(pwd)/examples:/pcaps:ro" \
mcpcap --transport http --host 0.0.0.0 --port 8080Run it over stdio for clients that can spawn docker run directly:
docker run --rm -i \
-v "$(pwd)/examples:/pcaps:ro" \
mcpcapWhen you mount local captures into the container, use the container path in tool calls:
analyze_dns_packets("/pcaps/dns.pcap")Remote http:// and https:// PCAP URLs work without a volume mount because mcpcap downloads them inside the container at call time.
Using Docker Compose
For the default HTTP workflow, start the bundled Compose service:
docker compose upThis pulls ghcr.io/mcpcap/mcpcap:latest, publishes http://127.0.0.1:8080/mcp, and mounts ./examples into the container as /pcaps.
analyze_dns_packets("/pcaps/dns.pcap")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:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up --buildQuick Start
1. Start the MCP Server
Start mcpcap as a stateless MCP server:
# Default stdio transport for Claude Desktop and similar clients
mcpcap
# Start with specific modules only
mcpcap --modules dns,tcp
# With packet analysis limits
mcpcap --max-packets 1000
# Start an HTTP transport server for remote MCP clients
mcpcap --transport http --host 127.0.0.1 --port 80802. Connect Your MCP Client
Use stdio transport for local MCP clients like Claude Desktop:
{
"mcpServers": {
"mcpcap": {
"command": "mcpcap",
"args": []
}
}
}Use HTTP transport when your MCP client expects a network endpoint:
mcpcap --transport http --host 127.0.0.1 --port 8080Point your HTTP-capable MCP client at:
http://127.0.0.1:8080/mcpDocker users can publish the same endpoint with:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Mcpcap: common questions
- Is Mcpcap MCP server safe?
- Yes, by our scan: it is graded A (89/100). Read the Mcpcap safety report
- How do I install Mcpcap?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Mcpcap need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Mcpcap maintained?
- The last commit was 111 days ago (2026-07-16). The latest release is v0.10.0.
- How does Mcpcap compare with other MCP servers?
- safety score 89/100 (higher than 80% of 48,255 servers); github stars 51 (more than 94% of 28,688 servers); downloads a week 103 (more than 63% of 12,191 servers with a package). Full comparison.