mcpField
M
mcp-pcapy-ng

mcp-pcapy-ng

Local
github.com/daedalusSecurity0Updated 27w ago

About mcp-pcapy-ng

mcp-pcapy-ng exposes pcapy-ng packet-capture functions through an MCP server for users who need to capture or read network traffic. Its tools cover live interfaces, offline pcap files, and BPF filtering.

Key features

  1. 01List and select network interfaces
  2. 02Capture live or offline traffic
  3. 03Compile and apply BPF filters
  4. 04Read packets and link types
  5. 05Inspect capture constants and directions

Use cases

  1. 01Inspect available network interfaces
  2. 02Read packets from a pcap file
  3. 03Filter network traffic with BPF

MCP support

As an MCP server, it provides MCP clients with pcapy-ng capture tools for interface discovery, live or offline reading, and filter management.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"daedalus-mcp-pcapy-ng": {
"command": "uvx",
"args": [
"mcp-pcapy-ng"
]
}
}
}
Run commanduvx mcp-pcapy-ng

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimcp-pcapy-ng0.1.0

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

mcp-pcapy-ng

MCP server exposing pcapy-ng packet capture functionality.

PyPI Python Ruff

mcp-name: io.github.daedalus/mcp-pcapy-ng

Install

pip install mcp-pcapy-ng

Usage

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

Available Tools

  • findalldevs - List all available network interfaces
  • lookupdev - Get the default network device
  • open_live - Open a live network interface for packet capture
  • open_offline - Open a pcap file for reading
  • create - Create a packet capture handle
  • compile - Create a BPF filter program
  • pcap_read - Read packets from a pcap handle
  • pcap_datalink - Get the data link type
  • pcap_setfilter - Attach a BPF filter
  • pcap_getnonblock - Get non-blocking status
  • pcap_setnonblock - Set non-blocking mode
  • get_dlt_names - Get DLT constant mappings
  • get_pcap_directions - Get direction constant mappings
  • get_constants - Get all constants

Development

git 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/

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.