Control a real USB-connected iPhone from Linux (no Mac, no paid developer account) and expose it to AI agents as MCP tools
Security and Privacy
iphone-control is a remote control for a phone: whoever can reach it can do anything the owner can do while the phone is unlocked. Treat the host like the phone itself.
This page has the essentials. What is stored, who can reach it and the details of each risk are in the full SECURITY.md.
What is stored
- The data directory holds pairing records, with WDA also the Apple ID session and the signing key, and, with auto-unlock on, the passcode in plain text. Keep it and its backups as safe as a password. The Apple ID password is never stored.
- The control socket is a Unix socket with mode 0600, and whoever can connect to it controls the phone: root on the host and the user the daemon runs as.
- Notification keys are in the settings file
~/.config/iphone-control/env, mode 0600.
Built-in protections
- No network ports. The daemon reaches the phone through usbmuxd.
wda-bridgeand the liveviewerare explicit opt-ins that bind 127.0.0.1 by default (viewer --lanalso opens to the local network, over HTTPS), and other web pages in your browser can't act through them.wda-bridgehas no login: every local user can use it, so stop it when done. Theviewerand the MCP on its port (/mcp) need the login token, from this machine too, since the viewer can't tell a local browser from a visit forwarded by frp, cloudflared or another reverse proxy. Tokens are kept in the data directory (0600);viewer tokenshows the owner's and--newreplaces it, and named read-only tokens (viewer token add <name> --read-only) can watch but not act. An agent on another machine gets only its task's token: it acts for that task and can't pause or confirm it.viewer --lanopens the viewer to the local network, only to local-network addresses and over HTTPS there. - No root. The daemon runs as your regular user, as a per-user service; the install script refuses to run as root.
- Auto-unlock is off by default and disables itself after one wrong attempt.
- Developer tools are off by default.
- Exact dependency versions; the WebDriverAgent download and the install script's download are sha256-checked.
Risks to know about
- The anisette server (WDA only). Apple ID logins use a public third-party server by default (
mac-ani.jkcoxson.com). It never gets your password, but it can see when you log in. To avoid it, run your own anisette-v3-server and setICTL_ANISETTE_URL. - Use a dedicated Apple ID (WDA only). Native control on iOS 27 and later needs no Apple ID. A separate account contains the damage if the host is compromised.
- The agent acts with your hands. It can send messages, buy things and change settings. The server tells agents to ask first for these, but that is an instruction, not enforcement.
- The developer tools add risk while they are on.
iphone_web_evalruns JavaScript in any inspectable page, Safari tabs included: it can read cookies andlocalStorageand send requests as the logged-in user.iphone_install_appaccepts any path on the machine that runs the daemon. System logs and crash reports go into the agent's context and can contain private data. TheIPHONE_CONTROL_DEV_TOOLSswitch only decides whether the MCP server offers these tools; it is not a permission boundary. Turn it off when done.
Disclaimer
This project is not affiliated with, endorsed by, or sponsored by Apple Inc. iPhone, iOS and Xcode are trademarks of Apple Inc. Only use it with devices and accounts you own or are authorized to control; automating third-party apps may violate their terms; Apple may limit free developer accounts. The software is provided "as is", without warranty of any kind.
Found a security problem? Report it privately.