The Zeek-MCP server implements the Model Context Protocol, allowing conversational AI clients to perform network traffic analysis using Zeek's powerful packet inspection capabilities directly from within chat interfaces.
git clone https://github.com/Gabbo01/Zeek-MCP
cd Zeek-MCP
It's recommended to use a virtual environment:
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
pip install -r requirements.txt
If you don't have a requirements.txt file, install the required packages directly:
pip install pandas mcp
Start the server with the following command:
python Bridge_Zeek_MCP.py --mcp-host 127.0.0.1 --mcp-port 8081 --transport sse
Available options:
--mcp-host: Host address (default: 127.0.0.1)--mcp-port: Port number (default: 8081)--transport: Protocol, either sse (Server-Sent Events) or stdioThe Zeek-MCP server exposes two main tools:
execzeek(pcap_path: str) -> str
parselogs(logfile: str) -> DataFrame
To set up Claude Desktop as a client:
Claude → Settings → Developer → Edit Config → claude_desktop_config.json{
"mcpServers": {
"Zeek-mcp": {
"command": "python",
"args": [
"/ABSOLUTE_PATH_TO/Bridge_Zeek_MCP.py",
]
}
}
}
Alternatively, edit this file directly:
/Users/YOUR_USER/Library/Application Support/Claude/claude_desktop_config.json
To set up with 5ire:
Tools → Newpython /ABSOLUTE_PATH_TO/Bridge_Zeek_MCP.pyYou can also integrate with Chainlit by following their MCP documentation.
The server can be used to analyze network packet captures (PCAP files). The workflow typically involves:
execzeek with a path to a PCAP fileparselogs to parse and analyze the generated log filesExample PCAP files for testing can be found in the pcaps folder of the repository.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "zeek-mcp" '{"command":"python","args":["Bridge_Zeek_MCP.py"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"zeek-mcp": {
"command": "python",
"args": [
"Bridge_Zeek_MCP.py"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"zeek-mcp": {
"command": "python",
"args": [
"Bridge_Zeek_MCP.py"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect