Until December 31: monthly plans give up to 2.5 times their price in credit. Scale is $200 a month with $400 of usage credit. See plans →

Wireshark MCP

Set up a Wireshark MCP server (tshark) with Claude Code, OpenCode or Cline on Abliterator: servers compared, a first pcap analysis, and keeping captures private.

Published WiresharktsharkMCPNetwork analysisClaude Code

Quick answer

Wireshark MCP is an MIT-licensed MCP server by bx33661 that wraps tshark in 54 tools for reading packet captures: protocol summaries, conversations, expert info, anomaly detectors and stream reassembly. It has no model of its own: connect Claude Code with ANTHROPIC_BASE_URL=https://abliterator.ai, or OpenCode or Cline with https://abliterator.ai/v1. This follows release v4.1.0, checked 2026-12-03.

What Wireshark MCP is

Wireshark MCP is an open-source Model Context Protocol (MCP) server that lets an AI client analyse packet captures by running tshark, Wireshark's command-line analyzer. You give it a .pcap or .pcapng path; the model calls tools such as wireshark_quick_analysis or wireshark_stats_conversations and reads the results. It contains no model. The client you connect supplies one, and that is where Abliterator fits.

This guide follows bx33661/Wireshark-MCP at release v4.1.0 (commit 95e34a4, December 1, 2026), checked 2026-12-03. The configuration below was verified against that source and the client docs linked in each section. It was not run against Abliterator.

Repository github.com/bx33661/Wireshark-MCP, 425 stars (checked 2026-12-03)
Package wireshark-mcp on PyPI, 4.1.0
Licence MIT (LICENSE)
Needs Python 3.10 or later, and tshark on PATH. capinfos, mergecap, editcap, dumpcap and text2pcap are optional
Tools 54 in the default full profile; 42 in analysis (no live capture or file-writing tools); 34 in core (also no decryption, dissection overrides or raw byte dumps)
Transport stdio by default. wireshark-mcp serve --transport streamable-http or sse binds to 127.0.0.1:8080, and refuses other addresses without --allow-insecure-http
Clients in the docs Claude Code, Claude Desktop, Cursor, VS Code, Codex CLI, OpenCode and about a dozen more, through wireshark-mcp install or manual configuration

Only capture and analyse traffic on networks you own or have written permission to monitor. A capture holds other people's data as well as yours: addresses, hostnames, cookies and sometimes passwords. Keep captures local, and read what leaves your machine before you connect a hosted model.

Wireshark MCP servers compared

Several community servers wrap Wireshark's tools. This guide sets up bx33661/Wireshark-MCP because it is maintained (v4.1.0 shipped December 1, 2026), covers the most analysis, and has the controls a capture with personal data needs: read-only profiles, a directory allowlist, bounded results and masked credentials.

Project Stars (2026-12-03) Engine Tools Transport Latest release or commit Licence
bx33661/Wireshark-MCP 425 tshark, Python 54 stdio, streamable HTTP, SSE v4.1.0, 2026-12-01 MIT
0xKoda/WireMCP 609 tshark, Node.js 7 stdio Commit of 2025-07-10, no releases MIT
weirdmachine64/SharkMCP 78 sharkd, Python 30 stdio Commit of 2026-04-28, no releases MIT
khuynh22/mcp-wireshark 72 tshark, Python 14 stdio v0.5.1, 2026-11-12 MIT
mcpcap/mcpcap 54 scapy, Python 9 stdio or HTTP v0.10.0, 2026-09-30 MIT

WireMCP has the most stars and the shortest setup: seven tools for live capture, summary statistics, conversations, credential extraction and checks of IP addresses against the URLhaus blocklist, which it downloads from abuse.ch. Its live capture defaults to interface en0. mcp-wireshark is the smallest Python option and its README is written around Claude Code. mcpcap does not need Wireshark at all and accepts a capture by local path or HTTP URL.

How Wireshark MCP connects to a model

Your MCP client starts wireshark-mcp as a subprocess and talks to it over stdio. Each tool call runs tshark (or another Wireshark program) on a file on your disk, and the server returns the text result. Nothing listens on the network unless you choose an HTTP transport.

model (Abliterator) <-> MCP client <-> wireshark-mcp (stdio) <-> tshark <-> ~/pcaps/capture.pcapng

So the route to Abliterator goes through a client that accepts a custom endpoint:

Client How it reaches Abliterator Covered here
Claude Code Anthropic Messages API at https://abliterator.ai (setup) Yes, the main route
OpenCode OpenAI-compatible provider at https://abliterator.ai/v1 (setup) Yes
Cline (VS Code) OpenAI Compatible provider at https://abliterator.ai/v1 (setup) Yes
Claude Desktop No custom model endpoint. The project's docs include a config for it No

What leaves your machine

The capture file stays on your disk, and tshark runs locally. What reaches the model is each tool's result, and those results carry real data from the capture:

Tool What its result contains
wireshark_open_file, wireshark_quick_analysis, wireshark_stats_* File metadata, protocol counts, IP addresses, ports, hostnames and conversation sizes
wireshark_extract_dns_queries, wireshark_extract_http_requests Queried names; HTTP methods, hosts and URIs
wireshark_follow_stream The reassembled payload of a TCP, UDP, TLS or HTTP stream, as ASCII, hex or raw
wireshark_get_packet_details The full dissection of one packet as JSON
wireshark_extract_credentials Cleartext HTTP Basic and FTP logins it finds, with the password masked to its first character (mask_secret in findings.py). The stream and packet tools above don't mask anything

With a hosted model, whatever a tool returns becomes part of the next API request. Abliterator does not store prompt or completion text; it keeps request metadata such as time, model, key ID, token counts and cost, and the inference provider keeps no inference content (privacy). Your obligations to the people in the capture stay the same, so apply the same rules you would before emailing a pcap:

  • Capture less. Use a capture filter (tshark -f "port 53") and a time limit, so the file holds only the traffic you need.
  • Keep captures in one directory and set WIRESHARK_MCP_ALLOWED_DIRS to it. Reads and writes outside it then fail.
  • Use a smaller profile. --profile core removes raw byte dumps and TLS or WPA decryption. For a capture with personal data, also deny wireshark_follow_stream and wireshark_get_packet_details in your client, as shown below.
  • Redact before you share a capture or a report. editcap -s 96 rewrites a file with each packet cut to its first 96 bytes, which keeps most headers and drops most payload (editcap). Addresses and hostnames remain, so review them too.

Install Wireshark MCP

Install Wireshark or your distribution's tshark package first; on Kali, Debian and Ubuntu that is sudo apt install tshark. On Windows, keep the TShark component selected in the Wireshark installer. Then install the server, pinned to the version this guide was checked against, as in the project's platform checklist:

uv tool install "wireshark-mcp==4.1.0"
wireshark-mcp --version
wireshark-mcp doctor

pip install "wireshark-mcp==4.1.0" inside a virtual environment works too. doctor prints the path it resolved for each Wireshark program and warns about missing ones. Skip wireshark-mcp install for this guide: it writes MCP configs into the clients it detects, and the commands below add the server by hand.

Create a directory for captures:

mkdir -p ~/pcaps

Get a capture to analyse

Use either a public sample or a capture of your own network.

The Wireshark wiki's sample captures page lists hundreds of files. Two small ones suit a first run: http.cap, "A simple HTTP request and response.", and dns.cap, "Various DNS lookups."

cd ~/pcaps
curl -LO https://wiki.wireshark.org/uploads/27707187aeb30df68e70c8fb9d614981/http.cap
curl -LO https://wiki.wireshark.org/uploads/__moin_import__/attachments/SampleCaptures/dns.cap

To capture your own traffic, run tshark on a network you control, with a filter and a stop condition (tshark). Capturing needs capture privileges on the interface; on Debian-based systems that usually means sudo or membership of the wireshark group:

tshark -i eth0 -f "port 53 or port 80" -a duration:60 -w ~/pcaps/home.pcapng

Replace eth0 with your interface; tshark -D lists them.

Connect Claude Code to Abliterator and Wireshark MCP

Claude Code speaks the Anthropic Messages API, which Abliterator serves at https://abliterator.ai. Export the variables from the Claude Code guide in the shell you start it from:

export ANTHROPIC_BASE_URL="https://abliterator.ai"
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
unset ANTHROPIC_API_KEY

export ANTHROPIC_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_OPUS_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_SONNET_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash-abliterated"
export CLAUDE_CODE_SUBAGENT_MODEL="kimi-k3.1-pro-abliterated"

Add the server with claude mcp add, using the core profile and the capture directory as the allowlist. Claude Code's docs ask for another option between --env and the server name, hence the order:

mkdir -p ~/lab && cd ~/lab
claude mcp add --env WIRESHARK_MCP_ALLOWED_DIRS="$HOME/pcaps" --transport stdio wireshark -- wireshark-mcp serve --profile core
claude mcp list

claude mcp list should show wireshark as connected. Tools appear as mcp__wireshark__<tool>, for example mcp__wireshark__wireshark_quick_analysis. For captures that hold other people's data, deny the payload tools in ~/lab/.claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__wireshark__wireshark_follow_stream",
      "mcp__wireshark__wireshark_get_packet_details"
    ]
  }
}

If a GUI-launched client can't find tshark, set WIRESHARK_MCP_TSHARK_PATH to the path wireshark-mcp doctor printed.

Or connect OpenCode or Cline

OpenCode. Set up the provider block from the OpenCode guide first, then add the server to the same opencode.jsonc in the format of OpenCode's MCP servers page. OpenCode calls the environment block environment, and expands no $VARIABLES inside strings, so write the full path:

{
  "mcp": {
    "servers": {
      "wireshark": {
        "type": "local",
        "command": ["wireshark-mcp", "serve", "--profile", "core"],
        "environment": { "WIRESHARK_MCP_ALLOWED_DIRS": "/home/you/pcaps" },
      },
    },
  },
  "permissions": [
    { "action": "wireshark_wireshark_follow_stream", "resource": "*", "effect": "deny" },
    { "action": "wireshark_wireshark_get_packet_details", "resource": "*", "effect": "deny" },
  ],
}

OpenCode names MCP tools <server>_<tool>, which doubles the prefix here. The project's own OpenCode example puts servers directly under mcp; current OpenCode docs nest them under mcp.servers, as above. opencode mcp list shows whether the server connected.

Cline. Set the OpenAI Compatible provider as in the Cline guide, then add the server under mcpServers in Cline's MCP settings (MCP Servers, Configure, Configure MCP Servers), in the format of Cline's MCP configuration page:

{
  "mcpServers": {
    "wireshark": {
      "command": "wireshark-mcp",
      "args": ["serve", "--profile", "core"],
      "env": { "WIRESHARK_MCP_ALLOWED_DIRS": "/home/you/pcaps" },
      "disabled": false,
      "autoApprove": []
    }
  }
}

First task: summarise a capture and write up findings

Start with a summary and a short findings note, without reading payloads. In ~/lab, start claude (or opencode, or a Cline chat) and send:

Analyze /home/you/pcaps/http.cap with the wireshark MCP tools. It is a public sample from the Wireshark wiki.
1. Call wireshark_open_file, then wireshark_quick_analysis, then wireshark_stats_expert_info.
2. Do not follow streams or print packet payloads.
Write a findings note in Markdown with these sections:
- Capture summary: duration, packet count, protocols and their share of packets.
- Hosts and conversations: who talked to whom, and how much.
- Anomalies: anything expert info or the detectors flag, each with frame numbers and the tshark command to re-check it.
- Open questions: what you could not determine from this capture.
Mark anything you inferred rather than read in a tool result.

What comes back:

  • wireshark_open_file returns file information and the protocol hierarchy, and recommends tools for the protocols it found. It is the project's suggested entry point.
  • wireshark_quick_analysis returns a one-call overview: file info, protocols, top talkers, conversations, hostnames and anomalies, with exact expert-info counts as of 4.1.
  • wireshark_stats_expert_info returns tshark's expert analysis grouped by severity: errors, warnings and notes such as retransmissions or malformed packets.
  • Detectors, such as wireshark_detect_port_scan or wireshark_detect_dns_tunnel, return a findings list. Since 4.0 each finding has a stable ID, evidence anchors such as frame numbers, a native tshark command that re-checks it, and candidate MITRE ATT&CK techniques.

A result longer than 8,000 characters is cut to a leading prefix; the model can page with offset, limit or a display_filter, or you can raise WIRESHARK_MCP_MAX_RESULT_CHARS. Before a finding goes in a report, run its tshark command yourself and compare. For your own captures, dns.cap and then a filtered capture of your network are good next steps. For writing findings up as an incident or assessment report, see the cybersecurity use case.

Confirm the requests reached Abliterator:

curl -s https://abliterator.ai/api/v1/activity -H "Authorization: Bearer $ABL_API_KEY" | head -c 600

Which model to pick

Both models support tool calling and a 1,048,576-token context.

Model Use it for Notes
deepseek-v4.1-flash-abliterated Triage of many captures, summaries, first passes Security suites stayed within noise after abliteration: CyberMetric-2000 94.2 → 93.8, InterCode-CTF 94.2 → 95.5, Cybench 98.3 → 96.6 (benchmarks)
kimi-k3.1-pro-abliterated Long investigations that correlate many tool results across captures Terminal-Bench 4.0 fell from 66.6 to 62.3, a drop that is plausible but not statistically shown (benchmarks). No security-suite results yet

The tool list travels with every request. The project measures it at about 23 KB in the full profile and 15 KB in core, and keeps it byte-identical across restarts so it caches. Abliterator caches repeated prefixes automatically: cached input bills at $0.10 per 1M tokens on deepseek-v4.1-flash-abliterated and $0.40 on kimi-k3.1-pro-abliterated (prompt caching).

Why a hosted model sometimes stops

Summarising your own traffic is routine, and hosted models usually do it. Captures from an incident are a different matter: they are security work, and they can contain material such as credentials or exploit traffic that a provider's safeguards react to. Anthropic's Cyber Verification Program page says "You may need CVP if Claude blocks your security work", and that enrolled users "may experience some model refusals and classifier blocks for allowed security work."

On Abliterator's models, refusals fell from 94% to 1% (DeepSeek) and from 94% to 3% (Kimi) after abliteration (benchmarks). That changes what the model will discuss, not what you are allowed to capture or share. Some uses are always prohibited; see the acceptable use policy.

Troubleshooting

Symptom Cause Fix
doctor reports tshark missing, or tools fail to start from a GUI client tshark is not on the PATH the client passes to the server Set WIRESHARK_MCP_TSHARK_PATH (and the other WIRESHARK_MCP_*_PATH variables) in the server's environment
File-writing tools such as wireshark_capture or wireshark_filter_save always fail Since 3.0 they fail closed until WIRESHARK_MCP_ALLOWED_DIRS names existing directories (security migration) Set the variable to existing directories, then restart the client. In core and analysis profiles these tools are not offered at all
A capture can't be opened after you set WIRESHARK_MCP_ALLOWED_DIRS Reads are confined to those directories too Move the file into an allowed directory
A result ends early Output over 8,000 characters is bounded Page with offset, limit or display_filter, or raise WIRESHARK_MCP_MAX_RESULT_CHARS
wireshark_aggregate stops on a large capture Default 30-second budget and one-million-row scan limit Raise WIRESHARK_MCP_AGGREGATE_TIMEOUT or WIRESHARK_MCP_AGGREGATE_SCAN_LIMIT, or install the [index] extra and build an index first
OpenCode ignores the server Server placed directly under mcp Nest it under mcp.servers, as above
404 Model "claude-..." is not available on abliterator A Claude Code model alias is not pinned Set all the model variables above

Frequently asked questions

What is Wireshark MCP?

Wireshark MCP is a Model Context Protocol server that runs tshark, Wireshark's command-line analyzer, on capture files and returns the results to an AI client as tools. The most complete one, bx33661/Wireshark-MCP, has 54 tools covering packet lists, statistics, stream reassembly and anomaly detectors. The model comes from the client you connect.

Is there an official Wireshark MCP server?

The servers compared on this page are community projects on GitHub, and none of their READMEs claims backing from the Wireshark project. mcp-wireshark states that it is not affiliated with Wireshark. All of them call tshark or sharkd, which ship with Wireshark, except mcpcap, which parses captures with scapy.

Does a Wireshark MCP server send my packets to the model?

It sends whatever its tools return. Summaries carry IP addresses, hostnames and DNS names; stream and packet-detail tools can return payloads, including cleartext credentials. With a hosted model, that text goes to the API in the next request, so redact or restrict tools before you analyse captures that hold other people's data.

Can Wireshark MCP capture live traffic?

Yes, in its default full profile. wireshark_capture uses dumpcap, or tshark as a fallback, and stops at five minutes, one million packets or 100 MiB per call. It writes a file, so it only works once WIRESHARK_MCP_ALLOWED_DIRS names an existing directory. The analysis and core profiles remove it.

Try it in your browser.

Ask it something your usual model refuses.

Start a chat

No sign-up to try. $10 free when you verify your email.