wireshark-mcp
Provides tools for network packet analysis using Wireshark CLI tools, enabling AI agents to capture, filter, and analyze network traffic through the Wireshark platform.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wireshark-mcpanalyze capture.pcap for HTTP traffic"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
English | 简体中文
wiresharkmcp
wiresharkmcp is a standalone MCP server that exposes Wireshark CLI tools to AI agents through MCP tools, resources, and prompts.
Usage Video
A short walkthrough of the repository setup and usage:
Related MCP server: TShark2MCP
5-Minute Setup
1. Install Wireshark CLI
macOS:
Install the official Wireshark
.dmg.Move
Wireshark.appto/Applications.Install
ChmodBPFfrom the same.dmg.
Ubuntu/Debian:
sudo apt update
sudo apt install wireshark-common tsharkIf you use another distro, need dftest, or want a source build, use the advanced guide in docs/advanced-install.md.
2. Install this repository
uv sync3. Generate local config
Run the first-run helper:
uv run python scripts/doctor.pyIt prints:
your current platform and detected Wireshark binaries
a suggested
.envwith absolute binary paths and a home-directoryWIRESHARK_MCP_ALLOWED_ROOTSa suggested stdio
mcpServersJSON block
If you want it to create .env for you:
uv run python scripts/doctor.py --write-envStatus meanings:
usable: all core Wireshark binaries anddftestwere foundusable but degraded: core binaries were found, butdftestis missingnot ready: one or more core binaries are still missing
Minimal .env shape:
WIRESHARK_MCP_ALLOWED_ROOTS=["/absolute/path/to/wireshark-mcp"]
WIRESHARK_MCP_TRANSPORT=stdiodoctor.py also fills any detected WIRESHARK_MCP_*_PATH entries with absolute paths so GUI clients do not depend on your shell PATH.
4. Paste the MCP config into your client and validate
Copy the Suggested MCP config block printed by doctor.py, or start from examples/mcp.json. The recommended command is:
{
"mcpServers": {
"wireshark-mcp": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/wiresharkmcp-public",
"wireshark-mcp"
],
"env": {
"WIRESHARK_MCP_TRANSPORT": "stdio"
}
}
}
}Then connect your MCP client and call ws_runtime_info. That one tool is the only required first-run validation step. It tells you:
which Wireshark binaries were found
which features are currently available
which filesystem roots the server can access
What the First-Run Helper Optimizes
It prefers explicit absolute binary paths over
PATH, which is more reliable for desktop and GUI MCP clients.On macOS it checks
/Applications/Wireshark.app/Contents/MacOSfirst.On Linux it checks
PATHand common locations such as/usr/bin.It refuses to overwrite an existing
.env; if you already have one, it tells you to merge changes manually.
Advanced Docs
Advanced install, source builds, and Linux packaging notes: docs/advanced-install.md
Full configuration reference: .env.example
Security
The server only reads and writes files inside
WIRESHARK_MCP_ALLOWED_ROOTS.Do not commit
.env, capture files, or generated logs from real environments.
License
MIT. See LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides AI assistants with direct access to Wireshark network analysis capabilities, enabling AI-powered network troubleshooting, packet analysis, and network monitoring through a secure interface.11MIT
- Alicense-qualityBmaintenanceAn MCP server that enables AI-assisted network packet analysis using Wireshark's TShark tool. It provides tools for pcap file overview, session extraction, protocol filtering, and statistical analysis through a standardized interface.1MIT
- Flicense-qualityCmaintenanceExposes Wireshark/tshark packet capture, analysis, threat detection, and reporting tools for AI agents and local testing.
- Alicense-qualityDmaintenanceProvides AI assistants with direct access to Wireshark network analysis capabilities, enabling live packet capture, PCAP file analysis, protocol statistics, and network monitoring through a secure MCP interface.1MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Real-time Amazon, WIPO & PACER data for AI agents — 19 tools via the MCP protocol.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Pupillen/wireshark-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server