Mcp Pcapy Ng

io.github.daedalusPublished by GitHub account daedalusv0.1.0Updated Oct 24, 2026

MCP server exposing pcapy-ng packet capture functionality

VerifiedSTDIODesktop onlyDeveloper ToolsSecurity & Monitoring

Overview

AI-generated overview

Local MCP server that exposes pcapy-ng packet capture, letting an assistant list interfaces, open live or offline captures, and read packets.

What you can do
  • List network interfaces and identify the default capture device
  • Open a live interface or an existing pcap file as a capture handle
  • Compile BPF filter programs and attach them to a handle
  • Read packets from a handle and report its data link type
  • Toggle non-blocking mode and query its status
  • Look up DLT, direction and other pcapy-ng constants
When to use it
Useful when you want an assistant to inspect network traffic on the local machine or analyze saved pcap files, for example during troubleshooting, protocol exploration or security review of captured packets.
Requirements
Runs as a local process on the user's machine, installed from PyPI with pip; desktop only. Capturing live traffic typically needs packet-capture permissions (such as root or capture capabilities) and libpcap on the host. No accounts, API keys or environment variables are declared.
Before you install
Live capture reads real network traffic, which can include sensitive or personal data; treat captured packets carefully. Opening interfaces and reading packets are local operations, but the assistant can start captures on any interface it is permitted to access. No credentials or payments are involved.

Installation

In SourceWeft

  1. Open Mcp Pcapy Ng in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

mcp-pcapy-ng

MCP server exposing pcapy-ng packet capture functionality.

[PyPI] [Python] [Ruff]

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

Install

bash
pip install mcp-pcapy-ng

Usage

The MCP server provides tools for network packet capture using pcapy-ng:

python
from mcp_pcapy_ng import mcpmcp.run()

Or via command line:

bash
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

bash
git clone https://github.com/daedalus/mcp-pcapy-ng.gitcd mcp-pcapy-ngpip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

Source: README.md at commit 4b886a9

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts