HotspotSniffer MCP
Captures service-level traffic from iPhone apps by turning a Windows laptop into a controlled Wi-Fi hotspot with the iPhone configured to use its proxy and CA. Combines passive packet capture (DNS, TLS SNI/ALPN, QUIC Initial, destination IP/port, CONNECT targets) with an HTTPS interception proxy to record full request URLs, methods, status codes and timings, storing one record per app service/submenu and producing Markdown/JSON reports with target-domain isolation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HotspotSniffer MCP capture the iPhone app's login service and generate a domain report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
HotspotSniffer MCP
Service-level iPhone app traffic capture on Windows, exposed as an MCP server and a CLI.
HotspotSniffer turns a Windows laptop into a controlled Wi-Fi hotspot for an iPhone, combines passive packet capture with an HTTPS interception proxy, and stores one record per app service or submenu in SQLite. An MCP client can drive the workflow: confirm the app, start a service record, wait for the user to finish the operation, stop the record, generate a focused report and read the result.
Authorized use only. Use this only with devices and accounts you own or are explicitly authorized to inspect. The hotspot is a real network and the local CA can impersonate HTTPS sites for devices that trust it. Read SECURITY.md before installing the CA.
中文快速开始 · MCP server guide · Security
Why two capture channels
Channel | What it gives you | Works with |
Passive ( | DNS, TLS SNI, ALPN, destination IP/port, QUIC Initial, cleartext HTTP, CONNECT targets | Every app, including apps that pin certificates |
Active ( | Full URL, method, status code, MIME type, timing | Apps that honor the system proxy and trust the user CA |
The passive channel answers "which real domains/IPs does this app contact?" even when the app rejects the proxy certificate. The active channel adds complete request paths when the app accepts the CA. Both channels write into data/hsniff.db.
Related MCP server: proc-sniffer
Features
Windows Mobile Hotspot + iPhone system HTTP proxy, no jailbreak.
One SQLite record per app service/submenu, with
app_name,parent_service,service_name,run_no,focus_domains.focus_domainsisolates target domains from phone background traffic in reports and MCP responses.Markdown report per record plus a JSON summary (
session_summaries).MCP tools, resources and prompts for agent-driven capture and review.
The CLI and the MCP server share the same storage and analysis code.
Request bodies, cookies, passwords and photo content are not stored.
Architecture
iPhone ──Wi-Fi──> Windows Mobile Hotspot (192.168.137.1)
│
├─ dumpcap on the Wi-Fi Direct adapter ──> tshark ──> SQLite
│ DNS / SNI / QUIC / CONNECT
│
└─ mitmproxy :8080 ──> SQLite (full URLs)
│
└─ CA page :8081 ──> iPhone installs/trusts CA
Agent / MCP client ──stdio──> hotspot_sniffer_mcp.server
│
└─ hsniff_lib ──> SQLite + reports + CLIRequirements
Windows 11 (the hotspot, Npcap and PowerShell orchestration are Windows-only).
A Wi-Fi adapter that supports Windows Mobile Hotspot (most Intel/Qualcomm laptop cards).
Wireshark 4.x with Npcap. The free Npcap installer requires its GUI wizard; silent install is an Npcap OEM feature.
Python 3.12+.
iPhone with the HotspotSniffer CA installed and fully trusted.
Administrator approval once for starting the hotspot and adding the firewall rule.
Install from source
git clone https://github.com/haohaoo3o/HotspotSniffer.git
cd HotspotSniffer
py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e ".[dev]"
copy config.example.json config.json
notepad config.json # set a strong hotspot passphrase
python hsniff.py initpip install -e . installs the MCP SDK (mcp[cli]) and mitmproxy. Wireshark and
Npcap are external Windows applications and must be installed separately.
Replace the sample passphrase. Do not commit
config.json,data/,captures/,reports/,proxy_cert/or date-prefixed capture reports.
One-time host setup
python hsniff.py upRequests UAC once for the hotspot/firewall and starts
dumpcap.Starts mitmproxy on
0.0.0.0:8080and the CA download page on0.0.0.0:8081.Prints the hotspot SSID and proxy/cert URLs.
The hotspot passphrase is read from
config.json.
If you only need to restart the capture after a reboot, python hsniff.py up
again (one UAC). python hsniff.py down stops capture/proxy/hotspot.
iPhone setup
Connect to the hotspot SSID from
config.json.Wi-Fi → current network → Configure Proxy → Manual:
Server
192.168.137.1Port
8080Authentication off
Safari →
http://192.168.137.1:8081/→ install the profile.Settings → General → VPN & Device Management → install HotspotSniffer CA.
Settings → General → About → Certificate Trust Settings → enable full trust.
For cleaner measurements, turn off Limit IP Address Tracking and iCloud Private Relay for this network.
Verify with python hsniff.py status: hotspot On, capture running, proxy and
cert page listening. A test HTTPS site should now produce http_request events.
CLI workflow
# 1. Remember the app
python hsniff.py app set --name "MyApp"
# 2. Start one service / submenu
python hsniff.py service start --parent "Dashboard" --name "Orders" --focus "example.edu.cn"
# 3. Operate the service on the iPhone and wait until it finishes
# 4. Stop, parse, report, summarize (waits 10–20s for pcap rotation)
python hsniff.py service stop
# 5. Review
python hsniff.py service list
python hsniff.py analyze --session last
python hsniff.py export --session last --out reports\orders.csv--parentcreates aParent > Submenuhierarchy.--focusis a comma-separated list of domain suffixes; the report gets a "Target domains" section that excludes phone background traffic.Repeating the same app/service increments
run_no(1st, 2nd, …).A record is stored in SQLite even if the report generation is interrupted; call
python hsniff.py analyze --session <id>to regenerate.
MCP server
The MCP server uses the official Python SDK v2 (MCPServer) over stdio.
# Development / inspector
.venv\Scripts\mcp.exe dev hotspot_sniffer_mcp/server.py
# Or run stdio directly
.venv\Scripts\python.exe -m hotspot_sniffer_mcp.serverClient configuration (Claude Desktop, Cursor, Qoder or any MCP client):
{
"mcpServers": {
"hotspot-sniffer": {
"command": "C:\\path\\to\\HotspotSniffer\\.venv\\Scripts\\python.exe",
"args": ["-m", "hotspot_sniffer_mcp.server"],
"env": {
"HSNIFF_ROOT": "C:\\path\\to\\HotspotSniffer"
}
}
}
}HSNIFF_ROOT tells the server where schema.sql, scripts/ and config.json
live when it is not started from the checkout. The MCP server does not start the
hotspot; start the host environment once with hsniff up.
MCP tools
Tool | Purpose |
| Hotspot, capture, proxy, current app, open record |
| Confirm and remember the target app |
| Start a service/submenu record ( |
| Stop, parse, report and summarize the open record |
| List service records |
| Read the stored summary JSON |
| Regenerate a report by session id or time window |
| Read event metadata with query strings stripped |
| Incrementally parse new pcap files |
| Manage mitmproxy and the CA page |
| List apps with records |
Resources: hsniff://status, hsniff://services,
hsniff://service/{id}/summary, hsniff://service/{id}/report,
hsniff://schema.
Prompts: capture_service_workflow, analyze_capture.
Agent skill
skills/hotspot-sniffer/SKILL.md packages the same workflow for MCP-capable
agents. Copy the folder into your agent's skills directory; it uses the
hotspot-sniffer MCP server and does not require any extra code.
See docs/MCP.md for the full client setup, agent workflow and safety notes.
Data model
Table / view | Contents |
| One row per service/submenu; app, parent, service, run number, focus, times, status |
| DNS, TLS ClientHello, TCP connects, QUIC Initial, CONNECT, HTTP requests/responses, proxy/TLS errors |
| Counts, top/focus data, report path, full summary JSON |
| Per-pcap parse state |
| Joined view for review |
| Convenience views |
Example:
SELECT session_id, app_name, parent_service, service_name, run_no,
duration_s, hosts_count, endpoints_count, mitm_http, report_path
FROM v_service_runs ORDER BY started_at DESC;Security and privacy
Authorized devices/accounts only. Installing a CA on someone else's phone is not acceptable without explicit consent.
The CA private key (
proxy_cert/.mitm/mitmproxy-ca.pem) can impersonate any site to a trusting device. Never commit or share it.Request bodies, cookies, passwords, tokens and photo bytes are not stored. MCP
get_eventsstrips URL query strings.Reports and SQLite still contain hostnames and internal paths. Clean runtime data before sharing a checkout.
Use a strong hotspot passphrase and stop the hotspot after capture.
Use GitHub Security Advisories for vulnerability reports.
Limitations
IPv4 only: Windows ICS does not provide IPv6 to hotspot clients by default.
Pinned Apple/system services reject the user CA; passive SNI/IP is still recorded, but HTTPS content is not decrypted.
HTTP/3/QUIC is not proxied by mitmproxy; passive Initial/SNI only.
A page opening is not the same as an action submission. A "page shell" record may not contain the final submit API (e.g., loss report, password change, photo upload); the report labels what was actually observed.
Phone background traffic (health, wearable, push, OS services) can appear in a record. Use
focusto isolate the target and read the full report for evidence.The free Npcap installer is interactive; automation cannot fully silently install the driver.
Development
ruff check .
pytest -qPython tests cover the SQLite session/summary layer and do not need Wireshark, Npcap or an iPhone. Live integration testing is manual on Windows; include what you tested in the pull request. See CONTRIBUTING.md.
License
MIT. See LICENSE.
Available Tools
13 toolsanalyze_serviceBIdempotent
Regenerate a report for a session id or a relative time window such as "10m".
Inputs: last, session_id. Returns: object
get_eventsCRead-onlyIdempotent
Read event metadata for a record. Query strings are stripped from URLs.
Inputs: session_id (required), host, kind, limit. Returns: object
get_proxy_statusBRead-onlyIdempotent
Get mitmproxy and certificate-page status.
Inputs: no named parameters. Returns: object
get_service_summaryBRead-onlyIdempotent
Read the stored summary for one service record.
Inputs: session_id (required). Returns: object
get_statusBRead-onlyIdempotent
Get hotspot, passive capture, mitmproxy, current app and recording status.
Inputs: no named parameters. Returns: object
list_appsBRead-onlyIdempotent
List apps that have service records.
Inputs: no named parameters. Returns: object
list_servicesBRead-onlyIdempotent
List service records, optionally filtered by app name.
Inputs: app, limit. Returns: object
parse_captureBIdempotent
Incrementally parse new pcap files into SQLite.
Inputs: force, include_open. Returns: object
set_appAIdempotent
Confirm and remember the target app name before recording any service.
Call this when the user reports an app name, then echo the returned
message back to the user and ask for the first service name.
Inputs: name (required). Returns: object
start_proxyB
Start mitmproxy and the local CA download page (no admin required).
Inputs: no named parameters. Returns: object
start_serviceA
Start one service/submenu record.
Args: name: Service or submenu name reported by the user. app: Optional app name; defaults to the remembered app. parent: Optional parent service for a second-level menu. focus: Optional comma-separated domain suffixes for the focused report, e.g. "example.edu.cn,example.org". note: Optional note stored with the record.
The user must click the service only after this returns. Tell them to wait until the service finishes, then reply "已操作" (or equivalent) before calling stop_service.
Inputs: name (required), app, note, focus, +1 more. Returns: object
stop_proxyA
Stop mitmproxy and the local CA download page.
Inputs: no named parameters. Returns: object
stop_serviceA
Stop the open service record, parse the pcap, generate a report and save a summary.
This call can take 10-20 seconds because it waits for the capture file to rotate. Report the returned counts, focus endpoints and report path to the user, then wait for the next service.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools map to a distinct action on a distinct resource (service lifecycle, proxy lifecycle, capture parsing, queries). Two mild overlaps exist: get_status already includes mitmproxy status while get_proxy_status reports it again, and analyze_service vs get_service_summary both concern a service's report output. Descriptions mostly clarify these boundaries, so misselection risk is low but not zero.
Every tool follows a consistent snake_case verb_noun pattern (get_, set_, start_, stop_, list_, parse_, analyze_). Resource names are reused predictably (service, proxy, app, events), making the naming scheme fully predictable.
13 tools sits comfortably in the well-scoped range and each one earns its place: capture lifecycle, proxy control, and reporting/query each need their own operations. No filler or redundant tools that could be collapsed without losing function.
The session lifecycle (set app -> start -> stop -> list/summary/analyze/events) plus proxy control and capture parsing covers the core workflow end to end. Minor gaps remain: no delete/prune of old service records, no tool to read the full generated report body (only its path and summary), and no way to inspect raw pcap file inventory.
Maintenance
Related MCP Connectors
Capture, inspect & debug HTTPS traffic across iOS, Android, browsers & backends — 304 MCP tools.
Remote MCP for Android CLI agent build gate, structured receipts, audit logs, and reviewer-ready evi
Workflow diagnostics, capability routing, and x402 settlement for MCP-compatible agents.
Control your authorized Windows computers via OAuth: files, shell, apps, and task status.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables agents to control a physical iPhone from macOS through local phone tools, including USB capture, Bluetooth HID, and AssistiveTouch interactions. It also exposes relay tools for remote access over Streamable HTTP with optional OAuth.MIT
- AlicenseNot gradedqualityCmaintenanceEnables an LLM agent to capture a single Windows process's network traffic by process name — listing monitorable apps, starting and stopping L3/L4 or L7 captures, and exporting the results as pcap, JSON, and plaintext HTTP logs. The server can also drive an optional mitmproxy layer to decrypt HTTP(S) for the target process only.MIT
- AlicenseNot gradedqualityBmaintenanceLets MCP clients drive a real iPhone from a Windows PC, exposing screenshots, accessibility-tree and OCR inspection, taps, typing, and swipes.11AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceBridges coding agents to a Mac app that captures an iOS app's live network traffic, letting them inspect and mock requests, throttle the connection, and drive the simulator through relaunches, screenshots, deep links, location, push and app data.66 npmMIT