ESP32 Agent

Developer tools

Lets your AI see and control a real iPhone through an ESP32 board over Bluetooth.

Your AI app calls the ESP32 Agent MCP server, which does the developer tools work and sends the result back to the chat.

About ESP32 Agent

ESP32 Agent is a community MCP server from onehumanbeing, filed in our directory under developer tools. Lets your AI see and control a real iPhone through an ESP32 board over Bluetooth.

ESP32 Agent runs on your own machine: your AI app starts it with the command npx -y esp32agent@0.1.5 mcp and talks to it over standard input and output.

ESP32 Agent is listed in the official MCP registry as io.github.onehumanbeing/esp32agent, version 0.1.5.

At a glance

Publisher
onehumanbeing (community)
Runs
Locally on your machine
Install from
Node.js package on npm: esp32agent
Written in
Swift
License
MIT
GitHub stars
5,811
Official MCP registry
io.github.onehumanbeing/esp32agent

How to set up ESP32 Agent

  1. Install Node.js on the machine that runs your AI app, because ESP32 Agent starts with npx and downloads its package on first run.
  2. Check the ESP32 Agent README for keys or settings; the registry lists none that ESP32 Agent requires.
  3. Add ESP32 Agent to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the ESP32 Agent tools to confirm the connection.
  5. Run one read-only task with ESP32 Agent first, and keep your app asking before each tool call until the results look right.

ESP32 Agent compared with similar servers

  • Appllama by Appllama has fewer GitHub stars than ESP32 Agent (5.8k against 5.8k); both are community servers, and Appllama runs as a remote server and ESP32 Agent runs on your own machine.
  • Btrace by btraceio has more GitHub stars than ESP32 Agent (6k against 5.8k); both are community servers, and both run locally.
  • agent-device by callstack has fewer GitHub stars than ESP32 Agent (5.6k against 5.8k); both are community servers, and both run locally.

Before you connect ESP32 Agent

  • Give ESP32 Agent its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each ESP32 Agent tool call until you trust what it does with them.
  • Treat text that ESP32 Agent fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for ESP32 Agent on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for ESP32 Agent

How marketing and sales teams put ESP32 Agent to work, by company size. Pick the size closest to yours and start ESP32 Agent on one use case.

Small business

  • A small business with a developer can use ESP32 Agent to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask ESP32 Agent to explain and fix a marketing site issue without context switching between tools.
  • ESP32 Agent runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use ESP32 Agent to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect ESP32 Agent to keep scripts and automations documented and versioned as they change.
  • Start ESP32 Agent on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out ESP32 Agent with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on ESP32 Agent so web and marketing engineering share one reviewed way of working with AI.
  • ESP32 Agent is a community server, so have security review the code and pin a version before ESP32 Agent touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

ESP32 Agent README

From onehumanbeing/esp32-iphone-agent on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

esp32agent

English · 简体中文

Command line and MCP server that let a computer (and the coding agent on it: Claude Code, Codex) see and drive an iPhone through an ESP32 Agent board. The board is the iPhone's mouse and keyboard, plugged into it over USB or, in Bluetooth mode, paired as its Bluetooth mouse and keyboard (any USB power will do), and receives its AirPlay screen mirroring; the computer reaches it over Bluetooth, or over Wi-Fi when both are on the same network, next to the iOS app. Commands and JSON output follow mobilecli.

Install

curl -fsSL https://raw.githubusercontent.com/onehumanbeing/esp32-iphone-agent/main/cli/install/install.sh | sh

Windows (PowerShell): irm https://raw.githubusercontent.com/onehumanbeing/esp32-iphone-agent/main/cli/install/install.ps1 | iex. npm: npm install -g esp32agent. The scripts read the release list at https://manina.ai/cli/versions.json (falling back to GitHub Releases) and check the archive's SHA-256. Screenshots need ffmpeg (the installers offer brew / apt / dnf / winget). Later: esp32agent upgrade.

Pair

  1. Power the board (USB mode: plug it into the iPhone). Within 3 minutes of it powering up: esp32agent pair. In Bluetooth mode, pair the board on the iPhone in the same window (Settings > Accessibility > Touch > AssistiveTouch > Devices > Bluetooth Devices).
  2. On the iPhone: Control Center > Screen Mirroring > ESP32 Agent.
  3. esp32agent screenshot should now write a PNG of the phone's screen.

Pairing is done by the CLI itself (X25519 key exchange, then AES-GCM sessions; see docs/cli-protocol.md), never by the OS, so stale Bluetooth bonds don't matter. Keys live in the user config dir (~/Library/Application Support/esp32agent, ~/.config/esp32agent, %AppData%\esp32agent), mode 0600.

Commands

Command
devices boards nearby (id, paired, connected)
pair, unpair pair this computer; forget the board here
screenshot [--format png|jpeg] [--quality N] [--scale F] [--max-size N] [--output PATH|DIR/|-] the screen after the last action settled; default a file in the current directory
io tap X,Y [--aim] [--count N] coordinates are pixels of a full-size screenshot; --count 2 double-taps
io longpress X,Y [--duration MS]
io swipe X1,Y1,X2,Y2
io text 'TEXT' ASCII; Chinese is typed as pinyin
io keys COMBO enter, esc, tab, backspace, space, arrows, cmd+a, shift+tab ...
io button HOME the only button
screencapture --format h264|mjpeg live video to stdout, e.g. | ffplay -
device info board status: ap (mirroring), fz (video frozen), busy (the app holds the phone), usb, ble
calibrate measure the pointer (runs by itself on the first tap, and again when the calibration no longer fits; kept per phone; needs the pointer visible)
net the CLI's link (via: ble or wifi) and the board's Wi-Fi. With this computer on the board's network (same Wi-Fi, or its hotspot) commands and video go over Wi-Fi; BLE stays as the way back
net join asks for your Wi-Fi's name and password (not echoed), sends them to the board over the Bluetooth session, and waits until the link moves to Wi-Fi. net join SSID [PASSWORD] does it without asking. The iPhone mirrors over that Wi-Fi too
net hotspot the board opens its own hotspot again
net via auto|ble ble keeps the session on BLE (also ESP32AGENT_TRANSPORT=ble)
listen what the iPhone played in the last 30 s (a video, a call, an app's voice) as words, or why it can't be heard
listen on|off hear the phone's sound while it mirrors (off by default; kept in the config)
listen mode phone|local phone (default): the words the ESP32 Agent app transcribed on the iPhone (turn on Settings › Listen to phone audio and Share with the computer there). local: the raw audio over Wi-Fi, transcribed here by whisper.cpp
listen lang CODE|none local: the language besides English, e.g. zh (default: this computer's language)
history list, history show RUN|latest, history new what was done on the phone: runs (newest first, 30), one run's steps; start a new run
intent list, intent show NAME|ID saved intents
intent save --name N --prompt P [--hint H ...] [--from-run RUN [--steps 1,3,4]] save an intent; steps are the run's replayable moves (all, or the numbers from history show)
intent delete NAME|ID
intent export NAME|ID... [--screenshots] [--output FILE] .intent file the iOS app imports; reference screens only with --screenshots
intent import FILE an .intent file (from the app or export); ones already saved under the same name and prompt are skipped
memory list, memory search TEXT [--limit N] what the agent remembers, the most related first
memory add TEXT [--kind preference|fact|app] [--topic APP] remember one line; passwords, codes and card or ID numbers are refused
memory rm ID
memory export [--output FILE], memory import FILE the app's MEMORY.md; on import an entry with the same id or words keeps the newer one
report --intent NAME [--screenshots] prepare a mail with one intent for the developer (see below); interactive
upgrade [--check] [--force] install the latest release (--check: current, latest, update_available)
mcp MCP server on stdio
skill install writes the agent skill to ~/.claude/skills/esp32agent/
daemon [stop], version

With several boards around pass --device <id> (the 12-hex id or the 4 hex digits of its name) or set ESP32AGENT_DEVICE. Output is {"status":"ok","data":...} or {"status":"error","error":"..."} (exit code 1). mobilecli commands that need an on-device agent (apps, dump ui, fs, webview, ...) answer not supported on ESP32 Agent.

The first command starts a background esp32agent daemon that holds the Bluetooth session and decodes the video; commands reach it over a unix socket in the config dir (log: daemon.log there). It exits after 10 minutes idle.

Agents

claude mcp add esp32agent -- esp32agent mcp      # Claude Code
codex mcp add esp32agent -- esp32agent mcp       # Codex
esp32agent skill install                         # Claude Code skill (the loop, typing rules)

MCP tools: screenshot (returns the image), tap, longpress, swipe, type_text, press_key, press_button, device_info, and history, intent_list, intent_show, intent_save, memory_recall, memory_add. The loop is screenshot, decide, one action, screenshot: see SKILL.md.

History and intents

The daemon records every action and screenshot as the iOS app records its runs: runs/<yyyyMMdd-HHmmss>/steps.jsonl in the config dir (actions in 0-1000 screen units, screens as 480-wide JPEGs). A new run starts after 10 minutes idle or with history new; the newest 100 are kept. Nothing leaves the computer.

An intent is a saved task: name, prompt, up to 6 hints and recorded steps with their screens (intents.json and intent-frames/<id>/ in the config dir, the app's fields). intent save --from-run RUN takes the run's replayable moves (tap, swipe, type, key, home). intent export and intent import use the app's .intent format, so intents move between the CLI and the iPhone app (AirDrop or Files).

Memory

The iOS app keeps what the user told it (preferences, facts, how an app works) in MEMORY.md, one entry per line under a dated header. The CLI keeps the same file in memory/MEMORY.md in the config dir. To move it: in the app, Settings › Memory › ⋯ › Export MEMORY.md (AirDrop or Files), then esp32agent memory import FILE; the other way, esp32agent memory export and Settings › Memory › ⋯ › Import. Nothing is synced through a server.

Share an intent with the developer (optional)

esp32agent report --intent NAME [--screenshots] helps improve intents for everyone. It only runs in a terminal you type in (agents can't call it, and there is no MCP tool for it). It writes a redacted .intent to a temp folder: typed text becomes •••, IP addresses are removed, and with --screenshots each screen gets the top 7% (status bar, notifications) blacked out and is shrunk to 480 px wide; other text on the screens stays readable. It prints exactly what the file holds (name, prompt, hints, step count, screenshots, path) and continues only when you type y: then it opens a mail to intents@manina.ai in your mail app and shows the file. Attach it and send it yourself; esp32agent never sends anything.

Android phones

With a board flashed for Android (hardware/flash.sh --android, see docs/bluetooth-hid.md), the same commands drive an Android phone running the Manina app. The phone doesn't AirPlay, so the app shares its screen itself:

  1. Pair the board with the phone in the app, and esp32agent pair within 3 minutes of powering the board.
  2. In the app: Settings › Board › Computer (CLI), turn on Share screen with the computer, tap Start sharing and accept Android's capture dialog (it asks every time). A notification with Stop shows while it shares.
  3. Put the computer on the phone's Wi-Fi. esp32agent screenshot connects to the phone and writes its screen.
  • Trust. For each sharing session the app makes a new key and leaves it, with the phone's LAN address, on the board over its bonded Bluetooth link. The CLI reads it back over its own paired, encrypted session, so only a computer paired with this board can connect; the frames are AES-GCM with keys from that handshake (docs/cli-protocol.md, "Android screen"). Nothing goes through a server.
  • Taps still go through the board. On most phones the board's pen lands where it points: no calibration, no aiming (calibrate says so). On old kernels (Android 6, the app's mouse mode) the mouse is calibrated and aimed on the shared frames as on an iPhone. io button HOME sends Meta+Enter; Back is io keys esc.
  • The app wins. Starting a task or a recording in the app ends the sharing, and the CLI gets the app said: busy: the Manina app is running a task on the phone; start sharing again afterwards.
  • screencapture streams --format mjpeg only. ESP32AGENT_SCREEN=airplay|android overrides the screen source (the board's status says abs on an Android build).

Limits

  • The iOS app has priority: while it drives the phone (and 20 s after), pointer and keyboard commands fail with busy: the app is using the phone. Wait and retry.
  • Over Bluetooth, screenshots can lag up to about a second and animations are choppy; over Wi-Fi they are close to live.
  • Taps are relative mouse moves, dead-reckoned from the top-left corner and re-homed every 10 gestures; accuracy depends on calibration (calibrate, io tap --aim).
  • Typing is ASCII only (one key per character); no clipboard, no volume/power buttons, no app install or launch.
  • Phone audio: words only, and they can be misheard. listen mode local needs Wi-Fi (not Bluetooth), brew install whisper-cpp (or a build of whisper.cpp's whisper-cli on PATH) and the model ggml-base.bin in the config dir's whisper/ folder; listen mode local says what is missing.

Development

cd cli && go vet ./... && go test ./...
make -C hardware/tests/sim      # simulated board (the firmware's cli_link.cpp): enables the integration test
ESP32AGENT_SIM=$PWD/hardware/tests/sim/cli_sim esp32agent screenshot   # the CLI against the simulator

Release: push a tag cli-vX.Y.Z; .github/workflows/cli.yml builds darwin (cgo, CoreBluetooth), linux and windows (pure Go) for amd64/arm64 and uploads the archives with checksums.txt. It also leaves a versions.json artifact (format); merging it into https://manina.ai/cli/versions.json is manual. ESP32AGENT_VERSIONS_URL points upgrade and the installers at another list (tests). Installer testing: ESP32AGENT_ARCHIVE=/path/esp32agent_darwin_arm64.tar.gz sh cli/install/install.sh (checksums.txt next to it).

Questions about ESP32 Agent

What is the ESP32 Agent MCP server?

Lets your AI see and control a real iPhone through an ESP32 board over Bluetooth. ESP32 Agent is maintained by onehumanbeing on GitHub at onehumanbeing/esp32-iphone-agent, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the ESP32 Agent MCP server?

Add ESP32 Agent to your AI app's MCP config with the command npx -y esp32agent@0.1.5 mcp. In Claude Code, run claude mcp add --transport stdio onehumanbeing-cli -- npx -y esp32agent@0.1.5 mcp. To run ESP32 Agent this way you need Node.js installed.

Does ESP32 Agent need an API key?

The registry lists no required keys for ESP32 Agent. Check the ESP32 Agent README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is ESP32 Agent an official MCP server?

No. ESP32 Agent is a community server maintained by onehumanbeing. Community servers can be excellent; read the code and the open issues before you give ESP32 Agent access to company data.

What license is ESP32 Agent under?

ESP32 Agent is released under the MIT license, according to its GitHub repository. The license covers the code of ESP32 Agent; the service it connects to has its own terms.