ジーク-MCP
このリポジトリは、会話型 AI クライアントと統合できる MCP サーバー (モデル コンテキスト プロトコル) を構築するためのユーティリティ セットを提供します。
目次
前提条件
- Python 3.7以上
- Zeekがインストールされ、
PATH
で利用可能 (execzeek
ツール用) - pip (Python 依存関係のインストール用)
インストール
1. リポジトリをクローンする
2. 依存関係をインストールする
仮想環境を使用することをお勧めします。
注:
requirements.txt
がない場合は、直接インストールしてください。
使用法
リポジトリは、2 つの主要な MCP ツールとコマンドライン エントリ ポイントを公開します。
3. MCPサーバーを実行する
--mcp-host
: MCP サーバーのホスト (デフォルト:127.0.0.1
)。--mcp-port
: MCP サーバーのポート (デフォルト:8081
)。--transport
: トランスポート プロトコルsse
(Server-Sent Events) またはstdio
いずれか。
4. MCPツールを使用する
次のツールを呼び出して、MCP ツールの使用をサポートできる LLM を使用する必要があります。
execzeek(pcap_path: str) -> str
- **説明:**作業ディレクトリ内の既存の
.log
ファイルを削除した後、指定された PCAP ファイルに対して Zeek を実行します。 - **戻り値:**生成された
.log
ファイル名をリストする文字列、またはエラーの場合は"1"
。
- **説明:**作業ディレクトリ内の既存の
parselogs(logfile: str) -> DataFrame
- **説明:**単一の Zeek
.log
ファイルを解析し、解析されたコンテンツを返します。
- **説明:**単一の Zeek
これらのエンドポイントは、HTTP (SSE トランスポートを使用している場合) 経由、または LLM クライアント (例: Claude Desktop) に埋め込むことによって操作できます。
クロードデスクトップ統合:
Claude Desktop を Zeek MCP クライアントとして設定するには、 Claude
-> Settings
-> Developer
-> Edit Config
-> claude_desktop_config.json
に移動し、以下を追加します。
あるいは、このファイルを直接編集します。
5ire統合:
バックエンドで複数のモデルをサポートする別のMCPクライアントは5ireです。Zeek-MCPを設定するには、5ireを開き、 Tools
」→ New
に移動して、以下の設定を行います。
- ツールキー: ZeekMCP
- 名前: Zeek-MCP
- コマンド:
python /ABSOLUTE_PATH_TO/Bridge_Zeek_MCP.py
あるいは、Chainlit フレームワークを使用し、ドキュメントに従って MCP サーバーを統合することもできます。
例
Chainlit チャットボット クライアントからの MCP ツールの使用例。サンプル pcap ファイルが使用されました (pcaps フォルダーにいくつかあります)
ライセンス
詳細については、 LICENSE
参照してください。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Zeek ネットワーク分析機能と LLM チャットボットを統合し、自然言語による対話を通じて PCAP ファイルを分析し、ネットワーク ログを解析できるようにするモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides LLM Agents with a comprehensive toolset for IP geolocation, network diagnostics, system monitoring, cryptographic operations, and QR code generation.Last updated -1667711TypeScriptApache 2.0
ZenML MCP Serverofficial
-securityAlicense-qualityA server implementing Model Context Protocol that enables LLMs to interact with the ZenML platform, providing access to pipeline data, stack information, and the ability to trigger new pipeline runs.Last updated -23PythonMIT License- AsecurityAlicenseAqualityA Model Context Protocol server that provides LLMs with real-time network traffic analysis capabilities, enabling tasks like threat hunting, network diagnostics, and anomaly detection through Wireshark's tshark.Last updated -7177JavaScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that allows AI assistants to execute and manage JMeter performance tests through natural language commands.Last updated -236Python