Zeek-MCP

Integrations

  • Provides integration with pandas for parsing and analyzing Zeek log files, returning structured data from network traffic analysis as DataFrame objects.

지크-MCP

이 저장소는 대화형 AI 클라이언트와 통합할 수 있는 MCP(모델 컨텍스트 프로토콜) 서버를 구축하는 데 필요한 유틸리티 세트를 제공합니다.


목차


필수 조건

  • 파이썬 3.7 이상
  • PATHZeek가 설치되어 사용 가능함( execzeek 도구용)
  • pip (Python 종속성 설치용)

설치

1. 저장소를 복제합니다.

지엑스피1

2. 종속성 설치

가상 환경을 사용하는 것이 좋습니다.

python -m venv venv source venv/bin/activate # Linux/macOS venv\Scripts\activate # Windows pip install -r requirements.txt

참고: requirements.txt 가 없으면 직접 설치하세요.

pip install pandas mcp

용법

저장소는 두 가지 주요 MCP 도구와 명령줄 진입점을 제공합니다.

3. MCP 서버 실행

python Bridge_Zeek_MCP.py --mcp-host 127.0.0.1 --mcp-port 8081 --transport sse
  • --mcp-host : MCP 서버의 호스트(기본값: 127.0.0.1 ).
  • --mcp-port : MCP 서버의 포트(기본값: 8081 ).
  • --transport : sse (Server-Sent Events) 또는 stdio 중 하나의 전송 프로토콜입니다.

4. MCP 도구 사용

다음 도구를 호출하여 MCP 도구 사용을 지원할 수 있는 LLM을 사용해야 합니다.

  1. execzeek(pcap_path: str) -> str
    • 설명: 작업 디렉토리에서 기존 .log 파일을 삭제한 후 지정된 PCAP 파일에서 Zeek를 실행합니다.
    • 반환값: 생성된 .log 파일 이름을 나열하는 문자열 또는 오류 시 "1" 합니다.
  2. parselogs(logfile: str) -> DataFrame
    • 설명: 단일 Zeek .log 파일을 구문 분석하고 구문 분석된 내용을 반환합니다.

HTTP(SSE 전송을 사용하는 경우)를 통해 또는 LLM 클라이언트(예: Claude Desktop)에 내장하여 이러한 엔드포인트와 상호 작용할 수 있습니다.

Claude Desktop 통합:

Claude Desktop을 Zeek MCP 클라이언트로 설정하려면 Claude -> Settings -> Developer -> Edit Config -> claude_desktop_config.json 으로 이동하여 다음을 추가합니다.

{ "mcpServers": { "Zeek-mcp": { "command": "python", "args": [ "/ABSOLUTE_PATH_TO/Bridge_Zeek_MCP.py", ] } } }

또는 이 파일을 직접 편집하세요.

/Users/YOUR_USER/Library/Application Support/Claude/claude_desktop_config.json
5ire 통합:

백엔드에서 여러 모델을 지원하는 또 다른 MCP 클라이언트는 5ire 입니다. Zeek-MCP를 설정하려면 5ire를 열고 Tools -> New 로 이동하여 다음 구성을 설정하세요.

  1. 도구 키: ZeekMCP
  2. 이름: Zeek-MCP
  3. 명령어: python /ABSOLUTE_PATH_TO/Bridge_Zeek_MCP.py
혹은 Chainlit 프레임워크를 사용하고 설명서 에 따라 MCP 서버를 통합할 수 있습니다.

예시

Chainlit 챗봇 클라이언트의 MCP 도구 사용 예입니다. 여기에는 예시 pcap 파일이 사용되었습니다(pcaps 폴더에서 fews를 찾을 수 있음).

In that case the used model was claude-3.7-sonnet-reasoning-gemma3-12b


특허

자세한 내용은 LICENSE 참조하세요.

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Zeek 네트워크 분석 기능을 LLM 챗봇과 통합하는 모델 컨텍스트 프로토콜 서버로, 챗봇이 자연어 상호작용을 통해 PCAP 파일을 분석하고 네트워크 로그를 구문 분석할 수 있도록 지원합니다.

  1. 목차
    1. 필수 조건
      1. 설치
        1. 저장소를 복제합니다.
        2. 종속성 설치
      2. 용법
        1. MCP 서버 실행
        2. MCP 도구 사용
      3. 예시
        1. 특허

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.
            Last updated -
            1
            8
            7
            JavaScript
            Apache 2.0
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that enables ChatGPT and other AI assistants to directly interact with JIRA issues, currently offering the ability to retrieve issue details.
            Last updated -
            TypeScript
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server implementation that provides a standardized interface for applications to interact with OpenRouter's language models through a unified conversation management system.
            Last updated -
            TypeScript
            MIT License
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that integrates essential penetration testing tools (Nmap, Gobuster, Nikto, John the Ripper) into a unified natural language interface, allowing security professionals to execute and chain multiple tools through conversational commands.
            Last updated -
            8
            52
            31
            TypeScript
            • Linux
            • Apple

          View all related MCP servers

          ID: 0zmxump9vd