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 サーバー (モデル コンテキスト プロトコル) を構築するためのユーティリティ セットを提供します。


目次


前提条件

  • Python 3.7以上
  • Zeekがインストールされ、 PATHで利用可能 ( execzeekツール用)
  • pip (Python 依存関係のインストール用)

インストール

1. リポジトリをクローンする

git clone https://github.com/Gabbo01/Zeek-MCP cd Zeek-MCP

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

使用法

リポジトリは、2 つの主要な 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 を 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 フォルダーにいくつかあります)

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ツールを使用する
        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