phone-harness/mcp
A Python MCP bridge for agents to inspect and drive cloud iPhones and Android emulators.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Phone Harness MCP is a Python bridge between an agent's MCP client and Phone Harness cloud devices. The hosted /mcp endpoint uses Streamable HTTP. Clients can sign in with OAuth for the phone:drive scope or send an API key as a bearer token. The agent lists or starts a device, then passes its device ID to tools that read or interact with the screen. Device execution happens in the cloud, not in the connector process.
The package requires Python 3.10 or newer and declares mcp>=2.3,<3, Click>=8.1, Pillow>=10, and Starlette>=0.40. The integration surface is the set of MCP tools: clients can compose screen reads and device actions without a client-specific device SDK. The hosted-mode container uses a bearer supplied with each request rather than embedding a credential in the image.
Key Capabilities & Differentiators
The same tool surface targets dedicated cloud iPhones and cloud Android emulators. With no device specified, a start call launches a temporary Android emulator; a device ID can select an iPhone or a saved Android phone that retains apps and logins. A session runs for 30 minutes by default. That duration is a session setting, not a billing unit.
Screen inspection combines JPEG screenshots with visible text and tap-ready centers. Screenshots default to a maximum long edge of 1,024 pixels and include a conversion from image positions to screen coordinates. Element listing uses Android's accessibility tree or iPhone text recognition, so the two platforms do not expose equivalent UI semantics. The agent can tap, long-press, swipe, type, and open apps. Separate iPhone reservation tools provide a quote and a Stripe Checkout link; a person must complete payment.
Trade-offs & Limitations
Compared with an Appium suite or native UI tests, this connector trades control over devices and runners for a short path from an MCP client to a cloud session. It fits exploratory, visual workflows better than regression suites that rely on stable locators and repeatable assertions. Android accessibility data and iPhone text recognition produce different kinds of observations, and screen coordinates can change with orientation. After a transition, an agent should re-read the screen rather than reuse old coordinates.
The MIT license covers the connector code, not the cloud devices. Android is metered by phone-minute, so stopping an idle session matters; iPhones are subscription-based, so stopping a session is not the same as canceling the subscription. Self-hosting changes where the connector runs but leaves the cloud dependency in place. No local model or CUDA stack is listed; size a relay for request concurrency and image handling, and keep test accounts and data separate from personal ones.
Hardware & Deployment Guide
The lowest-setup path is to add https://mcp.phone-harness.com/mcp to a compatible client and authenticate. Write-tool support still depends on the client and workspace: ChatGPT web lists Business, Enterprise, and Edu for custom plugins that can drive a phone, while Pro access is limited to read and fetch tools. Local stdio, Docker, and Vercel are options for running the connector, not the device fleet.
The Dockerfile uses python:3.12-slim, installs the package, switches to non-root UID 10001, and starts phone-harness-mcp with --port 8000 --host 0.0.0.0. The example for a named public host also supplies --allowed-hosts mcp.example.com. For a source checkout, uv sync and uv run pytest cover dependency setup and test execution. The manifest marks version 0.1.0 as alpha; the ChatGPT walkthrough is a connector review recording, not a server package release.
Mobile developers and QA teams using MCP agents to explore app flows, capture screenshots, or check UI behavior on cloud iPhones and Android emulators.
You need offline execution, control of a local device fleet, deterministic regression tests, or a setup that does not rely on Phone Harness cloud devices.
Quick Start & Installation
uv sync uv run pytest uv run phone-harness-mcp --help
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mcp ★ | 857 | +18 | Python | MIT | A Python MCP bridge for agents to inspect and drive cloud iPhones and Android em |
| mcp-for-blender | 37.1k | +1.1k | Python | GPL-3.0 | A local MCP bridge for inspecting and editing live Blender scenes with AI |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/phone-harness/mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mcp
How does an MCP client connect and target a phone?
Does the connector need a GPU, significant VRAM, or a local device?
Can we use or self-host the connector commercially?
When should we choose this over Appium or native test tooling?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy