mcp-wireshark

mcp-wireshark

mcp-wireshark•bykhuynh22

Community-maintained MCP server that gives AI assistants direct access to packet captures for summarizing pcaps, following streams, filtering protocols, and capturing live traffic.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Reads `.pcap` / `.pcapng` files, applies Wireshark display filters, and produces high-level summaries with I/O stats, protocol hierarchy, and top talkers.
  • •Reassembles TCP and UDP streams and returns their payloads for inspection.
  • •Decodes protocol fields into TSV tables, surfaces expert warnings and errors, and aggregates protocol statistics.
  • •Captures live traffic from an interface and exports packets from a pcap to a JSON file at a chosen path.

BEST FOR

  • •Summarizing packet captures and inspecting protocol behavior inside an AI assistant chat.
  • •Troubleshooting traffic with expert analysis and Wireshark display filters.
  • •Substation engineers analyzing IEC 61850 GOOSE, SV, and MMS traffic.

ABOUT MCP-WIRESHARK

mcp-wireshark is cataloged as an MCP server attributed to khuynh22. Community-maintained MCP server that gives AI assistants direct access to packet captures for summarizing pcaps, following streams, filtering protocols, and capturing live traffic. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for mcp-wireshark are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does it support live traffic capture?

Yes. It can capture live traffic from an interface.

Can it analyze IEC 61850 GOOSE, SV, and MMS captures?

Yes. It provides health triage for GOOSE/SV/MMS captures, including per-source status and checks for gaps, TTL violations, discontinuities, lost sync, and MMS errors.

Which packet capture file formats can it read?

It reads `.pcap` and `.pcapng` packet capture files and provides a preview.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3694fceaa2d3 · 采集于 2026-11-13 07:45:30 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

mcp-wireshark

Community-maintained MCP server for Wireshark / tshark. Not affiliated with Wireshark or Anthropic. Give your AI assistant direct access to packet captures. Ask Claude to summarize a .pcap, follow a TCP stream, filter for a specific protocol, or capture live traffic — all without leaving the chat.

Claude using mcp-wireshark to analyze a capture

PyPI version CI License: MIT Python 3.10+


Quick start with Claude Code

pip install mcp-wireshark
claude mcp add --transport stdio --scope user mcp-wireshark -- mcp-wireshark

That's it. Open Claude Code and try:

"Summarize ./capture.pcap and tell me which IPs talked the most."

--scope user makes the server available across every Claude Code project. Drop the flag to install it for the current project only. See claude mcp docs for more.

Verify the install

claude mcp list

You should see mcp-wireshark listed. Inside Claude Code, ask:

"Run check_installation."

If tshark is on your PATH, it returns the version. If not, see troubleshooting.


Tools

The server exposes 14 tools, split cleanly between read tools (safe, no side effects) and write tools (capture traffic or write files). Both groups are annotated with the standard MCP readOnlyHint so any compliant client can surface the distinction.

Read tools

Safe to call freely — they only inspect state.

ToolWhat it does
check_installationVerify tshark is installed and show version
list_interfacesList network interfaces available to capture from
read_pcapRead packets from a .pcap / .pcapng file (preview + total count)
display_filterApply a Wireshark display filter to a pcap
summarize_pcapHigh-level summary: I/O stats, protocol hierarchy, top talkers
stats_by_protoProtocol hierarchy statistics
follow_tcpReassemble a TCP stream and return its payload
follow_udpReassemble a UDP stream and return its payload
expert_infotshark expert analysis: warnings, errors, and notes grouped by severity
decode_protocolExtract protocol fields as a TSV table. Curated defaults for HTTP, DNS, TLS, GOOSE, MMS, SV, SIP, ICMP; arbitrary fields for any other protocol
protocol_statsAggregate -z reports (protocol hierarchy, conversations, endpoints, HTTP/DNS/SMB stats)
analyze_iec61850Health triage for GOOSE/SV/MMS captures: per-source OK/WARN/FAIL with sqNum/stNum gaps, TTL violations, smpCnt discontinuities, lost sync, and MMS errors

Write tools

These create files or capture live traffic. Compliant clients may prompt before invoking.

ToolWhat it does
live_captureCapture live traffic from an interface (capped at 5 minutes / 10k packets)
export_jsonExport packets from a pcap to a JSON file at a path you choose

See it in action

These clips run the real tools against demo/demo.pcapng — a short home-network capture. Regenerate them with python demo/render_gif.py <scene>.

summarize_pcap — characterize an unknown capture at a glance

summarize_pcap demo

decode_protocol — filter to a protocol and get a compact table (here: TLS SNI and DNS-over-HTTPS lookups)

decode_protocol demo

expert_info — let tshark surface the warnings and anomalies for you

expert_info demo


Example prompts

Drop these into Claude Code as-is:

List my network interfaces.
Summarize ./traffic.pcap.
From ./traffic.pcap, show me only HTTP requests.
Follow TCP stream 0 in ./traffic.pcap and tell me what protocol is in it.
Capture 30 seconds of traffic on Wi-Fi filtered to tcp.port == 443.
Export every DNS packet from ./traffic.pcap to ./dns.json.
Decode the GOOSE messages in ./substation.pcapng — only stNum >= 1.
Run expert analysis on ./traffic.pcap and group findings by severity.
Show me the IP conversations in ./traffic.pcap.

Useful display filters

FilterMatches
tcp.port == 80HTTP
tcp.port == 443HTTPS
dnsAll DNS
http.requestHTTP requests only
ip.addr == 10.0.0.1Traffic to/from a specific host
tcp.flags.syn == 1 && tcp.flags.ack == 0TCP SYN packets only

For substation engineers analyzing IEC 61850 traffic:

FilterMatches
gooseAll GOOSE messages
goose.stNum > 0GOOSE messages with state changes
mmsAll MMS traffic
svSampled Values

Other clients

Anything that speaks MCP works. The package installs an mcp-wireshark binary on PATH.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
    "mcpServers": {
        "wireshark": {
            "command": "mcp-wireshark"
        }
    }
}
VS Code (Copilot / GitHub Copilot Chat)

Create .vscode/mcp.json in your workspace:

{
    "servers": {
        "wireshark": {
            "command": "mcp-wireshark"
        }
    }
}
Cursor / Windsurf / others

Use the same stdio invocation: command: mcp-wireshark. No transport flags.


Prerequisites

  • Python 3.10+
  • Wireshark installed; tshark reachable on PATH

Install with pip or uv:

pip install mcp-wireshark
# or
uvx mcp-wireshark

Troubleshooting

tshark not found on Windows

Add Wireshark to your system PATH:

  1. Press Win+R → run sysdm.cpl → Advanced → Environment Variables
  2. Edit Path → add C:\Program Files\Wireshark
  3. Restart your terminal and Claude Code, then re-run check_installation

(Avoid passing PATH through claude mcp add --env — values are taken literally, no %PATH% expansion.)

Permission denied capturing on Linux

Add yourself to the wireshark group, then log out and back in:

sudo usermod -aG wireshark $USER
"No packets captured" from live_capture
  • Confirm the interface name from list_interfaces (Wireshark uses different names than ifconfig/ip)
  • On macOS, you may need to install ChmodBPF (ships with the Wireshark .dmg)
  • Check that no display filter is excluding everything

Development

git clone https://github.com/khuynh22/mcp-wireshark.git
cd mcp-wireshark
python -m venv venv && source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -e ".[dev]"

pytest                   # tests
black src tests          # format
ruff check src tests     # lint
mypy src                 # type check

The codebase is organized so new tools land in one of two clearly-scoped files:

  • src/mcp_wireshark/read_tools.py — anything that just inspects state
  • src/mcp_wireshark/write_tools.py — anything that captures traffic or writes files

server.py only contains routing. See CLAUDE.md and CONTRIBUTING.md.

Security

Every file path is validated (.. rejected, extension allow-listed). Every display filter is checked for shell metacharacters. tshark is always invoked via asyncio.create_subprocess_exec, never shell=True. Hard caps: 10k packets per call, 5 min per live capture. See SECURITY.md.

License

MIT — see LICENSE.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for mcp-wireshark from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-wireshark)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools