WireMCP  by 0xKoda

Real-time network traffic analysis for LLMs

Created 7 months ago
251 stars

Top 99.8% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

WireMCP is a Model Context Protocol (MCP) server designed to integrate real-time network traffic analysis with Large Language Models (LLMs). It empowers LLMs with the ability to understand and act upon live network data, facilitating advanced applications in threat hunting, network diagnostics, and anomaly detection by converting raw packet information into structured, LLM-consumable formats.

How It Works

This project utilizes Wireshark's command-line tool, tshark, to capture and process network packets. WireMCP exposes a suite of tools—including live capture, statistical analysis, conversation tracking, and threat intelligence lookups—via an MCP interface. By converting complex network data into structured JSON outputs, it enables LLMs to parse, reason about, and derive actionable insights from network activity, bridging the gap between low-level data and high-level comprehension.

Quick Start & Requirements

  • Installation: Clone the repository, navigate into the directory, run npm install to install Node.js dependencies, and start the server using node index.js.
  • Prerequisites: Wireshark (with tshark installed and accessible in the system's PATH), Node.js (v16+ recommended), and npm.
  • Setup: Ensure tshark is correctly configured in your PATH; WireMCP attempts auto-detection if it's not found.
  • Docs: Usage examples for integrating with MCP clients like Cursor are provided in the README.

Highlighted Details

  • Offers tools for capturing live traffic (capture_packets) and analyzing PCAP files (analyze_pcap), outputting data as JSON.
  • Provides network traffic statistics, including protocol hierarchy (get_summary_stats) and conversation summaries (get_conversations).
  • Integrates basic threat intelligence by checking captured IPs against the URLhaus blacklist (check_threats, check_ip_threats).
  • Includes functionality to scan PCAP files for potential credentials across various protocols (extract_credentials).

Maintenance & Community

Contributions are welcomed via pull requests, with a process for discussing significant changes by opening an issue first. The project acknowledges the Wireshark/tshark team, the MCP community, and URLhaus for their contributions. Specific community channels or active maintainer details beyond the repository owner are not detailed.

Licensing & Compatibility

The project is released under the MIT License. This permissive license allows for commercial use, modification, and distribution, provided the original copyright and license notice are included.

Limitations & Caveats

Currently, the threat intelligence capabilities are limited to the URLhaus blacklist, although future expansion to include additional IOC providers is planned. The effectiveness of threat detection is contingent on the scope and accuracy of the integrated threat intelligence feeds.

Health Check
Last Commit

3 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
2
Star History
21 stars in the last 30 days

Explore Similar Projects

Starred by Han Wang Han Wang(Cofounder of Mintlify), John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), and
6 more.

evidently by evidentlyai

0.4%
7k
Open-source framework for ML/LLM observability
Created 5 years ago
Updated 1 day ago
Starred by Luis Capelo Luis Capelo(Cofounder of Lightning AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
6 more.

opik by comet-ml

1.2%
15k
Open-source LLM evaluation framework for RAG, agents, and more
Created 2 years ago
Updated 20 hours ago
Feedback? Help us improve.