AG

a-g-u-p-t-a/wireshark-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

24 stars 4 forks 품질 72 트렌드 14

TShark/Wireshark MCP server for network packet analysis via Claude

개요

Packet capture and analysis for AI agents via the Model Context Protocol (MCP). Works with : Cursor, Claude Desktop, Claude Code, VS Code / Copilot, Windsurf, custom agents, and similar tools. No vendor lock-in — the host only needs to launch: GitHub Pages (optional): set , then the Pages workflow publishes docs/ as HTML. - Live capture and pcap/pcapng analysis through MCP - Guided workflows via MCP - Startup : if TShark is missing, the process exits so your host shows the server offline/error instead of a broken tool list - setup / doctor CLIs so a new user can configure paths without guessing - Python - TShark (PATH or TSHARK_PATH) - Npcap (Windows) or libpcap (Unix) for capture - Authorization to capture on the target network setup detects TShark (or asks for its path) and writes or prints a standard mcpServers JSON block. Point your host at that config, then the host. - Python: C:\Users\YOU\...\wireshark-mcp\.venv\Scripts\python.

README

원문 README의 일부입니다. 원문 보기.

Wireshark MCP Server

Packet capture and analysis for AI agents via the Model Context Protocol (MCP).

Works with any stdio MCP host: Cursor, Claude Desktop, Claude Code, VS Code / Copilot, Windsurf, custom agents, and similar tools. No vendor lock-in — the host only needs to launch:

python -m wireshark_mcp

Version 0.2.2

Docs (wiki)
Setup for novices Install TShark + this package
MCP clients Cursor, Claude, VS Code, generic
Troubleshooting Offline server, PATH issues
Security Safe capture rules

GitHub Pages (optional): set Settings → Pages → Source = GitHub Actions, then the Pages workflow publishes docs/ as HTML.

What you get

  • Live capture and pcap/pcapng analysis through MCP tools
  • Guided workflows via MCP prompts
  • Startup preflight: if TShark is missing, the process exits so your host shows the server offline/error instead of a broken tool list
  • setup / doctor CLIs so a new user can configure paths without guessing

Requirements

  • Python 3.10+
  • TShark (PATH or TSHARK_PATH)
  • Npcap (Windows) or libpcap (Unix) for live capture
  • Authorization to capture on the target network

Quick start (5 minutes)

git clone https://github.com/A-G-U-P-T-A/wireshark-mcp
cd wireshark-mcp
python -m venv .venv

# Windows:  .venv\Scripts\activate
# Unix:     source .venv/bin/activate

python -m pip install -e .
python -m wireshark_mcp doctor
python -m wireshark_mcp setup

setup detects TShark (or asks for its path) and writes or prints a standard mcpServers JSON block. Point your host at that config, then reload / restart the host.

Windows Wireshark install:

winget install --id WiresharkFoundation.Wireshark -e

MCP config (any host)

{
  "mcpServers": {
    "wireshark": {
      "command": "/absolute/path/to/.venv/bin/python",
      "args": ["-m", "wireshark_mcp"],
      "env": {
        "TSHARK_PATH": "/absolute/path/to/tshark"
      }
    }
  }
}

Windows example paths:

  • Python: C:\\Users\\YOU\\...\\wireshark-mcp\\.venv\\Scripts\\python.exe
  • TShark: C:\\Program Files\\Wireshark\\tshark.exe

Ready-made template: examples/mcpServers.wireshark.json
Client-specific file locations: docs/Clients.md

CLI

Command Purpose
python -m wireshark_mcp Run the MCP server (stdio)
python -m wireshark_mcp doctor JSON dependency report (exit 0/1)
python -m wireshark_mcp setup Interactive TShark + host config
python -m wireshark_mcp setup --client print Print JSON only

Project layout

src/wireshark_mcp/     # MCP server package (tools, prompts, preflight)
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "wireshark": { "command": "/absolute/path/to/.venv/bin/python", "args": ["-m", "wireshark_mcp"], "env": { "TSHARK_PATH": "/absolute/path/to/tshark" } } } }