# Add a Real iPhone to Cursor, VS Code or Claude Desktop as an MCP Server

> Source: <https://dev.to/maninaai/add-a-real-iphone-to-cursor-vs-code-or-claude-desktop-as-an-mcp-server-5go0>
> Published: 2026-12-03 02:32:13+00:00

**Key takeaway:** Any MCP client that can launch a local stdio server can drive a real iPhone via esp32agent's `mcp` command, provided firmware is v0.2.2 or later and the server runs on the same Bluetooth-paired computer.

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.

`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 mcp` exposes 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.

Plug the board into your computer, open the [browser installer](https://manina.ai/install?utm_source=devto&utm_medium=article&utm_campaign=iphone-mcp-any-client) 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".

```
# 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
```

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:

`pair` `esp32agent pair --device <id>` with the id from `devices`.
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:

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.

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/bin` may be missing. If the client says the server failed to start, replace `"esp32agent"` with the full path from `which esp32agent` (or `where esp32agent` on Windows).

Add this to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` in a project:

```
{
  "mcpServers": {
    "esp32agent": {
      "command": "esp32agent",
      "args": ["mcp"]
    }
  }
}
```

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.

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.

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.

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.

These come straight from the CLI docs, and putting them in your prompt (or a rules file) saves wasted steps:

`esp32agent net join` and join the same network on the phone. `esp32agent net` shows whether you're on `wifi` or `ble`.` busy: the app is using the phone` while it runs and for about 20 seconds after. Wait and retry.
| 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](https://manina.ai/troubleshooting?utm_source=devto&utm_medium=article&utm_campaign=iphone-mcp-any-client) covers mirroring and pointer issues in more depth.

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](https://github.com/onehumanbeing/esp32-iphone-agent). If you'd rather skip the computer and let the phone run tasks by itself, the [Manina AI](https://manina.ai/?utm_source=devto&utm_medium=article&utm_campaign=iphone-mcp-any-client) app uses the same board.
