[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107545":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":14,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},107545,"mcp","phone-harness\u002Fmcp","phone-harness","Connect AI agents to real iPhones and Androids","https:\u002F\u002Fphone-harness.com",null,"Python",836,73,4,1,0,22,421,72.61,"MIT License",false,"main",true,[25,26,27,5,28,29,30,31],"ai-agents","android","iphone","mcp-server","mobile-automation","model-context-protocol","phone-automation","2026-11-21 20:39:26","2026-11-23 16:48:15","# Phone Harness MCP 🔌\n\n**Give any MCP agent a real iPhone or an Android emulator in the cloud.**\n\nAdd Phone Harness as a custom connector in Claude, Cursor, ChatGPT, Codex, or any MCP client, and your agent can see the screen, tap, type, swipe, and open apps on a real iPhone or an Android emulator.\n\n## Setup\n\n### General\n\nStreamable HTTP. Sign-in is OAuth and asks for the `phone:drive` scope. An API key can be sent as a bearer token instead; see the FAQ.\n\n    https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\n\n[\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAdd_to-Claude-000000?style=flat-square&logo=claude&logoColor=white\" alt=\"Add to Claude\">](https:\u002F\u002Fclaude.ai\u002Fcustomize\u002Fconnectors?modal=add-custom-connector&connectorName=Phone%20Harness&connectorUrl=https%3A%2F%2Fmcp.phone-harness.com%2Fmcp)\n[\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAdd_to-Cursor-000000?style=flat-square&logo=cursor\" alt=\"Add to Cursor\">](cursor:\u002F\u002Fanysphere.cursor-deeplink\u002Fmcp\u002Finstall?name=phone-harness&config=eyJ1cmwiOiJodHRwczovL21jcC5waG9uZS1oYXJuZXNzLmNvbS9tY3AifQ==)\n[\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAdd_to-VS_Code-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white\" alt=\"Add to VS Code\">](https:\u002F\u002Fvscode.dev\u002Fredirect\u002Fmcp\u002Finstall?name=phone-harness&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.phone-harness.com%2Fmcp%22%7D)\n\n- **Works in any MCP client.** Claude, Cursor, ChatGPT, Codex, VS Code, and more.\n- **Nothing to set up.** No Mac, no adb, no pairing. Just a URL and a sign-in.\n- **Real iPhones.** Dedicated cloud iPhones, and Android emulators, driven the way a person uses them.\n\n### Claude\n\nUse the Add to Claude button above, or open **Customize → Connectors** and add a custom connector (**Add → Custom → Web**, or **Add custom connector**). Name it Phone Harness, paste `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`, choose sign-in rather than No sign in, and add it. On Team and Enterprise, an Owner adds it under **Organization settings → Connectors**; members then connect.\n\n### Cursor\n\nUse the Add to Cursor button above, or add this to `~\u002F.cursor\u002Fmcp.json` (all projects) or `.cursor\u002Fmcp.json` (one project), then restart Cursor. Cursor signs in with OAuth when the server asks.\n\n```json\n{\n  \"mcpServers\": {\n    \"phone-harness\": {\n      \"url\": \"https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\"\n    }\n  }\n}\n```\n\n### ChatGPT\n\nOn ChatGPT web, open **Plugins → + → Add custom MCP server**. Name it, paste `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`, choose sign-in, acknowledge the warning, and select **Create as a plugin**. Install the plugin, then @ mention it in a chat.\n\nCustom MCP servers on ChatGPT web are for Business, Enterprise, and Edu workspaces. An admin creates the plugin. Pro accounts can connect a custom server for read and fetch tools only, so driving the phone needs Business, Enterprise, or Edu.\n\n### Grok\n\nOn [grok.com\u002Fconnectors](https:\u002F\u002Fgrok.com\u002Fconnectors), choose **New Connector → Custom**, paste `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`, and complete the sign-in. The server has to be reachable on the public internet.\n\nIn the Grok CLI, OAuth runs on first use:\n\n```bash\ngrok mcp add --transport http phone-harness https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\n```\n\n### Claude Code\n\n```bash\nclaude mcp add --transport http phone-harness https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\n```\n\nThen run `\u002Fmcp` and sign in. That saves the server for the current project; add `--scope user` to keep it in every project.\n\n### Codex\n\n```bash\ncodex mcp add phone-harness --url https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\ncodex mcp login phone-harness\n```\n\nIn the Codex IDE extension (gear menu → MCP servers) or the ChatGPT desktop app (Settings → MCP servers): **Add server → Streamable HTTP**, paste the URL, save, restart, and select **Authenticate**.\n\n### VS Code\n\nUse the Add to VS Code button above. Or open the Command Palette, run **MCP: Add Server**, choose **HTTP**, and paste `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`. Sign in when asked.\n\nThe same server in the VS Code `mcp.json` format:\n\n```json\n{\n  \"servers\": {\n    \"phone-harness\": {\n      \"type\": \"http\",\n      \"url\": \"https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\"\n    }\n  }\n}\n```\n\n### Windsurf\n\n**Settings → Tools → Windsurf Settings → Add Server**, or open the MCP config file from Cascade's MCP menu and add:\n\n```json\n{\n  \"mcpServers\": {\n    \"phone-harness\": {\n      \"serverUrl\": \"https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\"\n    }\n  }\n}\n```\n\nCascade signs in with OAuth for a streamable HTTP server when no header is set. Press refresh after adding it.\n\n### Devin\n\nIn Devin, open **Customize → MCPs → Add MCP → Add custom MCP**. Set the transport to HTTP, the server URL to `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`, and authentication to OAuth. Save, then choose **Connect**. Adding a custom server needs the Manage MCP Servers permission.\n\nIn the Devin CLI:\n\n```bash\ndevin mcp add phone-harness https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\ndevin mcp login phone-harness\n```\n\n### Gemini CLI\n\n```bash\ngemini mcp add --transport http phone-harness https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\n```\n\nGemini CLI discovers OAuth from the server. In a session, `\u002Fmcp auth phone-harness` starts the sign-in.\n\n### GitHub Copilot\n\n```bash\ncopilot mcp add --transport http phone-harness https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\n```\n\nThat writes a streamable HTTP server to `~\u002F.copilot\u002Fmcp-config.json`. The default OAuth grant is the browser authorization-code flow.\n\n### Perplexity\n\nOpen **Plugins → Add custom → Add MCP connector**, and choose **Remote**. Name it, set the MCP server URL to `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`, and choose OAuth. For an organization, an admin adds it under **Organization settings → Connectors**.\n\n### Warp\n\n**Warp Drive → MCP Servers → + Add**, choose Streamable HTTP, and set the URL to `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp` with no headers. Warp’s docs show that a URL-only remote server opens a browser sign-in when it uses OAuth.\n\n### Raycast\n\nRun **Install MCP Server**. Set the transport to HTTP, the URL to `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`, and OAuth to Dynamic. HTTP servers that use OAuth ask you to sign in before their tools are available.\n\n### Manus\n\nOpen **Connectors → Create → Add MCP by URL**. Enter a name and `https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp`.\n\n### OpenClaw\n\n```bash\nopenclaw mcp add phone-harness --url https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp --transport streamable-http --auth oauth\nopenclaw mcp login phone-harness\n```\n\nOr in the Control UI: **Settings → MCP → Add server**, transport Streamable HTTP, then **Sign in**.\n\n### Muse Code\n\nAdd this to the `mcp_servers` block of the Muse Code settings file, then sign in:\n\n```json\n{\n  \"mcp_servers\": {\n    \"phone-harness\": {\n      \"transport\": \"streamable_http\",\n      \"url\": \"https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\"\n    }\n  }\n}\n```\n\n```bash\nmuse mcp login phone-harness\n```\n\n### Zed\n\n**Settings → AI → MCP Servers → Add Server → Add Remote Server**, or add this to `settings.json`. With no `Authorization` header, Zed starts the MCP OAuth sign-in.\n\n```json\n{\n  \"context_servers\": {\n    \"phone-harness\": {\n      \"url\": \"https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\"\n    }\n  }\n}\n```\n\n### Others\n\nAny other client that can add a remote streamable HTTP server uses the URL above and the sign-in. Local stdio, Docker, and Vercel are in [docs\u002Fself-hosting.md](docs\u002Fself-hosting.md).\n\n## Tools\n\nThe hosted server registers these tools. Every tool except the first two takes `device`, an id from `phone_list_available_devices`.\n\nCloud Android emulators are free to start, then 5¢ per phone-minute, pay as you go. A Cloud iPhone is a flat monthly subscription, not billed by the minute: $80\u002Fmo, or $100\u002Fmo with an eSIM, with 20% off billed annually ($64\u002Fmo, or $80\u002Fmo with an eSIM). `minutes` on `phone_start_device` is how long the session runs (default 30), not a billing unit. See [phone-harness.com\u002Fpricing](https:\u002F\u002Fphone-harness.com\u002Fpricing) for current rates.\n\n| Tool | Does |\n| --- | --- |\n| `phone_list_available_devices` | Running phones and their ids, the phones the account can start, and the account balance when the API reports one. |\n| `phone_start_device` | Start a phone and wait until it is ready. With nothing named, a temporary Android emulator starts. `platform` and `kind` go together (`android`\u002F`emulator`, or `ios`\u002F`device` for the account's iPhone). `device_id` picks a particular iPhone or a saved Android phone (apps and logins kept). |\n| `phone_stop_device` | End the session. Anything not saved on the phone is lost. Stopping cloud Android stops the per-minute charge. |\n| `phone_get_screen_size` | Screen size in the coordinate space taps and swipes use. |\n| `phone_take_screenshot` | JPEG of the screen. Long side at most `max_size` (default 1024), or `scale`. The text before the image converts a point in the image to screen coordinates. |\n| `phone_list_elements_on_screen` | Visible text with tap-ready centers (`text` or `json`). Accessibility tree on Android; text recognition on iPhone. |\n| `phone_click_on_screen_at_coordinates` | Tap `x`, `y`. |\n| `phone_long_press_on_screen_at_coordinates` | Press and hold `x`, `y` for `duration` milliseconds (default 800, clamped to 100–10000). |\n| `phone_swipe_on_screen` | Swipe. `direction` is the way the finger moves (`up` reveals what is below). From `x`, `y` or the center, for `distance` pixels or 40% of the screen. |\n| `phone_type_keys` | Type `text` into the focused field. `submit` presses Enter. |\n| `phone_press_button` | `HOME`, `BACK` (Android only), `APP_SWITCHER`, or `ENTER`. |\n| `phone_list_apps` | Installed apps: package ids on Android, bundle ids on an iPhone, when the phone can list them. |\n| `phone_launch_app` | Open an app by the name on its icon, or on Android by package id. |\n| `phone_get_foreground_app` | Which app is in front, when the phone reports it. |\n\nThere is no tool that opens a URL. A local stdio server also registers `phone_save_screenshot` (write a PNG or JPEG on that machine). Tool names follow [mobile-mcp](https:\u002F\u002Fgithub.com\u002Fmobile-next\u002Fmobile-mcp).\n\n## FAQ\n\n### Can I use an API key instead of signing in?\n\nYes. Send `Authorization: Bearer pck_…` instead of going through OAuth. The buttons above do not include a key.\n\n```json\n{\n  \"mcpServers\": {\n    \"phone-harness\": {\n      \"url\": \"https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\",\n      \"headers\": { \"Authorization\": \"Bearer pck_…\" }\n    }\n  }\n}\n```\n\nCodex reads the key from the environment:\n\n```toml\n[mcp_servers.phone-harness]\nurl = \"https:\u002F\u002Fmcp.phone-harness.com\u002Fmcp\"\nbearer_token_env_var = \"PHONE_HARNESS_API_KEY\"\n```\n\nOther API-key configs are in [docs\u002Fself-hosting.md](docs\u002Fself-hosting.md).\n\n## Development\n\n```bash\nuv sync\nuv run pytest\nuv run phone-harness-mcp --help\n```\n\nReport vulnerabilities per [SECURITY.md](SECURITY.md).\n\n## License\n\nMIT\n","Phone Harness MCP 是一个将 AI 智能体与真实 iPhone 或 Android 设备（含云真机与模拟器）连接的标准化接口服务。它基于 Model Context Protocol（MCP）规范，提供免本地环境配置的 HTTP 接口，支持屏幕观察、点击、滑动、输入和应用启动等原生交互能力，无需 ADB、Mac 依赖或设备配对。核心特点是跨平台兼容性（Claude、Cursor、ChatGPT、VS Code 等主流 MCP 客户端开箱即用）、OAuth\u002FAPI Key 双认证机制，以及面向真实人机操作建模的自动化能力。适用于移动应用测试、AI 驱动的 UI 自动化、多端流程验证及智能体移动端任务执行等场景。",2,"2026-11-24 04:32:10","CREATED_QUERY"]