Most "AI controls my phone" setups are written for one specific agent. If you live in a different MCP client, such as Cursor, VS Code's agent mode or Claude Desktop, you are left translating someone else's instructions.
The good news: if your client can launch a local stdio MCP server, it can drive a real iPhone. This guide shows the full path, from a blank board to your agent opening Settings on your phone, plus the config snippets for three popular clients and the mistakes that usually break the first run.
How the pieces fit
- A Seeed Studio XIAO ESP32S3 board (about $7) plugs into the iPhone. It receives the phone's Screen Mirroring (that is how the agent sees) and acts as a USB mouse and keyboard (that is how it taps and types). AssistiveTouch turns a click into a tap.
- Manina AI CLI (
esp32agent) runs on your computer and talks to the board over Bluetooth, or over your Wi-Fi if you put the board on it. -
esp32agent mcpexposes the phone as a stdio MCP server. Your client supplies the model and the reasoning; the server only provides eyes and hands.
The MCP server offers these tools: screenshot, tap, longpress, swipe, type_text, press_key, press_button, device_info, history, intent_list, intent_show and intent_save. Pairing is terminal-only, which matters for the order of the steps below.
What you need
- An iPhone 8 or newer on iOS 16.4+.
- A plain XIAO ESP32S3 with its antenna attached (not the Sense or Plus variant).
- A computer with Bluetooth (macOS, Linux or Windows) and ffmpeg for screenshots. The installer can offer the package-manager command for it.
- An MCP client that supports local stdio servers.
Step 1: Flash the board
Plug the board into your computer, open the browser installer in Chrome or Edge, and flash the latest firmware. Either channel works. Firmware older than v0.2.2 has no CLI connection at all, so esp32agent devices will not find it. That is the most common reason for "no boards found".
Step 2: Install the CLI
# macOS / Linux curl -fsSL https://manina.ai/install.sh | sh # Windows PowerShell irm https://manina.ai/install.ps1 | iex Or, with Node.js 18+: npm install -g esp32agent.
The shell installer puts the binary in ~/.local/bin. Make sure that folder is on your PATH, then confirm:
esp32agent version Step 3: Pair and connect the phone (in a terminal, not in MCP)
Plug the flashed board into the iPhone, turn on Bluetooth on the computer, and keep them close. Then:
esp32agent devices esp32agent pair A few things that trip people up:
- Run the first
pairwithin three minutes of powering the board. If the window has passed, unplug and reconnect the board, then retry. - Do not pair through your OS Bluetooth settings.
pairhandles it. - If several boards show up, use
esp32agent pair --device <id>with the id fromdevices.
Now get the board's hotspot name (ESP32Agent-…) and password. With firmware v0.2.3 or later, esp32agent net shows them. The ESP32 Agent iPhone app shows them too. On the iPhone:
- Settings → Wi-Fi: join the board's hotspot.
- Control Center → Screen Mirroring → ESP32 Agent.
- Settings → Accessibility → Touch → AssistiveTouch: on, with the pointer visible.
- Keep the phone unlocked and in portrait.
Check it from the terminal:
esp32agent device info esp32agent screenshot esp32agent calibrate screenshot saves a PNG and prints its filePath. Open it. If it is not your current screen, stop and restart Screen Mirroring before touching any MCP config, because a stale picture is not something the client config can fix.
Step 4: Register the server in your client
The server command is always the same: esp32agent with the argument mcp. Only the config file changes.
Tip: GUI apps often don't inherit your shell's
PATH, so~/.local/binmay be missing. If the client says the server failed to start, replace"esp32agent"with the full path fromwhich esp32agent(orwhere esp32agenton Windows).
Cursor
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json in a project:
{ "mcpServers": { "esp32agent": { "command": "esp32agent", "args": ["mcp"] } } } VS Code (agent mode)
Create .vscode/mcp.json in your workspace:
{ "servers": { "esp32agent": { "type": "stdio", "command": "esp32agent", "args": ["mcp"] } } } Start the server from the file or the MCP server list, then pick the tools in agent mode.
Claude Desktop
Edit claude_desktop_config.json (Settings → Developer → Edit Config) and restart the app:
{ "mcpServers": { "esp32agent": { "command": "/full/path/to/esp32agent", "args": ["mcp"] } } } The full path is the safe default here, for the PATH reason above.
Anything else
Any client that launches a local stdio server works the same way. The server is also listed in the MCP Registry as io.github.onehumanbeing/esp32agent. Two requirements: the server must run on the same computer that is paired with the board (it needs that machine's Bluetooth and saved screenshots), and a remote or cloud-only agent can't reach the board by itself.
Step 5: A first task that proves it works
Keep the first task boring and checkable:
Use esp32agent to take a screenshot of my iPhone. Open Settings and go to Wi-Fi. Take a fresh screenshot after each action to check the result. Stop when the Wi-Fi page is visible.
You want to see the loop look → one action → look again. Watch the first run and interrupt if it drifts. For longer tasks, tell the agent where to end up and what counts as done. For example:
Use esp32agent to open Chrome in incognito mode on my iPhone, visit the Google Maps website, and find coffee near East Broadway station in New York. Check a fresh screenshot after each action and stop when the map and café results are visible.
Limits worth telling your agent up front
These come straight from the CLI docs, and putting them in your prompt (or a rules file) saves wasted steps:
- No app launching. There is no "open app" tool. Go through the Home Screen or Spotlight search.
- HOME is the only hardware button. No volume or power keys.
- Typing is ASCII, one key per character, with no clipboard. Chinese is typed as Pinyin and needs the right candidate selected on screen.
- Coordinates are pixels in the latest screenshot, not percentages. Never reuse old positions.
- Bluetooth video lags. Screenshots can be about a second behind. For near-live screenshots, put the board on your home Wi-Fi with
esp32agent net joinand join the same network on the phone.esp32agent netshows whether you're onwifiorble. - The phone app has priority. If you also use the ESP32 Agent app, commands fail with
busy: the app is using the phonewhile it runs and for about 20 seconds after. Wait and retry.
Troubleshooting checklist
| Symptom | Likely fix |
|---|---|
devices finds nothing | Flash the latest firmware (v0.2.2+), attach the antenna, move closer |
pair fails | Re-plug the board and pair within 3 minutes |
| Client says server failed to start | Use the full path to esp32agent in the config |
| Screenshot is old or frozen | Turn Screen Mirroring off and on; after a board restart, rejoin its Wi-Fi first |
| Taps don't land | AssistiveTouch on, pointer visible; run esp32agent calibrate |
If you're still stuck, esp32agent logs --save writes one text file with the CLI log, board log and board state. Nothing is sent automatically; you can attach it to a support email yourself. The troubleshooting page covers mirroring and pointer issues in more depth.
A note on privacy
Screenshots go to whatever model your MCP client uses. Before you point an agent at banking, mail or messages, check that client's data policy. Only use phones and accounts you own or are allowed to control.
Everything here is open source (MIT) in onehumanbeing/esp32-iphone-agent. If you'd rather skip the computer and let the phone run tasks by itself, the Manina AI app uses the same board.

