Skip to main content

tshark-mcp

io.github.Kx96xx/tshark-mcp

v0.4.0Updated Nov 13, 2026stdio · PyPI

Read-only packet capture analysis with tshark: Diameter, GTP, SIP, RTP, SIGTRAN, DNS, TCP and TLS.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add tshark-mcp -e 'TSHARK_MCP_ALLOW_DIRS=<your-tshark-mcp-allow-dirs>' -e TSHARK_MCP_REDACT=off -- uvx tshark-mcp-server==0.4.0

Configuration

4 settings.

  • TSHARK_MCP_ALLOW_DIRS
    Env var· required
    Directories the server may read captures from, colon-separated. Required: the server refuses to start without one.
  • TSHARK_MCP_TSHARK
    Env var· optional
    Path to the tshark binary (4.0 or newer) when it is not on PATH.
  • TSHARK_MCP_REDACT
    Env var· optional
    Pseudonymise identifiers in every result: ids (IMSI, MSISDN, IMEI, SIP users, UE IPs) or ids+ips (every IP too).Default: off
  • TSHARK_MCP_EXPORT_DIR
    Env var· optional
    Turns on export_subset: the one directory it may write new pcapng files to. Must not overlap an allowed dir. Unset: the server writes nothing.

Listed in the official MCP Registry since Nov 13, 2026. Mirrored daily; last checked Nov 26, 2026.