
wireshark mcp dissector
Wireshark Lua dissector for the Model Context Protocol (MCP)
Repository Info
About This Server
Wireshark Lua dissector for the Model Context Protocol (MCP)
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Wireshark MCP Dissector
A Wireshark protocol dissector for the Model Context Protocol (MCP), implemented in Lua.
Overview
This dissector enables Wireshark to interpret and display Model Context Protocol (MCP) traffic. It provides a structured view of MCP packets, making it easier to analyze, debug, and understand MCP communications.
Features
- Full dissection of MCP headers and payload data
- Support for all message types (Control, Data, and Error messages)
- Detailed flag bit analysis
- TCP stream reassembly support
- Heuristic protocol detection
- Compatible with both TCP and UDP transports
Installation
Automatic Installation
- Download the
mcp_dissector.luafile from this repository - Place it in your Wireshark plugins directory:
- Windows:
%APPDATA%\Wireshark\plugins\ - Linux:
~/.local/lib/wireshark/plugins/or~/.wireshark/plugins/ - macOS:
~/.wireshark/plugins/
- Windows:
- Restart Wireshark
Manual Installation from Source
# Clone the repository
git clone https://github.com/jatindangi1206/wireshark-mcp-dissector.git
# Copy the Lua script to your Wireshark plugins directory
# Windows (run in PowerShell)
cp wireshark-mcp-dissector/mcp_dissector.lua "$env:APPDATA\Wireshark\plugins\"
# Linux/macOS
cp wireshark-mcp-dissector/mcp_dissector.lua ~/.wireshark/plugins/
Usage
Once installed, the dissector will automatically detect MCP traffic on TCP/UDP port 8765.
If your MCP implementation uses different ports:
- Open Wireshark and capture some MCP traffic
- Right-click on one of the packets and select "Decode As..."
- Choose "MCP" from the list of available protocols
- Click "Apply"
Customization
You can customize the dissector by editing the mcp_dissector.lua file:
- Change the default ports by modifying the port registration lines
- Add additional message types or flags as needed
- Extend the payload parsing for specific message types
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
License
This project is licensed under the MIT License.
References
- Official MCP Documentation: mcp.so
- Wireshark Lua API Reference
Quick Start
Clone the repository
git clone https://github.com/jatindangi1206/wireshark-mcp-dissectorInstall dependencies
cd wireshark-mcp-dissector
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.