Phone Harness
Rust MCP server that lets AI clients observe and control Android phones over ADB
Phone Harness is an open-source MCP server for mobile apps. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Linux, Windows
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 0.3.0
- Listing updated
Similar MCP servers
Install
In Claude Desktop → Settings → Extensions
https://github.com/ZachDreamZ/phone-harness-rust/releases/download/v0.3.0/phone-harness-rust.mcpbDownload the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.
Using several servers? Build one config file with the MCP config generator.
About Phone Harness
Phone Harness connects an Android device to any MCP-compatible AI client through a single stdio server written in Rust. It reads the screen through uiautomator hierarchies and returns a compact list of indexed interactive elements, so a model can refer to buttons and fields by number rather than by pixel coordinates.
Actions such as taps, typing, swipes and app launches are sent to the device over ADB. Indexed actions are tied to the observation generation that produced them, which lets the server reject a request grounded on a stale view of the screen. The toolset also covers logs, mock GPS locations, clipboard access, orientation, screenshots, MP4 screen capture and recorded interaction traces that can be replayed.
The project suits developers and QA engineers who want an AI agent to drive a real handset for testing or automation over USB or Wi-Fi debugging. It is distributed as a native binary with no Python runtime needed.
Tools this server provides (8)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 8 tools change data; 6 names don't say.
From the server's own tool labels and tool names; not verified by us.
- phone_observe
- Reads the screen and returns indexed elements with an observation generation.
- phone_tap
- Taps an indexed element or coordinates on the device.
- phone_type
- Types text into an indexed element or the focused field.
- phone_swipe
- Performs a swipe gesture on the device.
- phone_open_app
- Launches an installed app.
- phone_set_locationName suggests: changes
- Installs a mock location provider with given coordinates.
- phone_start_screen_recordingName suggests: changes
- Starts capturing the device screen.
- phone_batch
- Runs multiple actions in one request.
What it does
- Accessibility-based screen reading
- Reads uiautomator hierarchies and presents a compact, indexed view of interactive elements.
- Generation-gated actions
- Indexed taps and typing are checked against the observation they were based on to avoid acting on stale screens.
- ADB device control
- Sends taps, swipes, key presses, app lifecycle commands and clipboard operations to Android devices over ADB.
- Session recording and replay
- Saves interaction traces as JSONL files that can be replayed later.
- Screen capture to MP4
- Captures frames and encodes them to MP4 with ffmpeg for devices without screenrecord.
- Batched commands
- Runs several actions in a single MCP round trip to reduce overhead.
Good for
- Automating end-to-end tests of Android apps driven by an AI agent
- Letting an assistant navigate a phone to complete a multi-step task
- Simulating GPS locations for testing location-aware apps
- Collecting device logs and screen recordings while reproducing a bug
- Installing, launching and clearing data for apps during test runs
Pricing
Open source
Free and MIT licensed.
Phone Harness FAQ
How is the server installed?
It can be installed from crates.io with cargo install phone_harness_rust, or by using a prebuilt binary registered with an MCP client.
What is needed on the computer at runtime?
ADB must be available on the PATH, USB debugging must be authorized on the device, and ffmpeg is needed on the PATH for screen recording.
Does Phone Harness work with banking apps?
Secure windows may return no pixels, so screenshots of such apps may be empty.
Does mock location change the phone's GPS hardware?
No. It installs a mock location provider and does not override GNSS hardware.
Is Phone Harness free?
Yes. Phone Harness is open source, so you can use and self-host it for free.
What are the best alternatives to Phone Harness?
The closest alternatives to Phone Harness are android-use, Mobile Agent Harness, MCP Android, Pilotdroid and droidsight.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.