Wireshark MCP logo

Wireshark MCP

by bx33661

Analyzes captures and live traffic through tshark, with packet inspection, statistics, filtering, stream following, and security analysis.

Install Wireshark MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "bx33661-wireshark-mcp": {
      "command": "uvx",
      "args": [
        "wireshark-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 54 tools correctly (Today).

Overview

bx33661/Wireshark-MCP exposes Wireshark and tshark packet-analysis workflows through MCP tools. It can inspect capture files, capture live traffic, extract fields, follow streams, calculate protocol and endpoint statistics, and run security-focused analysis. Reach for it when an AI client needs structured answers from PCAP or PCAPNG data instead of manual Wireshark interaction. Python 3.10+ and tshark are required, while several Wireshark command-line utilities enable additional file operations.

Use cases

  • Analyze a PCAP for protocol distribution, top talkers, and anomalies
  • Extract DNS, HTTP, TCP, or other protocol fields into tabular results
  • Follow a TCP, UDP, TLS, HTTP, or HTTP/2 stream
  • Capture live traffic with a BPF filter and ring buffer
  • Investigate suspicious traffic with expert information and packet searches

Key features

  • Structured tshark-backed packet inspection
  • Live interface discovery and packet capture
  • Protocol, endpoint, conversation, and time-bucket statistics
  • Capture editing, merging, filtering, and conversion
  • Stream following, field extraction, and content search
  • TLS decryption, decode-as rules, and protocol preferences

Tools54

What Wireshark MCP lets your agent do. Expand a tool for its parameters.

Verified live~4.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

26/26 checks healthy over the last 92d

What it can do

From the 54 tools this server returned when we ran it; 54 declare their own safety hints.

Can delete or modify data · 12Handles credentials · 1Makes network requests · 11Read-only tools · 42
Network at startup2 connections
Files written at startup11

Observed 2026-11-10 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 1Low 1

Scanned 5d ago via OSV.dev · wireshark-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars381Stargazers on the source repository.
Last commit8d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed54Callable tools this server registers over MCP.
Directory activity15 viewsConfig copies, upvotes, and views on AllMCPs.

How Wireshark MCP works

What bx33661/Wireshark-MCP MCP server does

bx33661/Wireshark-MCP connects MCP clients to the Wireshark command-line analysis stack, primarily through tshark. It accepts capture files for inspection and can also discover interfaces and capture live traffic. Results are returned through structured MCP tool responses rather than requiring an analyst to operate the Wireshark desktop application.

The server covers both routine packet analysis and security investigation. It can report capture metadata, show packet summaries and detailed dissections, extract protocol fields, search packet content, reassemble supported streams, and inspect raw packet bytes. Security-oriented workflows include expert information, anomaly review, TLS decryption with an SSL key log, and traffic overviews.

How it works

A client calls tools with capture paths, display filters, field lists, protocol types, packet numbers, or other analysis parameters. Capture-wide operations include protocol hierarchy, endpoints, conversations, I/O graphs, service response times, filtered counts, groups, distinct values, numeric metrics, top-k results, and time buckets.

Packet-level tools provide different levels of detail: wireshark_get_packet_list returns a tabular summary, wireshark_get_packet_details returns selected protocol layers as JSON, and wireshark_get_packet_bytes returns a hex/ASCII representation. wireshark_get_packet_context adds surrounding frames, while wireshark_follow_stream supports TCP, UDP, TLS, HTTP, and HTTP/2 with ASCII, hex, or raw output modes.

Dissection can be adjusted with decode-as rules and protocol preference overrides. The server can also decrypt TLS traffic when suitable key material is available through SSLKEYLOGFILE.

Setup and configuration

The traditional installation requires Python 3.10 or newer and Wireshark with tshark available on PATH. Install the Python package with pip install wireshark-mcp, then run wireshark-mcp install to select MCP clients and write their configuration. The client must be restarted after configuration changes.

Claude Code and Codex can use the plugin route, which requires uv and tshark. That route includes the Python project but does not install Wireshark or capture drivers. Optional package extras include index, geoip, and yara; the index extra adds a DuckDB-backed capture index for large captures.

Run wireshark-mcp doctor to check the installation. Optional suite programs such as capinfos, mergecap, editcap, dumpcap, and text2pcap are detected when available and unlock related operations.

Tools and capabilities

  • Inspect file type, packet count, duration, and size with wireshark_get_file_info.
  • List interfaces and perform live captures with BPF filters and ring-buffer settings.
  • Merge, filter-save, trim, split, time-shift, deduplicate, and import capture data.
  • Extract fields such as IP addresses, ports, and HTTP hosts in tabular form.
  • Analyze protocol distributions, endpoints, conversations, traffic graphs, expert information, and service response times.
  • Search packets, inspect context and bytes, follow streams, decode non-standard ports, and override protocol preferences.

wireshark_read_packets is deprecated; packet lists and detailed packet inspection are the preferred alternatives.

Limitations and notes

The base server depends on tshark; several file-manipulation features depend on additional Wireshark command-line programs. Live capture also depends on the interfaces and capture permissions available on the host. TLS decryption requires usable SSL key-log data. The optional capture index, GeoIP enrichment, and YARA scanning features require their corresponding package extras.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wireshark MCP

bx33661/Wireshark-MCP is an MCP server that connects AI clients to Wireshark’s tshark-based analysis tools. Its main tools capture traffic, inspect packet lists and details, extract fields, follow streams, calculate protocol and endpoint statistics, edit capture files, and perform selected security and anomaly analysis.

Install Python 3.10+ and Wireshark with tshark on PATH, then run `pip install wireshark-mcp` followed by `wireshark-mcp install`. Select a client during installation and restart it afterward. Claude Code and Codex also support a plugin route using uv and tshark.

Yes, bx33661/Wireshark-MCP works with Cursor. The installation command can configure detected MCP clients, and the server exposes its packet-analysis tools over MCP for capture inspection, field extraction, statistics, stream following, and related operations.

It requires Python 3.10 or newer and Wireshark’s tshark executable available on PATH. Optional utilities such as capinfos, mergecap, editcap, dumpcap, and text2pcap enable additional features. The plugin route additionally requires uv and does not install Wireshark or capture drivers.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWireshark MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/bx33661-wireshark-mcp?style=directory)](https://allmcps.com/mcp/bx33661-wireshark-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/bx33661-wireshark-mcp"><img src="https://allmcps.com/api/badge/bx33661-wireshark-mcp?style=directory" alt="Wireshark MCP on AllMCPs" /></a>