Android Use
Control, inspect, and automate an Android phone or emulator through standard MCP, with optional Jev-assisted decisions.
Observe the current screen via accessibility tree and/or screenshots, and find or wait for UI elements.
Perform touch and gesture actions: tap, long press, double tap, swipe, drag, and bounded scroll-until search.
Type Unicode/emoji text with optional readback verification, replacement, or append behavior.
Press system buttons (home, back, recent, enter, volume) and launch installed apps.
Run multi-step workflows with batch execution or
aua_execute_goal, using Jev or host-decider mode.Read fields with Jev/OCR routing, money/text/choice extraction, and optional sum checks.
Locate unlabeled/canvas/image targets via opt-in Jev Box visual location.
Open and control a live phone screen, manage Jev settings, pause/resume for authentication takeover, and inspect device/ADB readiness.
Provides local control of Android phones and emulators over ADB, including device discovery and readiness checks, UI tree and screenshot observation, semantic or coordinate taps, swipes, Unicode text input, app launching, system button presses, bounded batch actions, and a live screen sidebar.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Android Use Open Settings and tap About phone, then show me the screen."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bring Android into your agent workflow
Android Use connects your agent to your own Android phone or emulator through standard MCP. Read the screen, find a control, tap, type, scroll, and check the result. Follow the process in a live phone view.
For workflows that need repeated UI decisions, enable Jev. Your Agent keeps planning and final verification; Jev selects the next candidate; Android Use validates and executes it.
“Open Settings, find Battery, and read the current usage.”
“Fill in the profile with the text I provide, verify it, and save a local draft.”
No root, Appium, signing setup, or keyboard APK. The compiled UI is included. Use USB or already-authorized wireless ADB.
Related MCP server: Android DevTools MCP
A phone screen you can follow
The actual UI, rendered with synthetic phone content for documentation. The frame adapts to theme, window size and orientation. Tap or swipe inside the screen, use Back/Home, or copy a PNG frame. Live-screen guide →
Agent plans. Jev decides. Android Use acts.
Owner | Responsibility |
Your Agent | Understand the request, plan subgoals, compose text, recover and verify outcomes. |
Jev · optional | Choose a code-owned candidate from the current UI. |
Android Use | Observe, check scope and freshness, execute native actions, enforce bounds and pause. |
Known paths use batch, action-plus-wait or scroll_until. Delegate short workflows whose next action depends on new UI to aua_execute_goal. Without a TypeSafe key it runs in host-decider mode: your Agent picks each code-owned candidate with aua_goal_decide, and Android Use applies the same freshness, effect and no-replay checks. On uncertainty, control returns to the Agent with a step ledger and safe context. Architecture and examples →
Enable Jev from the screen
Open the phone preview and click the Jev button.
Paste your TypeSafe API Key.
Click 验证并启用 (Verify & enable).
The server checks the connection and saves the key on this computer. New tasks pick up the setting immediately. You can test the connection, disable Jev, or remove the saved key from the same panel. Jev is off by default. Setup and advanced environment configuration →
Enabling Jev sends the subgoal, visible UI text and supplied input values to TypeSafe for decisions. The server never returns the saved key to the UI. Screenshots are sent only for visual location (aua_locate), after you separately turn on 「允许发送截图(视觉定位)」.
Built for real interaction
Capability | What you get |
Understand the screen | Accessibility trees, screenshots, selectors and bounded waits. |
Act precisely | Tap, long press, double tap, swipe, drag, launch apps and use system buttons. |
See what the tree misses | Opt-in Jev Box locates canvas, image and unlabeled targets; a visual tap rechecks pixels and taps once. |
Reduce round trips | Combine action, wait and observation. Search lists with bounded auto-scroll. |
Input with verification | Unicode/emoji, replace/append and native text readback. A stable field can offer one focus → input → readback decision. |
Keep control clear | User takeover for authentication, partial/uncertain action ledgers and no automatic replay. |
Quick start
Let your agent install it
Paste this into an agent that can use your local terminal:
Install and configure Android Use on this computer:
https://github.com/JackCaow/android-use
Read README.md, docs/guide.md, and skills/android-use/SKILL.md first.
Reuse existing installs and preserve uncommitted changes and other MCP servers.
Check dependencies, install missing ones from official sources, and set up the
current client's local stdio MCP connection. For Codex, build and install the plugin.
Discover devices, select the intended one, reuse a healthy service or start it once,
and actually verify ready=true. Open the live screen and check whether video works.
If new MCP tools are not loaded yet, use the CLI for setup and explain how to reload.
Perform the installation; do not only return instructions for me to follow.
Ask me to handle USB authorization, unlocking, and required system permissions.
Report what was installed, which checks passed, and any remaining steps.For a client without terminal access, use the manual path below. Detailed agent setup →
Or install manually
1. Prepare the tools and clone. Install uv, ADB, and ffmpeg. You also need Git; uv can provision Python 3.13.
git clone https://github.com/JackCaow/android-use.git
cd android-use
uv sync --frozen --python 3.132. Connect your client. Choose one route:
For a prebuilt plugin ZIP, follow the release installation steps. To install from a source checkout, run from the repository root with the Codex CLI installed:
uv run python scripts/package.py
codex plugin marketplace add .
codex plugin add android-use@android-use-localPackaging creates the dist/android-use directory used by the local marketplace. Open a new chat or reload tools, then enable Android Use. Codex guide →
No Codex CLI or plugin build is needed. For clients using mcpServers, merge this entry into the existing config and replace the repository path:
{
"mcpServers": {
"android_use": {
"command": "uv",
"args": ["run", "--frozen", "--directory", "/absolute/path/android-use", "android-use-mcp"]
}
}
}Cursor also uses "type": "stdio". VS Code's .vscode/mcp.json uses a top-level servers object instead. See client-specific paths and complete examples →.
3. Connect your phone. Enable USB debugging, connect a data cable, approve the prompt on the phone, and keep it unlocked:
adb devices -l
uv run android-use setup '{"action":"status"}'
# Only if the control service is not running:
uv run android-use setup '{"action":"start"}'
uv run android-use readyLook for ready=true. With multiple devices, select the target explicitly. Then ask your agent:
“Connect to my Android, verify READY, and open the live screen.”
Full installation and troubleshooting →
MCP client support
This is a standard local stdio MCP server, built with the official Python MCP SDK. The Codex plugin is an optional installation bundle.
Connection | What to expect |
Local stdio MCP | Phone-control tools and standard text/image responses. Claude Desktop, Cursor, VS Code / Copilot, and other clients can use their local-command configuration. |
MCP Apps | An embedded live-screen view when the host supports the extension. Layout and clipboard permissions depend on the host. |
Local browser | Run |
The preview URL is a private local video endpoint, not a remote MCP endpoint. Remote-only MCP clients cannot connect to this stdio service. Client configuration examples are documented; full end-to-end acceptance has not been completed for every client/version.
In v0.5.1, supported devices record continuously; legacy segments reuse one connection and decoder. Brief known-health recovery keeps the picture visible. Recovery behavior and troubleshooting →.
A smaller loop, with explicit outcomes
# One call: tap → wait for a visible condition → return the tree.
# Replace these labels with ones from the current screen.
uv run android-use tap '{"selector":{"text":"Display"},"wait_for":{"selector":{"text_contains":"Brightness"},"timeout_seconds":5},"observe":"tree"}'
# Search a list with a swipe count and time budget; do not click the result.
uv run android-use scroll_until '{"selector":{"text":"Display"},"direction":"up","max_swipes":8,"timeout_seconds":20}'Actions support optional postconditions. A timeout reports what happened and stops the batch; it does not repeat the action. Auto-scroll stops on a match, its limits, or repeated lack of progress. Gestures, waits, batches, and the original tools → · Optional Jev setup and benchmarks →
New in v0.6.0: no-key decisions and visual location
aua_execute_goal works without a TypeSafe key: your Agent picks each code-owned candidate through aua_goal_decide, with the same freshness, effect and no-replay checks. With Jev, verified emoji input is no longer retyped, each step makes fewer phone reads, and a goal head can stop once the goal is visibly achieved. New opt-in Jev Box (aua_locate, visual taps) finds canvas, image and unlabeled targets, and sends screenshots only after you turn on 「允许发送截图(视觉定位)」. Devices without screenrecord now say so instead of retrying the preview. Host decider and Box →
New in v0.5.2: reliable reconnection
The preview entry point stays available when idle, MCP frame reads recover a stopped service, and Refresh waits for fresh video before reporting success. Jev settings now have a clearly labeled sparkle button. Recovery behavior, validation and limits →
New in v0.5.1: continuous live preview
Supported devices no longer restart recording every 170 seconds. Older devices reuse one ADB pipe and decoder across bounded segments. Brief known-health recovery retains the picture; display-metadata failures pause controls without dropping healthy video. Authentication and real disconnection still clear the image.
Android 16 physical capture passed a 190-second native run with one encoder/connection/decoder and a 1.422-second maximum sampled gap. The earlier emulator motion stall remains unresolved; compatibility records retain a harness-seeded recovery error. Results, retained failures and limits →
New in v0.5.0: safer actions and automatic OCR
Included in the v0.5.0 plugin ZIP. Android Use retains every MCP tool and adds page-based AX / local OCR routing to read-only aua_read_fields. Healthy text stays on the tree path; missing text or requested labels triggers a device ROI capture and local recognition, then one Jev request judges multiple fields. Acknowledged actions wait for an effect without repeating writes. Money keeps printed signs, grouping and currency.
During development acceptance, Meituan AX and OCR both produced 19 + 1.5 + 2.4 = ¥22.9; Taobao automatically routed its empty semantic tree to OCR and produced 24 + 1.5 + 2.3 − 6 = ¥21.8. The Agent independently inspected checkout and emptied temporary carts; no order or payment was made. Failed ROI, animation and missing-field attempts are retained. This is neither a whole-task speed benchmark nor an exhaustive cheapest-price result. Subsequent guard refinements were tested offline; phone testing stopped at the user's request.
v0.5.0 passes 277 Python tests and 17 UI tests. Built-in OCR currently requires macOS and Xcode Command Line Tools. Automatic visual grounding/clicking remains future work. Reload your MCP connection after updating.
Field tool and parameters · Live acceptance and retained failures · Implementation boundaries and roadmap — 中文
Measured, with clear limits
Development comparisons include 18 source-level trials and 12 live Agent / Agent + Jev trials. Both live arms completed 6/6 tasks. Dynamic workflows needed fewer host replies with Jev; familiar batch paths did not improve. Sampling reduced repeated state queries, while input macros reduced decisions without an additional timing win in that sample. Methodology, raw records and retained failures →
Project status
v0.6.0 · MIT · 362 Python tests · 24 browser tests. Emulator acceptance covers 15 real stdio MCP scenarios. Earlier physical-device acceptance covers Android 16 / Xiaomi 15 Ultra. New Jev setup and frame changes have local/emulator validation; other manufacturers, host versions and operating systems have different coverage. Validation evidence →
Multi-touch, arbitrary gesture paths, fine-grained text selection and custom-editor input fallbacks are not implemented. A matched UI condition proves that condition; the Agent must verify business outcomes. Control and preview run locally, and tool results are handled by your chosen client/model.
Explore and contribute
Start here | Go deeper |
Bug reports and contributions are welcome. Include your host OS, Android version, client, and a minimal reproduction; remove device identifiers, access tokens, and private screen content.
Available Tools
26 toolsaua_appsARead-onlyIdempotent
List installed third-party package IDs; query matches package ID, not human app name.
Inputs: limit, query.
aua_batchA
Execute up to 20 known steps, using each operation's normal args. Entire plan is validated before actions. Stops on error, unmet condition, scroll miss, Enter submission or 25s budget (in-flight RPCs may overrun). Resume from stopped_at; never replay completed/uncertain steps.
Inputs: steps (required).
aua_doctorARead-onlyIdempotent
Read local ADB device inventory and configuration. Does not start a phone service.
Inputs: no named parameters.
aua_double_tapA
Perform one intentional pair at selector OR x/y display pixels. interval is seconds between clicks, excluding RPC latency. Supports wait_for and observe. A failed pair may have executed its first click; never replay automatically.
Inputs: x, y, visual, observe, +4 more.
aua_dragB
Drag once from start {x,y} to end {x,y}, in Android display pixels. Supports duration, observation_id, wait_for and observe. No automatic replay.
Inputs: end (required), start (required), observe, duration, +2 more.
aua_execute_goalA
Agent plans, a decision policy selects candidate IDs, Android Use executes. decider=auto uses Jev when enabled (TypeSafe key in screen settings, or ANDROID_USE_JEV_ENABLED=1 / TYPESAFE_API_KEY; sends visible app UI text to TypeSafe), otherwise host: no key, nothing sent externally. Host mode returns status=decision_required with compact state, option IDs and a one-time token; choose with aua_goal_decide. Caller supplies goal, foreground package, exact input texts and optional completion selector. Compact semantic state and parallel operation/target questions share one Jev request per step. Each Jev request also judges goal completion; without a completion selector a confident ACHIEVED stops before another action (stop_reason=model_goal_achieved, unverified: check it). input_macros=true can combine stable-field focus and exact input with native readback; max_steps counts candidate selections, with at most two native writes per input macro. Bounded candidate-only actions; no automatic replay. status=handoff is not success. effect_timeout_seconds bounds observation after acknowledged mutations; unresolved effects hand off without another mutation. Geometry-only changes do not prove an effect. Keep existing tools for planning, unsupported controls and recovery. Password screens hand off.
Inputs: goal (required), package (required), texts, actions, +11 more.
aua_findCRead-onlyIdempotent
Find exact text/description/resource_id/class_name/package or substring text/description. Multiple targets require an explicit 0-based index; bounds don't prove unobstructed access.
Inputs: selector (required), limit.
aua_goal_decideA
Host-decider step of aua_execute_goal: send one option ID from the latest decision_required result with its one-time token. Android Use reads the UI again; if it changed, the choice is discarded and a fresh decision is returned (previous_choice_stale=true). Otherwise it executes that candidate once, checks its effect and returns the next decision, completion or handoff. An unknown option ID keeps the token; any other outcome consumes it. Tokens expire after 5 idle minutes and need the same MCP server process. timeout_seconds counts device time only, not host thinking time.
Inputs: token (required), choice (required).
aua_launch_appB
Launch an installed package's launcher activity once; no force-stop or data reset.
Inputs: package (required), observe, wait_for.
aua_locateARead-onlyIdempotent
Read-only Jev Box location for elements the accessibility tree lacks (canvas, games, WebView images, icons without labels). Sends one masked screenshot of region (default full display) to TypeSafe, so it needs Jev plus the separate images opt-in (允许发送截图(视觉定位) in screen settings, or ANDROID_USE_JEV_IMAGES=1); otherwise jev_images_disabled. Refuses password/OTP screens and paused devices. One request asks presence, match count and a box; status is located, not_found, ambiguous, low_confidence or masked. box=[x,y,width,height] and tap=[x,y] are display pixels; tap is set only when located. masks blank sensitive areas before upload. Prefer trees/selectors when they work; a located box is a model judgment, not verification.
Inputs: package (required), description (required), masks, region, +3 more.
aua_long_pressA
Long press once by selector OR x/y display pixels for duration seconds (0.5..3). Supports wait_for and observe. Inspect uncertain results; no replay.
Inputs: x, y, visual, observe, +4 more.
aua_observeCRead-onlyIdempotent
Read a current accessibility tree and/or screenshot. Coordinates are Android display pixels; image pixels multiplied by pixel_to_device give action coordinates.
Inputs: mode, max_nodes.
aua_pauseAIdempotent
Pause Android Use reads/actions for user authentication takeover across CLI/MCP processes.
Inputs: no named parameters.
aua_press_buttonC
Press home/back/recent/enter/volume once. Enter may submit; user must authorize it.
Inputs: name (required), observe, wait_for.
aua_read_fieldsARead-onlyIdempotent
Read-only Jev field judgments on current app text. source=auto uses the tree when text/expected_labels and money candidates suffice; otherwise captures a device ROI and runs local macOS Vision OCR (requires Xcode Command Line Tools). source=tree disables OCR; screen_ocr forces it. OCR pixels are checked again after inference. No visual clicks. Extract code-owned money/text spans or classify supplied options, all fields in one request. Requires Jev enabled. evidence_text optionally supplies Agent OCR text, explicitly marked caller_provided_text, not verified as a phone read. Missing/ambiguous values return NONE. Decimal parsing is local. region limits evidence in display pixels; ocr_masks exclude non-evidence from OCR and hashing. min_ocr_confidence is optional uncalibrated provider telemetry, not accuracy. Declare currency for ambiguous symbols. Optional sum_check validates same-currency Decimal sums in code; no device actions. verified=false always requires Agent business verification.
Inputs: fields (required), package (required), region, source, +9 more.
aua_readyBRead-onlyIdempotent
Verify unlocked screen, UiAutomator, foreground, display and a nonempty tree. Does not start/restart services. Reuse the returned observation.
Inputs: screenshot.
aua_resumeAIdempotent
Resume only after user confirms authentication is finished; then get a fresh observation.
Inputs: no named parameters.
aua_screenAIdempotent
Open/reuse the Android live screen sidebar. Uses an independent H.264 video stream, not screenshot/tree polling. Requires ffmpeg. READY also links the same panel.
Inputs: no named parameters.
aua_screen_actionC
App-only preview controls and local Jev settings. Phone actions are blocked during authentication takeover. Settings never return credentials; save tests a fixed synthetic Choice before enabling. Users enter their own key in the screen UI.
Inputs: action (required), x, y, api_key, +1 more.
aua_screen_frameBRead-onlyIdempotent
App-only cached video frame. Does not query UI trees or capture screenshots.
Inputs: after_seq.
aua_scroll_untilA
Find a visible selector, swiping only if absent. Bounded by max_swipes and timeout_seconds; stops after two unchanged regional snapshots, or app/display change. Does not click the result. no_progress does not prove list end. Use region for nested lists.
Inputs: selector (required), region, observe, duration, +4 more.
aua_setupA
First use: status/discover, start once if needed, then ready. configure selects a serial. start pushes a pinned JAR and reuses/starts UiAutomator without root or keyboard APK.
Inputs: action, serial.
aua_swipeB
Perform one swipe. Direction is finger motion: up usually reveals later rows. Use display-pixel region if needed, observe for next-step context. No automatic retries.
Inputs: region, observe, duration, wait_for, +2 more.
aua_tapA
Tap once by selector OR x/y display pixels OR visual (aua_locate args: Jev Box with the images opt-in). visual taps the box center only when located, after rechecking the pixels around the box, never in batch. Ambiguity returns candidates and a screenshot. Optional wait_for waits for visible/gone selector after action; timeout never replays it. Optional observation_id checks same runtime/app/display context. No automatic replay.
Inputs: x, y, visual, observe, +3 more.
aua_type_textA
Set Unicode text on a focused, editable, non-password field. Focus it with tap first. Default replace=true, no submit. verify checks exact readback. App must support setText. Newlines need allow_newlines=true. Never blindly retry uncertain input.
Inputs: text (required), verify, observe, replace, +3 more.
aua_waitARead-onlyIdempotent
Wait at most 20 seconds for a selector to be visible or gone. condition_met reports the requested condition; found reports current visible matches.
Inputs: selector (required), state, timeout_seconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 26 tools
The gesture and action tools are clearly separated, and most names map to distinct operations. The main overlap is among read/inspection tools (aua_observe, aua_find, aua_locate, aua_read_fields) and screen/video tools (aua_screen, aua_screen_frame, aua_screen_action), but the descriptions give enough distinctions to avoid most misselection.
All tools use a consistent aua_ snake_case prefix, which makes the set predictable. Most names are action-oriented, with minor deviations such as noun-like names (aua_apps, aua_screen, aua_batch, aua_doctor) and the unusual ordering in aua_goal_decide.
At 26 tools, the surface is heavy for an Android automation server and includes several niche or overlapping inspection, screen-streaming, and lifecycle tools. While the domain is broad, the tool count exceeds the ideal range and some tools could likely be consolidated.
The server covers setup, readiness, observation, finding, gestures, text entry, app launch, waiting, batching, goal execution, and visual/OCR fallback, giving strong end-to-end coverage. Minor gaps remain, such as text clearing, richer key input, and app lifecycle operations like force-stop, but core workflows are supported.
Maintenance
Related MCP Connectors
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Let AI agents control Android and iOS devices on Mobilerun Cloud: screen, input, apps, workflows.
Mobile sandboxes for AI agents: each agent gets its own cloud Android phone or iOS simulator over MCP, reads the screen, taps, types and installs your app. Android $0.01/min, iOS $0.03/min, parked phones free.
Melaya is a remote MCP server. It gives an assistant hands on your own Android phone and browser: it reads the screen through the accessibility tree, then taps, types and navigates inside the apps and sites you allow-list, with no per-app API. It also builds, schedules and runs agent pipelines across 6k+ connected tools. OAuth 2.1, nothing to install.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible agents to control an Android device over the network via ADB, providing tools for shell commands, screen capture, UI inspection, file operations, and input simulation.14 npmMIT
- AlicenseAqualityDmaintenanceEnables an agent to inspect and interact with Android emulators or physical devices via ADB, capturing UI snapshots, tapping nodes, typing text, and reading app logs.10MIT
- AlicenseBqualityBmaintenanceEnables coding agents to observe and control an authorized Android phone over ADB through MCP tools and a JSON CLI. It supports UI inspection, screenshots, taps, swipes, typing, key presses, app listing, and launching.136MIT
- AlicenseNot gradedqualityCmaintenanceEnables Android device control over ADB through MCP tools that mirror CLI subcommands, including taps, swipes, text input, app launch/stop, screenshots, UI inspection, and running action sequences. Coordinates from screenshots are converted to screen coordinates automatically.MIT