
0xkoda/wiremcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
WireShark(tshark)用のMCP。リアルタイムネットワークトラフィック解析機能を備えたLLMを強化
概要
WireMCPは、大規模言語モデル(LLM)にリアルタイムのネットワークトラフィック解析機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。Wiresharkのtshark上に構築されたツールを活用することで、ライブネットワークデータをキャプチャ・処理し、脅威ハンティング、ネットワーク診断、異常検出などのタスクを支援する構造化されたコンテキストをLLMに提供します。 WireMCPは以下のツールをMCPクライアントに公開し、ネットワーク活動のLLM理解を深めます。 - : ライブトラフィックをキャプチャし、生のパケットデータをJSONとして返すことで、LLMがパケットレベルの詳細(例:IPアドレス、ポート、HTTPメソッド)を分析できるようにします。- : プロトコル階層統計を提供し、LLMにトラフィック構成の概要(例:TCPとUDPの使用状況)を把握できます。- : TCP/UDPの会話統計を提供し、LLMがエンドポイント間の通信フローを追跡できるようにします。
概要(AI 翻訳)
WireMCPは、大規模言語モデル(LLM)にリアルタイムのネットワークトラフィック解析機能を搭載するために設計されたモデルコンテキストプロトコル(MCP)サーバーです。Wiresharkのtshark上に構築されたツールを活用することで、WireMCPはライブネットワークデータをキャプチャ・処理し、脅威ハンティング、ネットワーク診断、異常検出などのタスクを支援する構造化されたコンテキストをLLMに提供します。
特徴
WireMCPは以下のツールをMCPクライアントに公開し、ネットワーク活動のLLM理解を深めます。
capture_packets:ライブトラフィックをキャプチャし、生のパケットデータをJSONとして返すことで、LLMがパケットレベルの詳細(例:IPアドレス、ポート、HTTPメソッド)を解析できるようにします。get_summary_stats:プロトコル階層統計を提供し、LLMにトラフィック構成の概要(例:TCPとUDPの使用状況)を提供します。get_conversations:TCP/UDPの会話統計を提供し、LLMがエンドポイント間の通信フローを追跡できるようにします。check_threats:IPをキャプチャし、URLhausブラックリストと照合し、LLMに悪意ある活動を特定するための脅威インテリジェンスコンテキストを提供します。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
WireMCP
WireMCP is a Model Context Protocol (MCP) server designed to empower Large Language Models (LLMs) with real-time network traffic analysis capabilities. By leveraging tools built on top of Wireshark’s tshark, WireMCP captures and processes live network data, providing LLMs with structured context to assist in tasks like threat hunting, network diagnostics, and anomaly detection.
Features
WireMCP exposes the following tools to MCP clients, enhancing LLM understanding of network activity:
capture_packets: Captures live traffic and returns raw packet data as JSON, enabling LLMs to analyze packet-level details (e.g., IP addresses, ports, HTTP methods).get_summary_stats: Provides protocol hierarchy statistics, giving LLMs an overview of traffic composition (e.g., TCP vs. UDP usage).get_conversations: Delivers TCP/UDP conversation statistics, allowing LLMs to track communication flows between endpoints.check_threats: Captures IPs and checks them against the URLhaus blacklist, equipping LLMs with threat intelligence context for identifying malicious activity.check_ip_threats: Performs targeted threat intelligence lookups for specific IP addresses against multiple threat feeds, providing detailed reputation and threat data.analyze_pcap: Analyzes PCAP files to provide comprehensive packet data in JSON format, enabling detailed post-capture analysis of network traffic.extract_credentials: Scans PCAP files for potential credentials from various protocols (HTTP Basic Auth, FTP, Telnet), aiding in security audits and forensic analysis.
How It Helps LLMs
WireMCP bridges the gap between raw network data and LLM comprehension by:
- Contextualizing Traffic: Converts live packet captures into structured outputs (JSON, stats) that LLMs can parse and reason about.
- Threat Detection: Integrates IOCs (currently URLhaus) to flag suspicious IPs, enhancing LLM-driven security analysis.
- Diagnostics: Offers detailed traffic insights, enabling LLMs to assist with troubleshooting or identifying anomalies.
- Narrative Generation: LLM’s can Transform complex packet captures into coherent stories, making network analysis accessible to non-technical users.
Installation
Prerequisites
- Mac / Windows / Linux
- Wireshark (with
tsharkinstalled and accessible in PATH) - Node.js (v16+ recommended)
- npm (for dependency installation)
Setup
-
Clone the repository:
git clone https://github.com/0xkoda/WireMCP.git cd WireMCP -
Install dependencies:
npm install -
Run the MCP server:
node index.js
Note: Ensure
tsharkis in your PATH. WireMCP will auto-detect it or fall back to common install locations (e.g.,/Applications/Wireshark.app/Contents/MacOS/tsharkon macOS).
Usage with MCP Clients
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"wiremcp": {
"command": "node",
"args": [
"/ABSOLUTE_PATH_TO/WireMCP/index.js"
]
}
}
}