moreplay
Enables AI assistants to control an Android phone by reading the screen, tapping, typing, scrolling, launching apps, taking screenshots, and recording or replaying task flows.
moreplay

Let an AI assistant use your Android phone. It can read the screen, tap, type and scroll, and once it has done a task, you can save the steps and replay them later without the AI.
moreplay is an MCP server: a plugin that gives AI apps such as Claude Code, Codex, Cursor, VS Code or Gemini CLI new tools. This one gives them an Android phone.
Fast. Reading the screen takes about 50 ms, not the usual 3 seconds.
Cheap on tokens. A screen is 1-2 KB of text, and the tools add only ~850 tokens to each request.
Record once, replay for free. Save what the AI did as a small YAML file and run it again with one command, no AI needed. Handy for repeating manual tests.
Quick start
1. What you need
A computer with Node.js 20 or newer.
adb, the tool that talks to Android phones:macOS:
brew install android-platform-toolsWindows / Linux: download SDK Platform-Tools and add the folder to your
PATH.
An Android phone (Android 8 or newer) and a USB cable. An emulator works too.
2. Turn on USB debugging
On the phone, open Settings > About phone and tap Build number seven times. This unlocks Developer options.
Open Developer options and turn on USB debugging.
Xiaomi, Redmi and POCO phones: also turn on USB debugging (Security settings), or taps will not work.
Plug the phone in and tap Allow on the "Allow USB debugging?" prompt.
3. Check that it works
npx -y moreplay doctorThis checks adb, your phone, and the moreplay agent. It taps nothing. Lines with ✓ are fine; a ✗ comes with a hint on how to fix it.
4. Add it to your AI app
Any app that supports MCP can use moreplay. Pick yours:
Claude Code, Codex CLI: one command.
claude mcp add moreplay -- npx -y moreplay
codex mcp add moreplay -- npx -y moreplayclaude mcp add only adds it for the folder you run it in. Run it in the folder you open Claude
Code in, or add --scope user to have it everywhere.
Claude Desktop, Cursor, Windsurf, Gemini CLI, Cline and most other apps: add this to the app's MCP config file.
{
"mcpServers": {
"moreplay": {
"command": "npx",
"args": ["-y", "moreplay"]
}
}
}App | Where the config lives |
Claude Desktop | Settings > Developer > Edit Config |
Cursor |
|
Windsurf | Cascade panel > MCP servers > Configure |
Gemini CLI |
|
Cline | MCP Servers > Configure MCP Servers |
VS Code (GitHub Copilot): uses servers instead of mcpServers. Put this in
.vscode/mcp.json, then use Copilot Chat in Agent mode:
{
"servers": {
"moreplay": {
"type": "stdio",
"command": "npx",
"args": ["-y", "moreplay"]
}
}
}Restart the app, and you are done.
npx, or install it? The configs above use npx, which downloads moreplay the first time and
needs no install step. You can install it instead:
How | Command | Good for |
npx (default) | nothing to install | trying it, MCP configs |
Global |
| using the |
In a project |
| a test suite in a repo: the version is pinned in |
With a global install, use "command": "moreplay", "args": [] in the config (or
claude mcp add moreplay -- moreplay). If you use nvm, desktop apps may not see its PATH;
give the full path from which moreplay instead. In a project, npx moreplay ... picks the
installed version, with no download.
5. Try it
Ask your assistant things like:
"What is on my phone screen right now?"
"Open Settings and turn on dark mode."
"Open the Clock app and set a timer for 5 minutes."
"Log in to my app with test@example.com, then save the steps as a flow called login."
Already have another phone tool, like mobile-mcp? Name the one you want, so the assistant does not pick the other:
"Use moreplay to open Settings and turn on dark mode."
"With moreplay, check what is on the screen and save a screenshot to ./shots/home.jpg."
Only one of them can control the phone at a time. If moreplay says another tool holds the
connection, turn the other MCP server off in your AI app's MCP settings (in Claude Code: /mcp), or ask the
assistant to stop using it.
Nothing is installed on the phone. A small agent (17 KB) is copied to /data/local/tmp and
runs only while your AI app is using moreplay.
Related MCP server: NexusAndroid
Replay without the AI
Ask the assistant to record a task ("start recording a flow called login"), let it do the
task, then ask it to save the flow. You get a file like .moreplay/flows/login.yaml (or wherever you ask it to save).
Passwords and PINs stay out of the file: give them as variables when recording ("record a flow
called login with the variable pin = 482913"), and the saved flow says ${pin} wherever the
value was typed. Pass the real value again when you replay it.
name: login
dismiss: [Not now] # tapped away whenever it shows up (ads, prompts)
steps:
- launch: com.example.app
- tap: Sign in
- type: {field: Email, value: "${email}"}
- wait_for: Home
- screenshot: login-okYou can also write or edit these files by hand. Run one from the terminal:

npx moreplay run login --var email=test@example.comRUN .moreplay/flows/login.yaml 5 steps
✓ launch com.example.app 234 ms
✓ tap "Sign in" 148 ms
✓ type "${email}" into "Email" 390 ms
✓ wait_for "Home" 812 ms
✓ screenshot login-ok 170 ms
PASS 5 steps in 2.1 s
Evidence .moreplay/evidence/login/20261027-123950Each step waits for its button or text to appear, so there are no fixed sleeps. The command
exits with 0 when every step passed and 1 when one failed, so it works in CI too.
Screenshots are saved in .moreplay/evidence/<flow>/<time>/ (or pass --evidence <folder>).
Commit the flows you want to keep, and add .moreplay/evidence/ to your .gitignore.
A folder runs as a suite: every .yaml directly in it, by name (subfolders such as shared/
hold subflows and are not run on their own). Tag flows with tags: [smoke] to pick some:
npx moreplay run e2e/mobile --include-tags smoke --var pin=$PIN --junit reports/mobile.xml--junit writes a report CI systems read (GitHub Actions, GitLab, Jenkins). When a step fails,
a screenshot and the screen as text are saved next to the run's evidence (failed-step-N.jpg,
failed-step-N.txt), and the report points at them.
If a step breaks after the app changes, ask the assistant to run the flow. It sees which step failed and the screen at that moment, and can fix that step for you.
Flows can reuse each other and handle screens that only sometimes appear:
steps:
- run_flow: {file: shared/enter-pin.yaml, vars: {PROMPT: "Enter your PIN"}}
- run_flow:
when: {visible: "Rate this app"}
steps:
- tap: "Not now"Maestro
Already using Maestro? Flows convert both ways:
npx moreplay export login > login.maestro.yaml
npx moreplay import checkout.maestro.yaml --out .moreplay/flows/checkout.yamlSteps that have no equivalent on the other side are listed, never dropped silently.
Tools
What your AI app gets:
Tool | What it does |
| Reads the screen as text, one line per button, text or field. |
| Runs a list of steps in one go: tap, type, scroll, wait, press a key, open an app, a deep link, install an APK, grant permissions or wipe an app's data, read the app's logs, take a screenshot. When a step fails because the app crashed, the crash comes with it. Stops at the first step that fails and shows the screen. |
| Saves a picture of the screen. The AI only looks at it when it asks to. |
| Records steps, saves them as a flow, runs a saved flow, and fixes a broken step. Also serves the full reference to the AI ( |
The full reference for people is in docs/reference: steps, selectors, flows and the command line.
How fast
Reading the screen is ~40x faster than mobile-mcp and ~70x faster than uiautomator dump, and the model reads ~9x less, both per screen and in tool definitions on every
request.
Measured on one phone (Android 14, HyperOS), home screen, October 2026. Both MCP servers were
timed end to end from an MCP client on the laptop. Method and raw numbers:
spike/RESULTS.md.
Speed (lower is better)
moreplay | mobile-mcp 1.0.14 | plain adb | |
Read the screen | 34-65 ms | 1.6-2.5 s | 2.9-3.6 s |
First read (starts the agent) | 1.3-4 s | 4.7 s | 2.9-3.6 s |
Tap x,y | 77-94 ms | 115-309 ms¹ | 184 ms |
Screenshot | 150-170 ms to a file | 0.3-0.6 s, sent to the model | 1.1-1.4 s to a file |
What the model reads
moreplay | mobile-mcp 1.0.14 | plain adb | |
One screen as text | 1-2 KB | 14 KB | 54 KB XML |
Tool definitions, every request | ~850 tokens (4 tools) | ~7.5k tokens (34 tools) | n/a |
A screenshot | a file path (the image only with | a ~47 KB JPEG every time | n/a |
¹ mobilecli 1.0.21, mobile-mcp's device layer, timed per CLI call. mobilecli also keeps an
on-device server, but it waits for the screen to settle (up to 2 s) before every read. Plain
adb means uiautomator dump, input tap and screencap.
Troubleshooting
Run npx -y moreplay doctor first; it names most problems.
No device found, or the device is "unauthorized": unplug and replug the phone, then tap Allow on the USB debugging prompt. If no prompt shows, turn USB debugging off and on again.
Taps do nothing on a Xiaomi, Redmi or POCO phone: turn on USB debugging (Security settings) in Developer options, then reboot the phone.
"another tool holds the UiAutomation connection": only one automation tool can control the phone at a time. Close Appium, Maestro, uiautomator2 or mobile-mcp first.
Several phones connected: pick one with
ANDROID_SERIAL=<serial>(seeadb devices).
Contributing
Bug reports from more phones are the most useful thing right now; please include the model and Android version. To build from source, see CONTRIBUTING.md. docs/architecture.md explains how it works, and docs/roadmap.md lists what is next.
License
Available Tools
4 toolsactA
Run steps in order in ONE call; batch everything you can. Stops at the first failure (optional:true skips if missing). Returns the screen. Target (tap/long_press/type/wait_*): ref | x,y | text (also content-desc; exact, else contains; '/re/' = regex) | id | desc, + below/above/leftOf/rightOf/childOf/containsChild:, index:n, checked/enabled/selected/focused:bool. x,y may be '50%'. Ops: tap, long_press{ms}, type{value, field?=its label, submit?, append?} (no target = focused), scroll{dir:down|up|left|right, until?:target, max?}, swipe{x1,y1,x2,y2,ms?}, key{key:back|home|enter|recents|delete|tab|}, wait_for{target, timeout?=5000}, wait_gone{target, timeout?}, wait_idle{quietMs?=300, timeout?}, sleep{ms}, launch{package, args?:{k: v}}, stop_app{package}, clear_app{package} (wipes data), install_app{path, grant?}, uninstall_app{package}, open_link{url, package?}, permissions{package, grant?:[CAMERA..]|'all', revoke?}, logs{package?, level?=W, since?=60s, lines?=50}, apps{filter?}, screenshot{name} (name or path; saved, not shown), observe, hide_keyboard, repeat{times? | while?:{visible|notVisible: target}, steps}, run_flow{file? | steps?, vars?, when?:{visible|notVisible: target | true: '${!!X}'}}: subflow (file relative to the flow), skipped if when fails.
Inputs: steps (required), observe_after.
flowA
Record once, replay without a model. name: flow name or .yaml path. record{name, vars?}: keep every successful act step (refs become stable selectors); ${var} in act takes vars, saved unexpanded. save / discard: end it. run{name, vars?, evidence?=dir}: replay; steps wait for their element. On failure: step number + screen; fix with patch{name, index, steps} (steps:[] deletes), run again. list, show{name}, help{name?:steps|selectors|flows|cli}: full reference.
Inputs: action (required), name, vars, index, +2 more.
observeARead-only
Current screen as one line per element: @ref Class "label" #id [x,y] flags. Use refs/text/id from here in act.
Inputs: no named parameters.
screenshotB
Save a JPEG of the screen and return its path. show=true to see it too.
Inputs: name, refs, show.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The four tools map to distinct phases: observe reads the screen into refs, act performs interactions, screenshot persists an image, flow manages record/replay. The only mild overlap is observe vs screenshot (both surface screen state), but the descriptions clearly separate structured refs/text from a saved JPEG path.
All names are single lowercase words with no casing or style drift, which is predictable. There is a small grammatical inconsistency (observe/act are verbs, screenshot/flow are nouns) but the intent remains immediately readable.
Four tools for a mobile-automation agent is compact and each earns its place; nothing is redundant. The tradeoff is that act is a mega-tool aggregating ~30 operations (tap, scroll, launch, install, permissions, logs, repeat, run_flow), so the surface is thinner at the top level than the underlying capability set suggests.
Coverage is strong for the domain: screen reading, full input/interaction set, app lifecycle (launch/stop/clear/install/uninstall), permissions, logs, waits, plus flow record/replay/patch for determinism. Minor gaps remain around clipboard/file transfer, explicit assertions or text extraction helpers, and deeper view-hierarchy introspection.
Maintenance
Related MCP Connectors
Cloud Android devices for AI agents: install an APK, read the screen, tap, type, read logcat.
Let Claude, ChatGPT and other agents use your Android phone: see the screen, tap, type, open apps.
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Disposable cloud Android emulators for coding agents: run an APK or PR build, tap, type, screenshot.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to see and control Android devices over ADB and scrcpy, with image-returning screenshots, taps, swipes, typing, app and file management, UI element inspection, shell commands, and video/audio streaming or recording. It offers fast scrcpy-based input and screenshots with automatic ADB fallback so tools keep working when scrcpy isn't available.801 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to see and drive a real Android phone over plain ADB: screenshots and numbered UI trees, gestures, typing with accents and emoji, SMS/RCS reading and prepared replies, notifications, files, and settings, with no root and no app installed on the phone. Safeguards mask security codes and require explicit confirmation before sending, paying, deleting or confirming anything.182MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to see and control Android devices over ADB and scrcpy—taking screenshots, tapping, swiping, typing, launching apps, inspecting UI elements, transferring files, streaming video/audio, and running shell commands. It uses scrcpy's control protocol for fast input and near-instant screenshots, with ADB fallback when scrcpy is unavailable.801 npmMIT
- AlicenseBqualityBmaintenanceEnables AI agents to observe and control Android devices and emulators through plain ADB — taking screenshots, reading the UI hierarchy, tapping, swiping, typing, launching apps, reading logcat, and recording the screen. It also executes multi-step action sequences (tap, swipe, key, wait, text, wait-for-element) in a single tool call.27MIT