phone-harness/mcp
Connect AI agents to real iPhones and Androids
Phone Harness MCP
What it is: A cloud service that lets AI agents (like Claude, Cursor, or ChatGPT) control a real iPhone or an Android emulator — see the screen, tap, type, swipe, and open apps — as if the agent were holding the phone.
How it works
You add Phone Harness as a "connector" in any MCP-compatible AI client. The client talks to the service over the internet (Streamable HTTP). You sign in with OAuth (or use an API key instead). No local setup, no Mac, no Android debugging bridge, no device pairing.
What the agent can do
The service exposes 13 tools. The first two manage phones; the rest control them:
| Tool | What it does |
|---|---|
phone_list_available_devices |
Shows running phones, phones you can start, and your account balance |
phone_start_device |
Starts a phone and waits until it's ready. Defaults to a temporary Android emulator; can pick a specific iPhone or a saved Android phone |
phone_stop_device |
Ends the session. Unsaved data is lost; stops the per-minute Android charge |
phone_get_screen_size |
Screen dimensions in the coordinate system used for taps/swipes |
phone_take_screenshot |
JPEG screenshot of the screen |
phone_list_elements_on_screen |
Visible text with tap-ready center coordinates |
phone_click_on_screen_at_coordinates |
Taps a point |
phone_long_press_on_screen_at_coordinates |
Presses and holds (default 800 ms, range 100–10,000 ms) |
phone_swipe_on_screen |
Swipes in a direction, from a point or center, for a distance or 40% of the screen |
phone_type_keys |
Types text into the focused field; can press Enter |
phone_press_button |
Presses HOME, BACK (Android only), APP_SWITCHER, or ENTER |
phone_list_apps |
Lists installed apps (package IDs on Android, bundle IDs on iPhone) |
phone_launch_app |
Opens an app by icon name or Android package ID |
phone_get_foreground_app |
Reports which app is in front |
There is no tool that opens a URL. A local (stdio) version adds phone_save_screenshot to save images to disk.
Pricing
- Android emulators: free to start, then 5¢ per phone-minute, pay-as-you-go.
- Cloud iPhone: flat monthly subscription — $80/mo, or $100/mo with an eSIM; 20% off if billed annually ($64/mo, or $80/mo with eSIM).
- The
minutesparameter onphone_start_deviceis just session length (default 30), not a billing unit.
Setup
One URL works everywhere: https://mcp.phone-harness.com/mcp
The README gives step-by-step instructions for 17+ clients: Claude, Cursor, ChatGPT, Grok, Claude Code, Codex, VS Code, Windsurf, Devin, Gemini CLI, GitHub Copilot, Perplexity, Warp, Raycast, Manus, OpenClaw, Muse Code, and Zed. Most are: add a custom MCP server with that URL, choose HTTP transport, and sign in with OAuth.
API key alternative: Instead of OAuth, send Authorization: Bearer pck_… as a header. Codex reads it from an environment variable (PHONE_HARNESS_API_KEY).
Notes
- ChatGPT custom MCP servers require Business, Enterprise, or Edu workspaces (Pro accounts can only use read/fetch tools, not phone control).
- Devin requires the "Manage MCP Servers" permission.
- Self-hosting options (local stdio, Docker, Vercel) are documented in
docs/self-hosting.md. - License: MIT. Development uses
uv sync,uv run pytest,uv run phone-harness-mcp --help.
Related
- Project
- Project
- Project
- Project