Metadata-Version: 2.4
Name: tshark-mcp-server
Version: 0.4.0
Summary: Read-only MCP server for analysing packet captures with tshark: Diameter, GTP, SIP, SIGTRAN, with hard safety limits
Author: Karl Hulse
License: MIT
Project-URL: Homepage, https://github.com/Kx96xx/tshark-mcp
Project-URL: Documentation, https://github.com/Kx96xx/tshark-mcp/blob/main/docs/TOOLS.md
Project-URL: Changelog, https://github.com/Kx96xx/tshark-mcp/blob/main/CHANGELOG.md
Project-URL: Source, https://github.com/Kx96xx/tshark-mcp
Project-URL: Issues, https://github.com/Kx96xx/tshark-mcp/issues
Project-URL: Releases, https://github.com/Kx96xx/tshark-mcp/releases
Keywords: mcp,tshark,wireshark,pcap,diameter,gtp,sip,sigtran,telecom,llm-agents
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Telecommunications Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: System :: Networking :: Monitoring
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=2.1
Requires-Dist: pydantic<3,>=2.12
Requires-Dist: typing-extensions>=4.6
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: scapy>=2.5; extra == "dev"
Requires-Dist: jsonschema>=4.18; extra == "dev"
Dynamic: license-file

# tshark-mcp: Wireshark analysis for AI assistants

<!-- mcp-name: io.github.Kx96xx/tshark-mcp -->

[![CI](https://github.com/Kx96xx/tshark-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Kx96xx/tshark-mcp/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/tshark-mcp-server)](https://pypi.org/project/tshark-mcp-server/)
![Licence MIT](https://img.shields.io/badge/licence-MIT-green)

**Drop a pcap, ask your AI assistant what went wrong, get an answer with frame numbers.**
tshark-mcp is a read-only MCP server that runs `tshark -r` on captures you allow and turns
them into answers: failed connections, slow servers, DNS and TLS errors, one-way audio, and
the telecom failures generic tools miss (Diameter, GTP, SIP/IMS, SIGTRAN, 5G).

```sh
claude mcp add tshark-mcp -- uvx --from tshark-mcp-server tshark-mcp --allow-dir /path/to/pcaps
```

Needs [uv](https://docs.astral.sh/uv/) and tshark (comes with Wireshark). Cursor, Claude Desktop,
VS Code, Docker and the Claude Code plugin: [the guide](https://github.com/Kx96xx/tshark-mcp/blob/main/docs/GUIDE.md#install-and-connect).

![A real MCP client session: sip_dialogs and media_path_check on the one-way audio example](https://raw.githubusercontent.com/Kx96xx/tshark-mcp/main/docs/media/demo.gif)

## Why this one

- **Answers, not packet dumps.** Ask "what is wrong in this capture?" and `incident_summary`
  runs every check the capture's protocols allow, ranks the findings and names the next call.
  Every claim carries frame numbers you can open in Wireshark.
- **Built by a mobile core engineer.** It pairs requests with answers across Diameter, GTP,
  PFCP, SIP, RTP and MAP, names the cause codes with their 3GPP reference, and follows one
  subscriber across all of them.
- **Safe to hand to an agent.** No shell, no live capture, no writes: only `tshark -r` on files
  inside directories you allow, under hard caps on size, packets, output and time. Optional
  redaction hides IMSIs, phone numbers and IPs.
- **Checked against public captures.** 102 public sample captures, 1,064 tool calls; every
  wrong answer found was fixed and is re-tested ([results](https://github.com/Kx96xx/tshark-mcp/blob/main/docs/VALIDATION.md)).

<!-- tool-count -->Sixty-three<!-- /tool-count --> tools in all; a default set of 34 keeps the tool list small.

## Learn more

- [Guide](https://github.com/Kx96xx/tshark-mcp/blob/main/docs/GUIDE.md): install, example questions, tool list, prompts, safety, limits
- [Tool reference](https://github.com/Kx96xx/tshark-mcp/blob/main/docs/TOOLS.md) and a [worked investigation](https://github.com/Kx96xx/tshark-mcp/blob/main/docs/EXAMPLE.md)
- [Report a wrong answer or a bug](https://github.com/Kx96xx/tshark-mcp/issues/new/choose)

MIT licence, Copyright (c) 2026 Karl Hulse.
