io.github.emirmrkaljevic/iotaudit
This local MCP server lets an MCP client run iotaudit's own-network audit, scan, comparison, and UPnP inspection tools.
Analyze a saved PCAP for per-device destinations, plaintext vs TLS, A–F grades, safety verdicts, and known-issue hints; optionally write HTML/PDF reports.
Live-capture traffic on a chosen interface for a set duration, with optional device IP filters and required ownership confirmation.
Run an nmap open-port scan on one private-LAN device you own.
Opt in to a rate-limited default-credential check on one owned device over telnet/HTTP/FTP, reporting only accepted/not-accepted.
Compare two saved JSON audits to find new/gone domains and IPs, new countries/open ports, grade or verdict changes, unencrypted traffic, and UPnP forwards.
List read-only UPnP IGD port mappings to see which devices are exposed to the internet.
Enables analysis of Android packet captures produced by PCAPdroid, allowing captured mobile traffic to be uploaded and turned into IoT audit reports.
Supports analyzing packet captures taken on OpenWrt routers with tcpdump, enabling offline device traffic audits from router-captured pcaps.
Provides tools for analyzing Wireshark-generated pcap captures and producing per-device audit reports, findings, and JSON results.
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., "@io.github.emirmrkaljevic/iotaudit audit my smart pet feeder and tell me who it talks to"
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.
iotaudit
iotaudit is for anyone who wants a straight answer about their own smart-home devices: cameras, plugs, feeders, bulbs, doorbells, and the rest. It watches what a device does on your network and gives each one an A-F grade, a one-line safety verdict, and a one-page HTML report. Everything runs locally: no account, no telemetry, no cloud.
I wrote it for the cheap gadgets that end up on a home Wi-Fi. The questions are usually the same: who does it talk to, is that traffic encrypted, are any surprising ports open, and did anything change since last time.
Install
pipx install iotauditCapturing traffic needs root (sudo). An optional port scan needs nmap. PDF export and the MCP server are extras: pip install "iotaudit[pdf]" and pip install "iotaudit[mcp]". More install notes, including how to get iotaudit onto macOS sudo's PATH, are in the usage guide.
Country lookups use a bundled DB-IP Lite database; iotaudit geoip update installs a newer monthly file.
Related MCP server: Wireshark MCP Server
Quick start
One command asks you to confirm this is your network, finds devices, runs the safe checks, captures passively, and writes the report:
sudo iotaudit autoFiles land in ~/iotaudit/YYYY-MM-DD/ as HTML and JSON (and a PDF if that extra is installed). If you already have a capture from Wireshark, your router, OpenWrt tcpdump, or PCAPdroid, analyse it without root:
iotaudit analyze capture.pcapA step-by-step capture from an OpenWrt router (tcpdump over SSH, then iotaudit analyze) is in the OpenWrt guide.
Skip the typed confirmation with --i-own-this-network once you already know this is your network. To pull one device's traffic through this computer, use ARP or hotspot mode. See capture modes.
What it does
A one-line verdict next to the grade. Open ports, public DNS (including DNS-over-TLS and DNS-over-HTTPS), TLS or plaintext, and destination countries are observed facts. Video, audio, and other traffic patterns stay indicators with a confidence.
Who the device talks to: domains (DNS, TLS SNI, HTTP Host), IPs, country, organisation.
Encryption: plaintext HTTP, unencrypted TCP, old TLS, or high-entropy "custom" protocols.
Optional nmap port scan with risk notes, a read-only UPnP port-forward list, an idle-upload check, and a traffic timeline.
Offline known-issue hints when a banner matches a curated CVE. A hint changes the grade only in a narrow case; details are in device profiles.
Turn a saved audit into a shareable profile draft with
iotaudit profile export(see device profiles).iotaudit diff(and--compare) to see what changed since the last audit.For scripts,
--summary-jsonprints a compact grade summary on stdout, and--fail-under Bexits 1 when the worst grade is worse than B.HTML and PDF reports, CSV or Markdown export, and
--redactwhen you want to share a report without local addresses.Grades can go into Home Assistant over MQTT (
--ha-mqtt, with discovery so sensors appear without YAML) or as a JSON file (--ha-json). See the Home Assistant guide.
Current release is 0.1.25. A sample report and a short demo are on the report page. A full vulnerability feed is still on the roadmap.
MCP server
pip install "iotaudit[mcp]"
iotaudit-mcpThis starts a local MCP server (stdio) so a client on your machine can run the same audit tools. diff_results compares two saved JSON audits the same way iotaudit diff does. The server is listed on mcpservers.org and the official MCP Registry. Tool list and options: MCP server.
Consent and scope
iotaudit only audits your own network and your own devices. It refuses non-private targets and requires --i-own-this-network or an interactive I OWN THIS NETWORK confirmation. ARP or NDP spoofing on a network you do not own may be illegal. All data stays local. There is no telemetry.
Findings are indicators based on observed traffic, not proof of wrongdoing by any vendor. IP geolocation by DB-IP. MIT licensed.
Docs
Usage: install,
auto, PDF,diff, cron, export, credcheck, UPnP, and the web UICapture modes: ARP, hotspot, IPv6, and P2P video
Reports: sample report, PDF, sharing and redaction
DNS that bypasses your resolver: hardcoded DNS, DNS-over-TLS, and DNS-over-HTTPS
Device profiles and known-issue hints: how a device is recognised and when a CVE hint changes the grade
MCP server: local stdio tools for the same audits
Share results: redact local addresses before you post a report
Home Assistant: MQTT or JSON grades in Home Assistant
OpenWrt router captures: tcpdump on the router, then
iotaudit analyzeWeb UI and phones: Android, iPhone, and
iotaudit webDevice pages: typical traffic for common smart-home devices
Sample report: an anonymized HTML report with an A to F grade
Available Tools
6 toolsanalyze_pcapB
Analyse a pcap of your own network.
Per-device destinations, plaintext vs TLS, an A-F grade, a one-line safety verdict, and offline known_issue_hints from banners already in the capture. A hint changes the grade only when the version match is exact and the severity is critical. When report_path is set, write the HTML report there. pdf=true also writes a PDF next to that HTML (same name, .pdf suffix) and needs the iotaudit[pdf] extra.
Inputs: path (required), pdf, device_ips, report_path. Returns: result
captureB
Live-capture on an interface of a network you own (needs root). Set i_own_this_network=true only after the user confirms they own the network and devices.
Inputs: iface (required), seconds, device_ips, i_own_this_network. Returns: result
default_credential_checkA
Opt-in check whether one LAN device you own still accepts a well-known default login (telnet/http/ftp). Rate-limited, never brute-forces, stops at the first accepted login, and reports only accepted/not-accepted. Set i_own_this_device=true only after the user confirms they own this exact device.
Inputs: ip (required), services, i_own_this_device. Returns: result
diff_resultsA
Compare two saved iotaudit JSON audits.
Matches devices by MAC, then by IP. Reports new and gone destination domains and IPs, new countries, new open ports, grade and verdict changes, newly seen unencrypted traffic, and new UPnP forwards when the JSON contains them. security_relevant is true, and exit_code is 1, when a device, destination, country, open port, worse grade, unencrypted flow, or UPnP forward appeared.
Inputs: new_path (required), old_path (required).
scan_deviceB
nmap open-port scan of one private-LAN device the user owns.
Inputs: ip (required), i_own_this_network. Returns: result
upnp_port_mappingsA
List the port forwards the LAN router opened via UPnP IGD (read-only: never adds or removes a mapping). Shows which devices are reachable from the internet.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct role: live capture, offline pcap analysis, single-device port scanning, UPnP mapping inspection, default credential checking, and audit diffing. The closest potential overlap is capture versus analyze_pcap, but their descriptions make the before/after distinction explicit.
Most names are readable, but the set mixes verb_noun forms like scan_device and analyze_pcap with noun phrases like upnp_port_mappings and default_credential_check, plus the bare verb capture. The inconsistency is noticeable but not chaotic.
Six tools is well-scoped for an IoT/network audit server, with each tool covering a distinct workflow rather than bloating the surface. The count supports both active checks and offline analysis without excessive breadth.
The tool set covers the core audit lifecycle: capture or load traffic, analyze it, scan devices, inspect router exposure, check default credentials, and compare historical results. Minor gaps exist, such as no explicit saved-audit listing or LAN device discovery tool, but agents can work around these.
Maintenance
Related MCP Connectors
Inspects live IPv4/IPv6 DNS resolution, TLS certificate issuer/expiry, and HTTP security grade.
Inspects live IPv4/IPv6 DNS resolution, TLS certificate issuer/expiry, and HTTP security grade.
Scan websites and code for security, performance and SEO issues from your AI assistant.
Checks AI-written code for leaked keys and made-up packages, on your machine. Never uploads code.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables local network discovery and security scanning to identify connected devices, manufacturers, and potential risks. It allows users to track network changes and export inventories into Markdown or Obsidian-compatible formats.79 npm2MIT
- AlicenseNot gradedqualityDmaintenanceBridges AI assistants with network packet analysis, enabling PCAP investigation, protocol discovery, packet filtering, stream analysis, and live capture through natural language.MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI assistants with local Wi-Fi diagnostics including connection history analysis, live signal sampling, and connectivity diagnosis. It returns findings and verdicts rather than raw data, and runs on Windows, Linux, and macOS without sending data off the machine.48 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to listen to live broker traffic on a smart-home setup, inspecting the topic tree, per-topic message rates, recent payloads, and broker statistics so noisy devices can be identified and then tuned through Home Assistant. It contains no publish path and scrubs secrets from payloads by default, so it only observes.MIT