MCP server exposing pcapy-ng packet capture functionality
MCP server exposing pcapy-ng packet capture functionality.
mcp-name: io.github.daedalus/mcp-pcapy-ng
pip install mcp-pcapy-ng
The MCP server provides tools for network packet capture using pcapy-ng:
from mcp_pcapy_ng import mcp
mcp.run()
Or via command line:
mcp-pcapy-ng
findalldevs - List all available network interfaceslookupdev - Get the default network deviceopen_live - Open a live network interface for packet captureopen_offline - Open a pcap file for readingcreate - Create a packet capture handlecompile - Create a BPF filter programpcap_read - Read packets from a pcap handlepcap_datalink - Get the data link typepcap_setfilter - Attach a BPF filterpcap_getnonblock - Get non-blocking statuspcap_setnonblock - Set non-blocking modeget_dlt_names - Get DLT constant mappingsget_pcap_directions - Get direction constant mappingsget_constants - Get all constantsgit clone https://github.com/daedalus/mcp-pcapy-ng.git
cd mcp-pcapy-ng
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx mcp-pcapy-ngMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-daedalus-mcp-pcapy-ng": {
"command": "uvx",
"args": [
"mcp-pcapy-ng"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemcp-pcapy-ngpypiio.github.daedalus/mcp-pcapy-ng works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.