Is the Wireshark MCP server safe? What it can reach
What the Wireshark MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Wireshark has no official MCP server. Wireshark-MCP by bx33661 is the most used community option, with 409 GitHub stars and a push on 2026-11-01. It runs locally over stdio and wraps tshark. Reading a capture is the main use, and the control that matters is the analysis profile, which drops live capture and file-writing tools.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Wireshark-MCP (bx33661, community) | Community | active |
It runs as a local process on your machine.
How it signs in
There is no sign-in or API key. The server runs as your OS user and calls tshark on your machine. It can read any capture file that user can read unless you set WIRESHARK_MCP_ALLOWED_DIRS.
What its tools can do
| Kind | Tools |
|---|---|
| Read | wireshark_open_file, wireshark_quick_analysis, wireshark_aggregate, wireshark_extract_fields, wireshark_get_packet_details, wireshark_get_packet_bytes, wireshark_extract_dns_queries, wireshark_detect_dns_tunnel, wireshark_detect_beaconing, wireshark_detect_exfiltration, wireshark_detect_protocol_anomalies, wireshark_detect_arp_spoofing, wireshark_analyze_protocol, wireshark_list_interfaces, wireshark_get_capabilities, wireshark_flow_graph, wireshark_scan_file_signatures, wireshark_decrypt_tls, wireshark_decrypt_wpa, wireshark_decode_as, wireshark_set_protocol_prefs |
| Write | wireshark_capture, wireshark_case, wireshark_index, wireshark_yara_scan, wireshark_export_objects, wireshark_extract_frames, wireshark_filter_save, wireshark_merge_pcaps, wireshark_text2pcap_import, wireshark_editcap_deduplicate, wireshark_editcap_split, wireshark_editcap_time_shift, wireshark_editcap_trim |
| Can’t be undone | none documented |
The README lists 54 tools but names only some of them. The names here come from the README and the repo’s profiles.py and tool_annotations.py, and they are not the full set. Tools in the write list are the ones the server marks as creating files or capturing traffic. wireshark_index writes only its own cache.
Built-in limits
| Option | What it does |
|---|---|
--profile analysis | Run wireshark-mcp serve --profile analysis to drop live capture, interface listing and caller-directed file-writing tools (42 tools). |
--profile core | Drops the analysis profile’s tools plus decryption, dissection overrides and low-level views (34 tools). |
WIRESHARK_MCP_ALLOWED_DIRS | Comma-separated existing directories. When set, every capture read and file write must stay inside them. File-writing tools fail closed until it is set. |
WIRESHARK_MCP_MAX_RESULT_CHARS | Caps tool output at 8000 characters by default. |
Loopback-only HTTP | HTTP and SSE bind to loopback unless you pass --allow-insecure-http, which the docs say belongs behind a trusted authenticated TLS proxy. |
The risks
- wireshark_capture records live traffic from a network interface, so an injected instruction could start a capture that grabs credentials or private data in transit and write it to disk.
- Capture files hold other people’s traffic, and packet contents are untrusted input. A crafted packet payload or DNS name can carry text that tries to steer the agent after tshark returns it.
- wireshark_decrypt_tls and wireshark_decrypt_wpa turn encrypted traffic into readable data when given keys, and the output goes to your LLM provider as tool results.
- Without WIRESHARK_MCP_ALLOWED_DIRS, reads are unrestricted for your OS user, so the server can open any capture it is pointed to anywhere on the disk.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add wireshark -- wireshark-mcp serve --profile analysisClaude Code names MCP tools mcp__wireshark__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__wireshark__wireshark_capture",
"mcp__wireshark__wireshark_list_interfaces",
"mcp__wireshark__wireshark_decrypt_tls",
"mcp__wireshark__wireshark_decrypt_wpa",
"mcp__wireshark__wireshark_set_protocol_prefs"
],
"ask": [
"mcp__wireshark__wireshark_case",
"mcp__wireshark__wireshark_yara_scan",
"mcp__wireshark__wireshark_export_objects",
"mcp__wireshark__wireshark_extract_frames",
"mcp__wireshark__wireshark_filter_save",
"mcp__wireshark__wireshark_merge_pcaps",
"mcp__wireshark__wireshark_text2pcap_import",
"mcp__wireshark__wireshark_editcap_deduplicate",
"mcp__wireshark__wireshark_editcap_split",
"mcp__wireshark__wireshark_editcap_time_shift",
"mcp__wireshark__wireshark_editcap_trim"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.wireshark]
command = "wireshark-mcp"
args = ["serve", "--profile", "analysis"]
disabled_tools = ["wireshark_capture", "wireshark_list_interfaces", "wireshark_decrypt_tls", "wireshark_decrypt_wpa", "wireshark_set_protocol_prefs"]Checklist
- Start with --profile analysis, or core if you only read captures.
- Set WIRESHARK_MCP_ALLOWED_DIRS to one capture folder and one results folder.
- Treat packet contents as untrusted, and keep real captures of customer traffic out of shared agent sessions.
- Run wireshark-mcp doctor after install to confirm which tools were found.
Checked against the vendor documentation on November 25, 2026. Wireshark-MCP README · Wireshark-MCP configuration reference · Wireshark-MCP 3.0 security migration guide
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing