ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

iPhone als MCP-Server anbinden: Steuerung aus Cursor, VS Code und Claude Desktop

Viele Anleitungen zur KI-gesteuerten Handybedienung funktionieren nur mit einem bestimmten Agenten. Ein neuer Ansatz bindet ein echtes iPhone als lokalen stdio MCP-Server an, sodass jeder MCP-Client wie Cursor, VS Code im Agent-Modus oder Claude Desktop das Gerät steuern kann.

dev.toDonnerstag 03:32 · 03.12.DE4 Min. Lesezeit
Bild: dev.to

Die meisten Anleitungen zum Thema "KI steuert mein Handy" sind für einen bestimmten Agent geschrieben. Wer stattdessen einen anderen MCP-Client nutzt, etwa Cursor, den Agent-Modus von VS Code oder Claude Desktop, muss die Anweisungen anderer erst übersetzen.

Die gute Nachricht: Wenn dein Client einen lokalen stdio-MCP-Server starten kann, kann er ein echtes iPhone steuern. Dieser Guide zeigt den kompletten Weg, vom leeren Board bis dahin, dass dein Agent die Einstellungen auf deinem Handy öffnet, inklusive der Config-Snippets für drei beliebte Clients und der Fehler, die den ersten Lauf üblicherweise ruinieren.

Der MCP-Server stellt diese Tools bereit: screenshot, tap, longpress, swipe, type_text, press_key, press_button, device_info, history, intent_list, intent_show und intent_save. Das Pairing läuft ausschließlich über das Terminal, was für die Reihenfolge der folgenden Schritte wichtig ist.

Schließe das Board an deinen Computer an, öffne den Browser-Installer in Chrome oder Edge und flashe die neueste Firmware. Beide Kanäle funktionieren. Firmware älter als v0.2.2 hat überhaupt keine CLI-Verbindung, daher finden esp32agent-Geräte sie nicht. Das ist der häufigste Grund für "no boards found".

# macOS / Linux curl -fsSL https://manina.ai/install.sh | sh Vollbildmodus aktivieren Vollbildmodus beenden # Windows PowerShell irm https://manina.ai/install.ps1 | iex Vollbildmodus aktivieren Vollbildmodus beenden Alternativ, mit Node.js 18+: npm install -g esp32agent.

Der Shell-Installer legt das Binary in ~/.local/bin ab. Stelle sicher, dass dieser Ordner in deinem PATH liegt, und prüfe dann:

esp32agent version Vollbildmodus aktivieren Vollbildmodus beenden Schritt 3: Handy koppeln und verbinden (im Terminal, nicht in MCP) Stecke das geflashte Board an das iPhone, aktiviere Bluetooth am Computer und halte beide Geräte nah beieinander. Dann:

esp32agent devices esp32agent pair Vollbildmodus aktivieren Vollbildmodus beenden Ein paar Dinge, über die Menschen stolpern:

Hole nun den Hotspot-Namen des Boards (ESP32Agent-…) und das Passwort. Mit Firmware v0.2.3 oder neuer zeigt sie esp32agent net an. Die ESP32-Agent-iPhone-App zeigt sie ebenfalls an. Auf dem iPhone:

esp32agent device info esp32agent screenshot esp32agent calibrate Vollbildmodus aktivieren Vollbildmodus beenden screenshot speichert ein PNG und gibt dessen filePath aus. Öffne es. Wenn es nicht dein aktueller Bildschirm ist, stoppe und starte Screen Mirroring neu, bevor du irgendetwas an der MCP-Config änderst, denn ein veraltetes Bild kann die Client-Config nicht beheben.

Der Server-Befehl ist immer derselbe: esp32agent mit dem Argument mcp. Nur die Config-Datei ändert sich.

Tipp: GUI-Apps erben oft nicht den PATH deiner Shell, sodass ~/.local/bin fehlen kann. Wenn der Client meldet, dass der Server nicht gestartet werden konnte, ersetze "esp32agent" durch den vollständigen Pfad aus which esp32agent (oder where esp32agent unter Windows).

Füge dies zu ~/.cursor/mcp.json (alle Projekte) oder.cursor/mcp.json in einem Projekt hinzu:

{ "mcpServers": { "esp32agent": { "command": "esp32agent", "args": [ "mcp" ] } } } Vollbildmodus aktivieren Vollbildmodus beenden VS Code (Agent-Modus) Erstelle.vscode/mcp.json in deinem Workspace:

{ "servers": { "esp32agent": { "type": "stdio", "command": "esp32agent", "args": [ "mcp" ] } } } Vollbildmodus aktivieren Vollbildmodus beenden Starte den Server über die Datei oder die MCP-Server-Liste und wähle dann die Tools im Agent-Modus.

Bearbeite claude_desktop_config.json (Einstellungen → Entwickler → Config bearbeiten) und starte die App neu:

{ "mcpServers": { "esp32agent": { "command": "/vollständiger/pfad/zu/esp32agent", "args": [ "mcp" ] } } } Vollbildmodus aktivieren Vollbildmodus beenden Der vollständige Pfad ist hier die sichere Standardwahl, aus dem oben genannten PATH-Grund.

Jeder Client, der einen lokalen stdio-Server startet, funktioniert auf dieselbe Weise. Der Server ist auch im MCP Registry als io.github.onehumanbeing/esp32agent gelistet. Zwei Voraussetzungen: Der Server muss auf demselben Computer laufen, der mit dem Board gekoppelt ist (er braucht Bluetooth dieses Rechners und die gespeicherten Screenshots), und ein remote oder rein cloudbasierter Agent kann das Board nicht selbst erreichen.

Halte die erste Aufgabe langweilig und überprüfbar:

Nutze esp32agent, um einen Screenshot meines iPhones zu machen. Öffne die Einstellungen und gehe zu WLAN. Mache nach jeder Aktion einen neuen Screenshot, um das Ergebnis zu prüfen. Stoppe, wenn die WLAN-Seite sichtbar ist.

Du willst den Loop sehen: hinsehen → eine Aktion → wieder hinsehen. Beobachte den ersten Lauf und unterbriche, wenn er abdriftet. Bei längeren Aufgaben sage dem Agenten, wo er landen soll und was als fertig gilt. Zum Beispiel:

Nutze esp32agent, um auf meinem iPhone Chrome im Inkognito-Modus zu öffnen, die Google-Maps-Website zu besuchen und Cafés in der Nähe der Station East Broadway in New York zu finden. Prüfe nach jeder Aktion einen frischen Screenshot und stoppe, wenn die Karte und die Café-Ergebnisse sichtbar sind.

Diese stammen direkt aus der CLI-Dokumentation, und sie in deinen Prompt (oder eine Rules-Datei) zu schreiben, erspart dir vergeudete Schritte:

Wenn du immer noch nicht weiterkommst, schreibt esp32agent logs --save eine Textdatei mit CLI-Log, Board-Log und Board-Zustand. Es wird nichts automatisch gesendet; du kannst die Datei selbst an eine Support-E-Mail anhängen. Die Troubleshooting-Seite behandelt Mirroring- und Zeiger-Probleme ausführlicher.

Screenshots gehen an das Modell, das dein MCP-Client verwendet. Bevor du einen Agenten auf Banking, Mail oder Nachrichten loslässt, prüfe die Datenschutzerklärung des Clients. Nutze nur Handys und Konten, die dir gehören oder die du steuern darfst.

Alles hier ist Open Source (MIT) unter onehumanbeing/esp32-iphone-agent. Wenn du lieber den Computer weglässt und das Handy Aufgaben selbst ausführen lässt, nutzt die Manina-AI-App dasselbe Board.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

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.

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 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 Enter fullscreen mode Exit fullscreen mode # Windows PowerShell irm https: // manina. ai / install. ps1 | iex Enter fullscreen mode Exit fullscreen mode 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 Enter fullscreen mode Exit fullscreen mode 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 Enter fullscreen mode Exit fullscreen mode A few things that trip people up:

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:

esp32agent device info esp32agent screenshot esp32agent calibrate Enter fullscreen mode Exit fullscreen mode 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" ] } } } Enter fullscreen mode Exit fullscreen mode VS Code (agent mode) Create.vscode/mcp.json in your workspace:

{ "servers": { "esp32agent": { "type": "stdio", "command": "esp32agent", "args": [ "mcp" ] } } } Enter fullscreen mode Exit fullscreen mode 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" ] } } } Enter fullscreen mode Exit fullscreen mode 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:

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.

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.

Originaltitel: Add a Real iPhone to Cursor, VS Code or Claude Desktop as an MCP ServerQuelle: dev.to (dev.to). Original öffnen