Zeek-MCP

Zeek-MCP acts as a friendly bridge between deep network traffic analysis and conversational AI. It allows anyone to "talk" to their network data by connecting the popular Zeek network security monitor to AI assistants like Claude. Instead of manually sifting through complex packet captures or raw data, a user can simply provide a file to their AI and ask questions about what happened on the network, making high-level security auditing much more accessible. For those looking for more control, this tool exposes specific network functions to a Large Language Model (LLM) through the Model Context Protocol. It features two primary capabilities: the `execzeek` tool, which runs Zeek on PCAP files to generate detailed logs, and the `parselogs` tool, which transforms those raw logs into structured data frames. This automation handles the messy work of clearing out old files and organizing new ones, ensuring the AI always has clean, relevant data to interpret. Developers building security-focused AI agents will find this MCP particularly useful because it supports both Standard Input/Output (stdio) and Server-Sent Events (SSE) transport protocols. It integrates smoothly with platforms like Claude Desktop, 5ire, and the Chainlit framework, enabling the creation of custom cybersecurity chatbots. By giving an LLM the direct ability to run diagnostics and parse network logs, it empowers automated systems to perform threat hunting and incident response in a way that is both fast and intuitive.

Category: Data & Analytics

Tags: cybersecurity, network-analysis, pcap, threat-hunting, zeek

Visit Zeek-MCP

How to install and configure Zeek-MCP

1. Installation Prerequisites: * Python 3.7+ * Zeek installed and available in your PATH. * pip (for Python dependencies). Steps: 1. Clone the repository: bash git clone https://github.com/Gabbo01/Zeek-MCP cd Zeek-MCP 2. Install dependencies: It is recommended to use a virtual environment: bash python -m venv venv source venv/bin/activate # Linux/macOS # OR venv\Scripts\activate # Windows pip install -r requirements.txt Note: If no requirements.txt is present, install directly via pip install pandas mcp. ---

2. Configuration

Claude Desktop To integrate with Claude Desktop, edit your claude_desktop_config.json (found at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add the following: json { "mcpServers": { "Zeek-mcp": { "command": "python", "args": [ "/ABSOLUTE_PATH_TO/Bridge_Zeek_MCP.py" ] } } }

5ire Integration 1. Open 5ire and navigate to Tools -> New. 2. Set Tool Key: ZeekMCP 3. Set Name: Zeek-MCP 4. Set Command: python /ABSOLUTE_PATH_TO/Bridge_Zeek_MCP.py

Manual/SSE Server Run If you wish to run the server independently using SSE transport: bash python Bridge_Zeek_MCP.py --mcp-host 127.0.0.1 --mcp-port 8081 --transport sse ---

3. Available Tools * execzeek(pcap_path: str) -> str: * Description: Deletes existing .log files in the working directory and runs Zeek on the provided PCAP file. * Returns: A string listing the generated .log filenames or "1" on error. * parselogs(logfile: str) -> DataFrame: * Description: Parses a specific Zeek .log file. * Returns: The parsed content of the log file. ---

4. Example Prompts The server is designed for network analysis tasks. You can use prompts such as: * "Run Zeek on the file at /path/to/capture.pcap and tell me what log files were generated." * "Analyze the conn.log file from my latest Zeek run and summarize the top connection sources." * "Use the execzeek tool on the sample PCAP in the pcaps folder and then parse the http.log to look for suspicious headers."

What you can do with Zeek-MCP

Use Case 1: Accelerated Security Incident Response Problem: Security analysts often need to sift through large PCAP (packet capture) files during an investigation to identify the "root cause" of a breach. Manually running Zeek commands and interpreting complex log files like conn.log or dns.log can be time-consuming and requires deep expertise in network protocols. Solution: This MCP allows an analyst to simply provide a PCAP file to a conversational AI. The AI can automatically execute Zeek to extract relevant logs and then use its reasoning capabilities to correlate events, identify suspicious IP addresses, and summarize the attack timeline in plain English. Example: An analyst says, "Analyze suspicious_traffic.pcap and tell me if there is any evidence of data exfiltration." The AI runs execzeek, parses the http.log and conn.log, and replies, "I found an unusually large outbound transfer of 500MB to an external IP in Russia via port 443."

Use Case 2: Automated Protocol Compliance Auditing Problem: Network administrators must ensure that their infrastructure follows security policies, such as using only modern encryption (TLS 1.2+) and avoiding prohibited protocols. Manually checking every connection in a capture to ensure compliance is tedious and error-prone. Solution: Using the Zeek-MCP, a user can ask the AI to audit a network capture for specific policy violations. The AI can parse the ssl.log or known_services.log to identify deprecated protocols or unauthorized services running on the network. Example: A sysadmin asks, "Scan this network capture and list any devices still using TLS 1.0 or 1.1." The AI uses parselogs on ssl.log, filters the version column, and provides a list of specific internal IP addresses that need to be updated.

Use Case 3: Network Performance and Connectivity Troubleshooting Problem: When a web application is slow or failing, developers often capture traffic to see if the issue is at the network layer. However, looking at raw packets is difficult for developers who aren't network specialists. They may struggle to identify if a connection was reset by the server or if it timed out. Solution: The AI acts as a bridge between the developer and the network data. It can use the parselogs tool to examine the conn.log (specifically the connection state strings like 'RSTR' or 'S0') to explain exactly why a connection failed. Example: A developer asks, "Why are my API calls to the production server failing in this PCAP?" The AI runs Zeek, parses conn.log, and…

Key facts

  • Open Source
  • Data & Analytics, Security & Compliance
  • cybersecurity, network-analysis, pcap, threat-hunting, zeek

Part of MCP Servers

Related MCP servers

  • MCP KQL Server β€” Execute KQL queries using Azure authentication. Requires Azure CLI login.
  • MCP Jupyter Complete β€” A server for Jupyter notebook manipulation with position-based operations and VS Code integration.
  • MCP Mempool β€” Access Bitcoin network data from mempool.space's API for AI agents and applications.
  • MCP Options Order Flow Server β€” A high-performance MCP server for comprehensive options order flow analysis.
  • MCP Orlen Wholesale Price β€” Model Context Protocol Servers for Orlen Wholesale Price.
  • MCP OpenDART β€” Access financial data from Korea's OpenDART (Data Analysis, Retrieval and Transfer System) for AI language models.
  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories