Skip to main content

MCP server exposing pcapy-ng packet capture functionality

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_pcapy_ng-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_pcapy_ng-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_pcapy_ng-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_pcapy_ng-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_pcapy_ng-0.1.0.tar.gz
Algorithm Hash digest
SHA256 353a7e126673695b68acb2f23764a5962df992ce44dfd03535ee4c1928a57555
MD5 b514c9ddafc4e42ad3c93d54488d311d
BLAKE2b-256 42d0df597adee7c81fdc215dfaaf245e7da8a427d63667dd5174715c51bd684c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_pcapy_ng-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-pcapy-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_pcapy_ng-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_pcapy_ng-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_pcapy_ng-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86495ce3e4750ed92c03258f5a48cd3e167703953885d9ac04f34a22bee8ec2a
MD5 1ff708892ef359eb1f86c9fd5f289769
BLAKE2b-256 214ea19364fe854c2f6d808f7cad1817e7288aa273b9b3864e97b464a55915c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_pcapy_ng-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-pcapy-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page