Skip to main content

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/

Metadata

Release files for mcp-pcapy-ng 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-pcapy-ng 0.1.0
File Size Uploaded
mcp_pcapy_ng-0.1.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-pcapy-ng 0.1.0
File Interpreter ABI Platform
mcp_pcapy_ng-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / mcp_pcapy_ng-0.1.0.tar.gz

Download URL mcp_pcapy_ng-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
353a7e126673695b68acb2f23764a5962df992ce44dfd03535ee4c1928a57555
BLAKE2b-256 checksum
How to use checksums
42d0df597adee7c81fdc215dfaaf245e7da8a427d63667dd5174715c51bd684c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.

Transparency log

Release files / mcp_pcapy_ng-0.1.0-py3-none-any.whl

Download URL mcp_pcapy_ng-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86495ce3e4750ed92c03258f5a48cd3e167703953885d9ac04f34a22bee8ec2a
BLAKE2b-256 checksum
How to use checksums
214ea19364fe854c2f6d808f7cad1817e7288aa273b9b3864e97b464a55915c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page