{
  "markdown": "# mcp-pcapy-ng\n\nMCP server exposing pcapy-ng packet capture functionality.\n\n[![PyPI](https://img.shields.io/pypi/v/mcp-pcapy-ng.svg)](https://pypi.org/project/mcp-pcapy-ng/)\n[![Python](https://img.shields.io/pypi/pyversions/mcp-pcapy-ng.svg)](https://pypi.org/project/mcp-pcapy-ng/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\nmcp-name: io.github.daedalus/mcp-pcapy-ng\n\n## Install\n\n```bash\npip install mcp-pcapy-ng\n```\n\n## Usage\n\nThe MCP server provides tools for network packet capture using pcapy-ng:\n\n```python\nfrom mcp_pcapy_ng import mcp\nmcp.run()\n```\n\nOr via command line:\n\n```bash\nmcp-pcapy-ng\n```\n\n## Available Tools\n\n- `findalldevs` - List all available network interfaces\n- `lookupdev` - Get the default network device\n- `open_live` - Open a live network interface for packet capture\n- `open_offline` - Open a pcap file for reading\n- `create` - Create a packet capture handle\n- `compile` - Create a BPF filter program\n- `pcap_read` - Read packets from a pcap handle\n- `pcap_datalink` - Get the data link type\n- `pcap_setfilter` - Attach a BPF filter\n- `pcap_getnonblock` - Get non-blocking status\n- `pcap_setnonblock` - Set non-blocking mode\n- `get_dlt_names` - Get DLT constant mappings\n- `get_pcap_directions` - Get direction constant mappings\n- `get_constants` - Get all constants\n\n## Development\n\n```bash\ngit clone https://github.com/daedalus/mcp-pcapy-ng.git\ncd mcp-pcapy-ng\npip install -e \".[test]\"\n\n# run tests\npytest\n\n# format\nruff format src/ tests/\n\n# lint\nruff check src/ tests/\n\n# type check\nmypy src/\n```\n",
  "bytes": 1642,
  "sha": "a43b9aea7a2ab48ddc74de182dded40a089d0918133ecef88fdf3c6cbcd3353a",
  "repo_slug": "daedalus/mcp-pcapy-ng",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_daedalus_mcp_pcapy_ng_71fd8698/readme"
}