Skip to main content
Glama
Mohamedaslam227

WiFi PCAP Analyzer MCP

WiFi PCAP Analyzer MCP

A local MCP server for inspecting Wi-Fi PCAP and PCAPNG files through PyShark, TShark, and Capinfos.

Architecture

MCP presentation tools
        ↓
application services
        ↓
domain contracts and models
        ↓
filesystem, repository, and TShark adapters

The code uses a standard src package layout:

src/wifi_pcap_mcp/
├── server.py                 Composition and MCP runtime
├── presentation/            Public tools and one error boundary
├── application/services/    Capture, packet, analysis, and export workflows
├── domain/                  Models, repository contracts, typed errors
├── infrastructure/          In-memory state, filesystem, TShark/Capinfos
└── config/                  Shared configuration constants

Every registered tool passes through presentation/error_boundary.py. Expected application failures receive stable error codes, while unexpected failures are logged to stderr with an error ID and returned without a traceback. Successful and failed calls share this envelope:

{"ok": true, "data": {}, "error": null}

The repository stores capture metadata and keys, not live PyShark readers. A fresh reader is created and closed for each analysis call.

For a full tool catalog, end-to-end prompts, useful Wireshark filters, and structured error tests, see MCP Server Testing Guide.

Related MCP server: SharkMCP

Prerequisites

  • VS Code with GitHub Copilot and GitHub Copilot Chat

  • Python 3.13 for Windows

  • Wireshark with TShark installed

On Windows, install Wireshark with TShark selected. Create the virtual environment and install the project:

& "$env:LOCALAPPDATA\Programs\Python\Python313\python.exe" -m venv .venv-windows
& ".\.venv-windows\Scripts\python.exe" -m pip install -e .

The server checks PATH, TSHARK_PATH, and the standard C:\Program Files\Wireshark\tshark.exe location, so TShark does not have to be on PATH when Wireshark is installed in its default directory.

Connect to GitHub Copilot in VS Code

The parent workspace already contains .vscode/mcp.json. Open the MCP folder (the parent of this directory) in VS Code, then:

  1. Open the Command Palette with Ctrl+Shift+P.

  2. Run MCP: List Servers.

  3. Select wifiPcapAnalyzer, then select Start.

  4. Review and accept VS Code's trust prompt.

  5. Open Copilot Chat, select Agent, and use Configure Tools to confirm that load_capture, get_summary, filter_packets, and dissect_packet are enabled.

The workspace configuration launches .venv-windows\Scripts\python.exe directly. It does not use WSL.

Try it

Use an absolute Windows path so the server can find the capture reliably:

Load the Wi-Fi capture at C:\captures\sample.pcap with capture ID sample-wifi,
summarize it, and identify the most useful Wireshark display filters for
investigating it.

Copilot should first call load_capture. That tool returns a capture_id. Copilot can pass that ID to the other tools.

Troubleshooting

  • Server does not start: run MCP: List Servers > wifiPcapAnalyzer > Show Output.

  • tshark not found: install Wireshark/TShark, or set TSHARK_PATH to the full path of tshark.exe before starting VS Code.

  • Python path changed: recreate .venv-windows, then update command in .vscode/mcp.json if the workspace was moved.

  • Tools changed but Copilot shows the old list: run MCP: Reset Cached Tools, then restart the server.

Run without Copilot

From this directory, start the stdio server with either command:

& ".\.venv-windows\Scripts\python.exe" server.py
& ".\.venv-windows\Scripts\wifi-pcap-mcp.exe"

The command appears to wait without printing anything; that is normal for a stdio MCP server because it is waiting for an MCP client.

Maintenance

ActivityMaintained
ResponsivenessUnresponsive

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables Wireshark-like PCAP analysis through tshark, providing tools for filtering packets, extracting protocol fields, drilling down into frames, session tracking, and timeline analysis for troubleshooting 5G, IMS/SIP, and network protocol issues.
  • A
    license
    B
    quality
    D
    maintenance
    Enables LLMs to load and analyze PCAP/PCAPNG files using Wireshark's sharkd interface, supporting packet inspection, traffic structure, conversations, and protocol statistics through natural language.
    30
    74
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables natural language analysis of network packet captures, including protocol detection, flow analysis, and security threat identification, integrated with AI assistants.
    3
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mohamedaslam227/PCAP-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server