MCP server exposing pcapy-ng packet capture functionality
Project description
mcp-pcapy-ng
MCP server exposing pcapy-ng packet capture functionality.
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 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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
353a7e126673695b68acb2f23764a5962df992ce44dfd03535ee4c1928a57555
|
|
| MD5 |
b514c9ddafc4e42ad3c93d54488d311d
|
|
| BLAKE2b-256 |
42d0df597adee7c81fdc215dfaaf245e7da8a427d63667dd5174715c51bd684c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_pcapy_ng-0.1.0.tar.gz -
Subject digest:
353a7e126673695b68acb2f23764a5962df992ce44dfd03535ee4c1928a57555 - Sigstore transparency entry: 1231416571
- Sigstore integration time:
-
Permalink:
daedalus/mcp-pcapy-ng@daab119b8d959cc1fa059b93f68e2a57ff466f86 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@daab119b8d959cc1fa059b93f68e2a57ff466f86 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86495ce3e4750ed92c03258f5a48cd3e167703953885d9ac04f34a22bee8ec2a
|
|
| MD5 |
1ff708892ef359eb1f86c9fd5f289769
|
|
| BLAKE2b-256 |
214ea19364fe854c2f6d808f7cad1817e7288aa273b9b3864e97b464a55915c3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_pcapy_ng-0.1.0-py3-none-any.whl -
Subject digest:
86495ce3e4750ed92c03258f5a48cd3e167703953885d9ac04f34a22bee8ec2a - Sigstore transparency entry: 1231416576
- Sigstore integration time:
-
Permalink:
daedalus/mcp-pcapy-ng@daab119b8d959cc1fa059b93f68e2a57ff466f86 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@daab119b8d959cc1fa059b93f68e2a57ff466f86 -
Trigger Event:
release
-
Statement type: