mobilerun-mcp
This server is an MCP-based phone automation server that lets an AI agent (or a user) control Android, iOS, and Mobilerun Cloud devices through 149 tools.
See the screen:
perceive_screenreturns numbered, tappable elements (som_id) plus an annotated screenshot;read_screen,get_ui_tree, andscreenshotgive text/UI/image views.Touch and gestures: tap, double-tap, long-press, swipe, scroll (all directions), and scroll-to-element by label.
Type and keys: type text, clear/submit fields, press home/back/enter, open recent apps, send raw key events.
Apps and links: launch apps by name or package, list/search installed apps, find and open deep links, resolve which app handles a URI.
System tasks: one-call intents for alarms, timers, dialing, SMS, calendar events, navigation, sharing; contact lookup.
Notifications: read, dismiss, and click notification action buttons (reply, archive, stop, etc.).
Media: control playback (play/pause/next/previous...), adjust volume, mute.
Files: search device storage and open files in their default viewer.
Browser automation: open/read/search/wait on web pages, extract tables/links, click/type/scroll/select, upload files, and hand off to a human for logins or CAPTCHAs.
Waiting and verification: wait for text/app/activity, watch device events, dry-run validation, and verify outcomes against the live screen.
Planning: set a task plan, mark steps, record findings with quotes, and end sessions with success/partial/failed outcomes.
Web search: search for how-to guidance when unsure how to perform a task in an app.
Agent tasks: hand a natural-language goal to the Mobilerun LLM agent (
run_task), monitor/stop tasks, and replay recorded macros.Device management: list/ping/connect devices, get device status (battery, storage, network, volume), install the Portal, run diagnostics.
Cloud platform: provision/terminate cloud devices, manage apps/files/settings/eSIMs/credentials/proxies/webhooks/workflows.
Extras: OCR (tesseract) for sparse screens, icon detection (OmniParser), raw adb commands (opt-in), and a safety policy mode for sensitive apps/data.
Provides an AI agent with eyes and hands on Android devices, enabling screen perception, gestures, typing, app launching, deep links, intents, notifications, media, file operations, and browser automation via adb and the Mobilerun Portal.
Provides web search functionality via the Brave Search API as an optional backend when BRAVE_API_KEY is set.
Provides web search functionality using DuckDuckGo as the default search backend.
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., "@mobilerun-mcp Open Chrome and search for 'MCP servers'"
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.
mobilerun-mcp
An MCP server that controls phones: Android (physical, emulator, redroid; ARM or x86_64) over adb, iOS through ios-portal, and Mobilerun Cloud devices. Everything runs on the host, so nothing ARM-only has to run on the device.
149 tools, covering the full tool surface of AURA's MCP server, droidrun's mobilerun-core Device API, the mobilerun agent actions and droidrun's official mobilerun-mcp cloud tools, under the same names and parameters.
MCP client (Claude Code, Cursor, ...)
| stdio, or HTTP (--http)
mobilerun-mcp ---- adb ------------------> Android device (Mobilerun Portal)
| | '------ CDP over adb forward --> on-device browser / WebViews
| '---------- mobilerun-core --------> iOS (ios-portal), Portal-HTTP-only Android,
| Mobilerun Cloud
'-- host-side OCR (tesseract) and icon detector (OmniParser v2, onnxruntime)Jump to: Quick start · Troubleshooting · Calling the tools · Tool reference · Configuration
Why this exists
Android MCP servers that run on the phone are convenient, but they depend on on-device native
libraries built for ARM. On an x86_64 device (redroid, an emulator, an Android-x86 box) those
libraries run under a translation layer that cannot execute some instructions, and the app
crashes. This server keeps all the heavy lifting on the host: it reads the screen through the
Mobilerun Portal accessibility service, drives
gestures through the Portal and adb, and reaches the browser through Chrome DevTools. Nothing
ARM-only runs on the device.
It also works over any network adb works over (LAN, VPN, adb connect), not only the same Wi-Fi.
Related MCP server: scrcpy-mcp
Quick start
Requirements
Package | Needed for | Install |
| device access | download, |
| environment and dependencies | |
| installing the Portal; |
|
| OCR on screens with a sparse accessibility tree | install, |
Python dependencies (fastmcp, mobilerun-core[local], onnxruntime, numpy, pillow, ...) are
installed with the project. The icon detector for perceive_screen(detail="full") (OmniParser v2,
~80 MB, AGPL-3.0) downloads on first use to ~/.cache/mobilerun-mcp.
You also need an Android device that adb can reach: a USB phone
(enable USB debugging), an x86_64
emulator, or
redroid:
docker run -itd --privileged -p 5555:5555 redroid/redroid:12.0.0-latest
adb connect localhost:5555Install
adb devices # note the serial
# Mobilerun Portal: the accessibility service the server reads the screen through
mobilerun setup -d <serial>
mobilerun ping -d <serial> # Portal is installed and accessible
# Server
git clone https://github.com/Hi-im-Connect/mobilerun-mcp.git && cd mobilerun-mcp
uv venv --python 3.13 .venv && uv pip install --python .venv/bin/python -e .On Windows use .venv\Scripts\python.exe in place of .venv/bin/python.
Download the APK from Portal releases, then:
adb -s <serial> install -r <portal.apk>
# enable it: Settings > Accessibility > Mobilerun Portal, or headless (replaces other enabled services):
adb -s <serial> shell settings put secure enabled_accessibility_services com.mobilerun.portal/com.mobilerun.portal.service.MobilerunAccessibilityService
adb -s <serial> shell settings put secure accessibility_enabled 1Register with your MCP client
Claude Code
claude mcp add --scope user mobilerun -e MOBILERUN_DEVICE=<serial> -- "$PWD/.venv/bin/python" -m mobilerun_mcpClaude Desktop, Cursor, others: add to the client's MCP config and restart it.
{
"mcpServers": {
"mobilerun": {
"command": "/path/to/mobilerun-mcp/.venv/bin/python",
"args": ["-m", "mobilerun_mcp"],
"env": { "MOBILERUN_DEVICE": "<serial>" }
}
}
}Client | Config file |
Claude Desktop (macOS) |
|
Claude Desktop (Windows) |
|
Cursor |
|
Client docs: Claude Code, Claude Desktop, Cursor.
MOBILERUN_DEVICE is optional when exactly one device is attached to adb. Every device tool also
takes a device argument, so one server can drive several devices:
| Target |
| Android over adb (all tools) |
| Android through the Portal HTTP API only ( |
| iOS via ios-portal (default |
| Mobilerun Cloud device ( |
adb-only tools (dumpsys-based ones, shortcuts, files by path) return [unsupported] on the others.
HTTP instead of stdio (AURA's bridge address): .venv/bin/python -m mobilerun_mcp --http serves
http://127.0.0.1:4816/mcp.
Usage
Ask the agent in natural language ("open Settings and read the Android version"), or call tools directly. See Calling the tools and the Tool reference.
Troubleshooting
Symptom | Fix |
|
|
| Accept the USB debugging prompt on the device; if it does not appear, |
| Replug USB; for a container or remote device run |
| Install platform-tools, or set |
| Enable it under Settings > Accessibility, or rerun |
| Play Protect is scanning the install (redroid, emulators with Google Play): |
Client lists no | Restart the client and check the config path. Run |
| An action changed the screen; call |
Slow first launch | Cold starts take 20 to 30 s on slow devices; |
| DuckDuckGo throttled the request; retry or set |
Sparse text on image-heavy screens | Install |
Issues: github.com/Hi-im-Connect/mobilerun-mcp/issues (include the error and adb devices output).
How it works
The agent works in a perceive, act, verify loop:
perceive_screenreturns a numbered list of everything tappable or readable (som_ids) and an annotated screenshot with the same numbers drawn on it.An action tool (
tap,type_text,launch_app, ...) waits for the screen to settle, then returns apost_action_observation: foreground app, element count, keyboard state, the top labels on screen and whether the screen changed. That block is the verification step.som_ids describe one captured screen. After any action they are stale and the server refuses them (stale_som_id), so the agent can never tap something that has moved.
Details that matter in practice:
Elements without text. Icon-only buttons are numbered too, as long as the app exposes them to Android's accessibility service, which is the case for standard apps.
Cold starts. Launching an app waits for that app to reach the foreground. On a slow device a cold start can take 20 seconds; an app that is already on top returns immediately.
Gestures go through the Portal's accessibility gestures (fast, and accepted by system UI such as the notification shade), with
adb inputas the fallback.Errors look like
[code] message (hint: ...):device_unreachable,policy_blocked,stale_som_id,unknown_som_id,element_not_found,app_not_found,timeout,unsupported,invalid_argument,not_permitted,plan_incomplete.
Calling the tools
Every capability is an MCP tool: a name and a JSON arguments object. The client makes the call
when you describe what you want, or you can invoke a tool by name. On the wire:
{"method": "tools/call", "params": {"name": "tap", "arguments": {"som_id": 2}}}For every tool:
Optional arguments can be left out;
nullalso means "not given".deviceis an optional argument on every tool that touches a device (an adb serial). Leave it out to useMOBILERUN_DEVICE, or the only attached device.State-changing tools (
tap,swipe,type_text,launch_app, ...) wait for the screen to settle and return{"ok": true, "action": ..., "post_action_observation": {...}}.Read tools return a JSON object;
perceive_screenand the screenshot tools also return an image.Errors come back as
[code] message (hint: ...), for example[stale_som_id] ....
The post_action_observation block tells the agent what the screen looks like after the action:
Field | Meaning |
| What is in front now |
| How many numbered elements are on screen |
| Whether the on-screen keyboard is up |
| The first few labels on screen, in reading order |
| Whether the screen differs from before the action |
| A spinner or progress bar is visible |
| The screen stopped changing before the wait ended; how long that took |
|
|
| This screen was already seen N actions ago (going in circles?) |
| A banking / payment / authenticator app is in front |
| What to do next |
A typical session
Search Contacts for "ali". Calls are written tool arguments; outputs are real.
1. Look at the screen.
perceive_screen {}The reply is a JSON object with foreground_app, package, activity, keyboard_visible,
screen_size, perception_tier, e (AURA's [x, y, name, flags] per som_id),
mark_count, ocr_used and elements. Here e is
[[56, 104, "Open navigation drawer"], [664, 104, "Search contacts"], [224, 104, "Contacts"], [360, 230, "A / Ali Omar", "l"], [632, 1096, "Create new contact"]]
and elements contains:
1 [button] "Open navigation drawer" @(56,104)
2 [button] "Search contacts" @(664,104)
3 [text] "Contacts" @(224,104)
4 [button] "A / Ali Omar" @(360,230)
5 [button] "Create new contact" @(632,1096)The leading number is the som_id; @(x,y) is the tap point. An annotated screenshot with the same
numbers is returned alongside the JSON.
2. Tap the search icon by its number.
tap {"som_id": 2}The reply has "ok": true and keyboard_visible: true in post_action_observation. Any action
invalidates the numbers: reusing som_id 2 now fails with stale_som_id until perceive_screen is
called again.
3. Type.
type_text {"text": "ali"}{
"ok": true,
"action": "type_text",
"chars": 3,
"post_action_observation": {
"foreground_app": "Contacts",
"package": "com.android.contacts",
"activity": "PeopleActivity",
"element_count": 5,
"keyboard_visible": true,
"top_labels": [
"stop searching",
"ali",
"Clear search",
"Ali Omar"
],
"screen_changed": true,
"loading_indicator_present": false,
"settled": true,
"settle_ms": 922,
"sensitive_foreground": false,
"hint": "Settled after the action. Judge the result from this observation ..."
}
}4. Verify.
verify_action {"expected": "Ali Omar"}{
"expected": "Ali Omar",
"state": {"foreground_app": "Contacts", "element_count": 4, "keyboard_visible": true,
"top_labels": ["stop searching", "ali", "Clear search", "Ali Omar"], "...": "..."},
"verified": true,
"evidence": "text=\"Ali Omar\"",
"foreground": "com.android.contacts",
"visible_text": ""
}Tool reference
149 tools, plus adb / aura-adb when MOBILERUN_MCP_ENABLE_ADB=1. Every tool that acts on a device takes an optional device (adb serial, ios, cloud:<id>, or a Portal URL). [name=default] is optional. Generated by scripts/gen_reference.py.
Perception
See the screen. read_screen (text grid) or perceive_screen (annotated image) first; act by som_id.
Tool | What it does | Arguments |
| LOOK at the screen: an annotated screenshot plus every element and its tap point. | [description] [detail] [include_image=true] [ocr=auto] [max_marks=150] [lang=eng] |
| Read the screen now (waits for it to stop moving first): the screen drawn as a character grid, each element a box with its som_id and label, then a table of what can be acted on: som (tap by this), in (som_id of the smal | none |
| Compact accessibility tree (class, id, label, flags C/L/E/S/K/P, bounds). | [max_depth=8] |
| Plain screenshot as an image. | none |
| Plain screenshot. | [hide_overlay=false] |
| Take a screenshot, save it as a PNG file and return the path. | none |
perceive_screen {}
perceive_screen {"description": "search bar", "detail": "full"}
read_screen {}
get_ui_tree {}
get_screenshot {}
screenshot {}
screenshot_path {}Gestures, typing and keys
Every action settles the screen and returns post_action_observation. Target with x/y, a som_id, or (mobilerun style) an index from get_state.
Tool | What it does | Arguments |
| Tap at (x, y) or at the center of a numbered mark (som_id from perceive_screen / read_screen). | [x] [y] [som_id] [stealth=false] |
| Double-tap at (x, y) or a mark. | [x] [y] [som_id] |
| Press and hold at (x, y), a mark (som_id) or a get_state element (index). | [x] [y] [som_id] [index] [duration_ms] [ms] |
| Long press at (x, y) (mobilerun agent action). | x y |
| Swipe from (x1, y1) to (x2, y2) over duration_ms / ms (default 300). | [x1] [y1] [x2] [y2] [duration_ms] [ms] [coordinate] [coordinate2] [duration] |
| Scroll the content down (reveal what is below): a centered swipe over half the screen (amount), or inside a scrollable mark (som_id). | [amount=0.5] [som_id] |
| Scroll the content up (reveal what is above). | [amount=0.5] [som_id] |
| Scroll the content left (reveal what is to the left). | [amount=0.5] [som_id] |
| Scroll the content right (reveal what is to the right). | [amount=0.5] [som_id] |
| Scroll the content in direction (up / down / left / right) by distance (fraction of the screen). | direction [distance=0.5] [ms=300] [verify=false] |
| Two modes. | [x1] [y1] [x2] [y2] [duration_ms=300] [text] [direction=down] [max_scrolls=8] |
| Type into the focused field (tap it first, or pass som_id). | text [clear=false] [submit=false] [som_id] |
| Type text (mobilerun). | text [index] [clear=false] [wpm] [stealth=false] |
| Press the Home button. | none |
| Press Back (also closes the keyboard without leaving the screen). | none |
| Press Enter (submits search bars and forms). | none |
| Open the recent-apps overview. | none |
| Press a key by mobilerun-core name (back, home, menu, enter, delete, escape, tab, space, search, page_up, page_down, volume_up, volume_down, wakeup, media_play_pause, ...) or by Android keycode number. | name_or_code |
tap {"som_id": 4}
tap {"x": 540, "y": 1200}
double_tap {}
long_press {"som_id": 4}
long_press {"index": 7, "ms": 800}
long_press_at {"x": 1, "y": 1}
swipe {"x1": 360, "y1": 1000, "x2": 360, "y2": 300}
swipe {"coordinate": [360, 1000], "coordinate2": [360, 300], "duration": 0.5}
scroll_down {}
scroll_up {}
scroll_left {}
scroll_right {}
scroll {"direction": "down"}
scroll_to {"text": "Battery"}
scroll_to {"x1": 360, "y1": 900, "x2": 360, "y2": 400}
type_text {"text": "hello", "som_id": 3, "submit": true}
type {"text": "hello", "index": 5, "clear": true}
press_home {}
press_back {}
press_enter {}
open_recent_apps {}
key {"name_or_code": "back"}Apps and deep links
Tool | What it does | Arguments |
| Open an app by name (fuzzy) or exact package_name. | [app_name] [package_name] [force=false] [package] |
| Start an app by id (Android package / iOS bundle id), optionally a specific activity. | [app_id] [activity] [package] |
| Search installed apps by name or package; returns ranked candidates with scores. | [app_name] [query] [limit=5] |
| List installed apps (user apps only unless include_system_apps=true). | [include_system_apps=false] [include_protected_apps=false] [system=false] |
| Deep links into an app, best first. | [package_name] [app_name] [package] |
| Which app would open this URI (or intent action such as android.settings.WIFI_SETTINGS)? | uri |
| Jump straight to a screen via a URI, an app-shortcut://pkg/id from list_app_deeplinks, or an intent action. | uri [package_name] [app_name] [package] |
launch_app {"app_name": "Clock"}
launch_app {"package_name": "com.android.settings", "force": true}
start_app {}
lookup_app {}
list_apps {}
list_app_deeplinks {}
resolve_deeplink {"uri": "https://example.com"}
open_deeplink {"uri": "android.settings.WIFI_SETTINGS"}
open_deeplink {"uri": "app-shortcut://com.android.settings/manifest-shortcut-wifi"}System intents and contacts
Tool | What it does | Arguments |
| One-call Android actions (action = the verb; verb= is accepted too). | [action] [verb] [hour] [minute] [seconds] [label] [phone_number] [body] [title] [start] [end] [location] [notes] [text] [subject] [destination] [mode=drive] [skip_ui=true] |
| Find contacts by (partial) name and return their phone numbers. | name [limit=5] |
system_intent {"action": "set_alarm", "hour": 7, "minute": 30, "label": "wake"}
system_intent {"action": "navigate", "destination": "Cairo Tower", "mode": "walk"}
resolve_contact {"name": "Ali"}Notifications
Tool | What it does | Arguments |
| Current status-bar notifications, newest first, without touching the screen: key, app, title, text, action labels. | [package_name] [include_ongoing=false] [limit=20] [package] |
| Dismiss one notification (by key, or package/title) or every clearable one. | [key] [package] [title] [clear_all=false] |
| Tap one of a notification's own buttons (reply, archive, stop...); reply_text fills an inline reply field and sends it. | action [key] [package] [title] [reply_text] |
read_notifications {}
dismiss_notification {}
notification_action {"action": "list"}Media and volume
Tool | What it does | Arguments |
| Active media sessions (app, playback state, title/artist) and the music volume. | [include_system=false] |
| Control playback in any app without touching the screen: play, pause, play_pause, next, previous, stop, rewind, fast_forward. | [command] [package_name] [action] |
| Raise the music volume by | [steps=1] |
| Lower the music volume by | [steps=1] |
| Toggle mute on the media stream (muted=true/false forces a state). | [muted] |
get_media_sessions {}
media_control {}
volume_up {}
volume_down {}
mute {}Files
Tool | What it does | Arguments |
| Search the device's media index by name, newest first: images, videos, audio and documents (downloads included). | [query] [kind=any] [limit=10] [path] [max_depth=6] |
| Open a file in its default viewer. | [uri] [path] |
find_files {}
open_file {}Waiting and checking
Tool | What it does | Arguments |
| LONG waits only (downloads, uploads, processing, status changes); gestures already settle. | [condition] [timeout_ms] [poll_interval_ms] [text] [package] [activity] [gone=false] [timeout] [interval] |
| Collect device events for up to timeout_seconds (default 10, max 30), returning early once max_events (default 50) arrive: foreground app, keyboard, screen content, notifications posted/removed. | [timeout_seconds] [max_events=50] [duration] [interval=0.5] [kinds] |
| Pre-check a planned action against the safety policy (and, for our action set, that its target exists) without doing it. | [gesture_type] [target] [action] [x] [y] [som_id] [text] [package] [app_name] [uri] |
| Check an outcome against the live screen. | expected [kind=text] [timeout=3.0] [use_ocr=false] |
wait_for {}
watch_device_events {}
validate_action {}
verify_action {"expected": "Settings is open"}Plan, findings and research
Tool | What it does | Arguments |
| Search the web for how to do something in an app ('how to in android'). | query [max_results] [topic=general] [limit=5] |
| Start a plan checklist. | steps [goal] [deliverable] [target_count=0] [search_query] |
| Update a plan step: pending / in_progress / done / skipped / failed. | index status [note] |
| Record one item you found. | item quote |
| Mark the end of the task (the server keeps listening; the next call starts fresh). | [reason=agent-end] [outcome=success] [goal_type] [summary] |
| How to use this server well. | [topic] |
web_search {"query": "wifi"}
set_plan {"steps": []}
mark_step {"index": 1, "status": "value"}
record_finding {"item": "Result 1", "quote": "exact text"}
end_session {}
get_usage_guide {}Browser
Pages come back with numbered elements (el_id) and a generation; pass both to browser_act. Sessions: scratch (default) or mine (the user's signed-in browser).
Tool | What it does | Arguments |
| Open a web page; returns its text plus numbered elements (el_id) and a generation. | [url] [background=false] [session=scratch] [max_text_chars=4000] [max_elements=60] [target_id] [app] [wait=true] [timeout=15.0] |
| Several pages at once. | [action=list] [url] [index] [session=scratch] |
| Close a browser session and free it (the page is blanked); close_app also stops the app. | [session=scratch] [close_app=false] |
| A picture of the open page, for what text cannot tell (charts, maps, images, popups). | [session=scratch] [full_page=false] [max_text_chars=4000] [max_elements=60] |
| Re-read the open page without navigating: text, numbered elements (el_id) and the generation. | [session=scratch] [max_text_chars=4000] [max_elements=60] [selector] [max_chars] [structure=true] |
| Find something on the page by its text; returns matches with el_id plus the page. | [text] [session=scratch] [max_text_chars=4000] [max_elements=60] [query] [limit=10] |
| Wait for text to appear on the page (or, without text, for it to settle), then return the page. | [text] [timeout_ms] [session=scratch] [max_text_chars=4000] [max_elements=60] [selector] [url_contains] [timeout] |
| Pull repeated items off the page (search results, product cards, listings) as rows of text + link in one call, with the total found. | [session=scratch] [max_text_chars=4000] [max_elements=60] [kind=items] [selector] [limit] |
| Act on the page and get the page back. | action [el_id] [value] [generation] [session=scratch] [max_text_chars=4000] [max_elements=60] [ref] [selector] [text] [key] [clear=false] [submit=false] [amount=600] |
| Let the person do a step you cannot (sign in, one-time code, CAPTCHA, payment confirmation): brings the page to the front and posts prompt as a device notification. | [prompt] [check=false] [session=scratch] [max_text_chars=4000] [max_elements=60] [message] |
| Attach a file to an upload control (el_id). | [el_id] [file] [generation] [session=scratch] [max_text_chars=4000] [max_elements=60] [path] [ref] [selector] |
browser_open {"url": "https://example.com"}
browser_tabs {}
browser_close {}
browser_screenshot {}
browser_read {}
browser_find {}
browser_wait {}
browser_extract {}
browser_act {"action": "click", "el_id": 3, "generation": 1}
browser_act {"action": "type", "el_id": 5, "value": "shoes"}
browser_handoff {}
browser_upload {}mobilerun-core Device API
Same names and parameters as mobilerun_core.Device. Works on Android (adb or Portal HTTP), iOS and Mobilerun Cloud devices.
Tool | What it does | Arguments |
| Raw UI snapshot (a11y_tree, phone_state, device_context, ...), as Device.ui(). | [filter=true] |
| The UI snapshot serialized as JSON text. | [filter=true] [indent] |
| UI snapshot that retries past a dead or empty accessibility tree. | [filter=true] |
| Backend, platform and the actions this device supports. | none |
| Whether this device supports a Device action (e.g. | action |
| [width, height] in pixels. | none |
| Package / bundle id of the foreground app. | none |
| The device clock. | none |
| Nodes matching every given filter (exact text/desc/resource_id/class_name, or *_contains substrings), including off-screen ones. | [text] [desc] [resource_id] [class_name] [text_contains] [desc_contains] [any_contains] [tree] |
| Like find_nodes, limited to nodes inside the visible screen. | [text] [desc] [resource_id] [class_name] [text_contains] [desc_contains] [any_contains] [tree] |
| Tap the first on-screen node whose text/description contains text. | text |
| Tap the center of a node returned by find_nodes / find_nodes_on_screen. | node [stealth=true] |
| Tap a text (or node) and wait until the UI has been idle for idle seconds. | target [idle=2.0] |
| Scroll until a matching node is on screen; result is the node (or null). | [text] [text_contains] [any_contains] [resource_id] [direction=down] [max_swipes=10] [distance=0.35] [settle=0.5] |
| Clear the focused text field. | none |
| Fail unless app_id is in the foreground. | app_id |
| Fail unless text becomes visible on screen within timeout seconds. | text [timeout=5.0] |
| Wait until app_id is in the foreground. | app_id [timeout=10.0] [poll=0.5] |
| Wait until the UI stops changing. | [timeout=5.0] [poll=0.5] |
| Wait until the UI differs from now. | [timeout=10.0] [poll=0.5] |
| Wait until a node containing text exists (off-screen nodes count). | text [timeout=10.0] [poll=0.5] |
| Poll find_nodes until something matches (or timeout, returning []). | [timeout=10.0] [poll=0.5] [text] [desc] [resource_id] [class_name] [text_contains] [desc_contains] [any_contains] [on_screen=false] |
| Start an app and wait until it is in front and idle. | app_id [timeout=15.0] [idle=3.0] |
| Force-stop an app; clear_data also wipes its data. | app_id [clear_data=false] |
| Install an APK (host path) on the device. | path [replace=false] [grant_permissions=true] |
| Uninstall an app. | app_id |
| Grant a runtime permission (android.permission.*) to an app. | package permission |
| Dispatch a deep link / intent (default action VIEW), optionally pinned to a package. | deep_link [package_name] [action] |
| Run JavaScript in the foreground browser page and return its JSON result. | js |
| The clipboard's text (Android needs the Mobilerun Keyboard as the active IME). | none |
| Put text on the clipboard. | value |
ui {}
ui_json {}
ui_with_recovery {}
capabilities {}
supports {"action": "list"}
screen_size {}
current_app_id {}
time {}
find_nodes {"text_contains": "Wi"}
find_nodes_on_screen {}
tap_text {"text": "Settings"}
tap_node {"node": {}}
tap_and_wait {"target": "Settings"}
scroll_until {}
clear_input {}
assert_on {"app_id": "com.android.settings"}
assert_text_visible {"text": "Settings"}
wait_for_app {"app_id": "com.android.settings"}
wait_for_idle {}
wait_for_screen_change {}
wait_for_text {"text": "Settings"}
wait_for_nodes {}
open_and_settle {"app_id": "com.android.settings"}
stop_app {"app_id": "com.android.settings"}
install_app {"path": "/sdcard/Download/a.apk"}
uninstall_app {"app_id": "com.android.settings"}
grant_permission {"package": "com.android.settings", "permission": "android.permission.CAMERA"}
open_deep_link {"deep_link": "https://example.com"}
execute_script {"js": "document.title"}
get_clipboard {}
set_clipboard {"value": "copied text"}mobilerun agent actions
The mobilerun agent's action set. Indices come from get_state.
Tool | What it does | Arguments |
| The screen as the mobilerun agent sees it: phone state plus numbered UI elements ('index. | none |
| Click the get_state element with this index (its center, avoiding views drawn on top). | index |
| Click at screen position (x, y). | x y |
| Click the center of the area (x1, y1, x2, y2). | x1 y1 x2 y2 |
| Press a system button: back, home or enter. | button |
| Wait for duration seconds (max 60). | [duration=1.0] |
| Open an app by name or package (mobilerun agent action). | text |
| Finish the task (mobilerun agent action): success flag plus the result or the reason for failure. | success message |
| Type a secret from the mobilerun credentials file (MOBILERUN_CREDENTIALS, else config/credentials.yaml or ~/.config/mobilerun/credentials.yaml) into the get_state element index (-1 = the focused field). | secret_id index |
get_state {}
click {"index": 1}
click_at {"x": 1, "y": 1}
click_area {"x1": 1, "y1": 1, "x2": 1, "y2": 1}
system_button {"button": "back"}
wait {}
open_app {"text": "Settings"}
complete {"success": true, "message": "hi"}
type_secret {"secret_id": "MY_PASSWORD", "index": 1}Agent tasks and macros
run_task runs the Mobilerun agent locally (mobilerun CLI) or on a Mobilerun Cloud device.
Tool | What it does | Arguments |
| Hand a natural-language goal to the Mobilerun agent. | task [deviceId] [llmModel] [maxSteps] [vision] [reasoning=false] [stealth] [outputSchema] [apps] [credentials] [files] [wait=true] [steps] |
| A task's summary, status or trajectory (view). | taskId [view=summary] [offset] [limit] |
| Tasks: local agent runs of this server, plus Mobilerun Cloud tasks when MOBILERUN_CLOUD_API_KEY is set (scope: local / cloud / all). | [deviceId] [status] [query] [orderBy] [orderByDirection] [page] [pageSize] [scope=all] |
| Stop a running task. | taskId |
| A screenshot (or ui_state) the task recorded; index picks the step (default latest). | taskId [kind=screenshot] [index] |
| Send a message to a running cloud task (e.g. | taskId message |
| Recorded trajectories (mobilerun macro list); defaults to this server's task folder. | [directory] |
| Replay a recorded macro (macro.json or a trajectory folder) on the device (mobilerun macro replay). | path [delay] [start_from] [max_steps] [dry_run=false] [on_mismatch=stop] |
run_task {"task": "Open Clock and tell me the first alarm", "maxSteps": 20}
get_task {"taskId": "local-1"}
list_tasks {}
stop_task {"taskId": "local-1"}
get_task_media {"taskId": "local-1"}
send_task_message {"taskId": "local-1", "message": "hi"}
macro_list {}
macro_replay {"path": "/sdcard/Download/a.apk"}Mobilerun Cloud platform
Same tools as droidrun's official mobilerun-mcp. Needs MOBILERUN_CLOUD_API_KEY; device tools also work on local devices where an equivalent exists.
Tool | What it does | Arguments |
| Fetch one device by id (a Mobilerun Cloud id, or a local device: adb serial, ios...). | deviceId |
| Capture a device screenshot and return the raw result ({deviceId, screenshot}); for cloud devices the SDK result (base64 payload or signed URL), for local ones base64 PNG. | deviceId |
| Read the on-screen UI as structured text: current app/activity, keyboard state, and a compact list of labeled/actionable elements (text, resourceId, className, tap center | deviceId [contains] [resourceId] [includeAll] [offset] |
| List apps installed on a device (package_name, label, version_name, version_code, is_system_app). | deviceId [includeSystemApps] [includeProtectedApps] |
| Provision a new Mobilerun Cloud device (billing is enforced by the API). | [deviceType] [name] [country] |
| Terminate a Mobilerun Cloud device. | deviceId |
| Device lifecycle operations. | operation [deviceId] [name] |
| Low-level device input. | operation deviceId [displayId] [x] [y] [startX] [startY] [endX] [endY] [duration] [stealth] [text] [clear] [errorRate] [wpm] [key] [action] |
| Mutate apps on a device. | operation deviceId [packageName] [bundleId] [activity] [includeSystemPackages] [includeProtectedPackages] |
| Device filesystem access. | operation deviceId path [contentBase64] [fileName] [contentType] |
| Read/write device settings. | operation deviceId [locale] [restart] [timezone] [latitude] [longitude] [visible] [proxyName] [smartIp] [socks5Host] [socks5Port] [socks5User] [socks5Password] |
| eSIM subscription management (Mobilerun Cloud devices). | operation deviceId [enable] [smDpAddr] [confirmationCode] [matchingId] [subId] |
| List saved credentials (metadata only; values never leave credentials storage). | [packageName] |
| List app packages that have any credential configured. | none |
| Write path for the credentials vault. | operation [packageName] [credentialName] [fieldType] [value] [fields] |
| Manage outbound webhooks and inspect deliveries. | operation [endpointId] [deliveryId] [url] [eventTypes] [description] [state] [status] [page] [pageSize] [since] |
| Manage device-bound proxy configs (socks5 or wireguard). | operation [proxyId] [protocol] [name] [host] [port] [user] [password] [config] [lookupUser] [lookupPassword] |
| droidrun-connect residential SOCKS5 proxies and their users (distinct from the device-bound | operation [proxyId] [userId] [country] [type] [page] [pageSize] [status] [protocol] [provider] [dstHost] [dstPort] [sessionId] [startedAfter] [startedBefore] [endedAfter] [endedBefore] [order] [orderBy] |
| Manage uploaded apps (APKs) in Mobilerun Cloud. | operation [id] [query] [platform] [status] [sortBy] [order] [page] [pageSize] [bundleId] [displayName] [versionCode] [versionName] [sizeBytes] [files] [uploadPlatform] [country] [description] [developerName] [iconURL] [targetSdk] |
| Read-only platform reference data: models (LLM model ids), timezones (IANA strings for create_trigger), app_event_types (every selectable app/system event type). | catalog |
| List one kind of workflow resource. | resource [service] [search] [activation] [eventType] [enabled] [triggerId] [flowId] [status] [page] [pageSize] [limit] |
| Fetch one workflow resource by id (full config/params). | resource id |
| Create an action from a catalog entry. | catalogEntryId name [description] [isAsync] [params] |
| Create a trigger. | name activation [eventType] [scheduleRule] [customPayloadSchema] [timezone] [description] [conditions] |
| Create a flow binding a trigger to ordered actions ([{actionId, position (1-based)}]); target devices go in the top-level deviceIds. | name triggerId actions deviceIds [description] [cooldownSeconds] [cooldownScope] |
| Flow lifecycle beyond create_flow. | operation [flowId] [name] [deviceIds] [actionId] [position] [continueOnError] [nameOverride] [overrides] [parentFlowActionId] [children] [flowActionId] [actions] [triggerId] [from] [to] |
| Ingest, simulate and catalog custom app/system events for trigger evaluation. | operation [eventType] [payload] [source] [page] [pageSize] [events] |
get_device {"deviceId": "192.168.1.20:5555"}
get_device_screenshot {"deviceId": "192.168.1.20:5555"}
get_device_ui_state {"deviceId": "192.168.1.20:5555"}
list_apps_on_device {"deviceId": "192.168.1.20:5555"}
create_device {}
terminate_device {"deviceId": "192.168.1.20:5555"}
manage_device {"operation": "reboot"}
device_action {"deviceId": "192.168.1.20:5555", "operation": "tap", "x": 540, "y": 1200}
manage_device_apps {"operation": "install", "deviceId": "192.168.1.20:5555"}
manage_device_files {"operation": "list", "deviceId": "192.168.1.20:5555", "path": "/sdcard/Download/a.apk"}
configure_device {"operation": "get_language", "deviceId": "192.168.1.20:5555"}
manage_esim {"operation": "list", "deviceId": "192.168.1.20:5555"}
list_credentials {}
list_credential_packages {}
manage_credentials {"operation": "init_package"}
webhooks {"operation": "create"}
proxies {"operation": "list"}
connect {"operation": "list_countries"}
apps {"operation": "list"}
platform_catalog {"catalog": "models"}
list_workflow_resources {"resource": "action_catalog"}
get_workflow_resource {"resource": "action_catalog", "id": "abc123"}
create_action {"catalogEntryId": "value", "name": "Ali"}
create_trigger {"name": "Ali", "activation": "event"}
create_flow {"name": "Ali", "triggerId": "value", "actions": [], "deviceIds": ["192.168.1.20:5555"]}
manage_flow {"operation": "clone"}
workflow_events {"operation": "ingest"}Devices and connection
Tool | What it does | Arguments |
| Battery, screen power, foreground app, size, storage, network addresses, volume. | none |
| Devices you can control. | [scope=local] [state] [type] [name] [country] [page] [pageSize] [filters] |
| Is the device reachable? | none |
| (Re)connect adb and the Portal for a device; use after the network path came back. | none |
| Disconnect a TCP/IP adb device (adb disconnect host:port) and drop its session. | none |
| Install and enable the Mobilerun Portal on the device (mobilerun setup); path installs a specific Portal APK. | [path] |
| Health check of adb, the Portal and the device (mobilerun doctor). | none |
| Compatibility no-op: screenshots use the Portal / adb screencap, no prompt is needed. | none |
| Returns text verbatim: a check that the MCP transport is alive (no device access). | [text] [message] |
get_device_status {}
list_devices {}
ping_device {}
connect_device {}
disconnect_device {}
setup_portal {}
doctor {}
request_screen_capture_permission {}
echo {}Compatibility
Tool | What it does | Arguments |
| Press home, back or enter (kept for old clients; prefer press_home/back/enter). | button |
press {"button": "back"}Raw adb
Only when MOBILERUN_MCP_ENABLE_ADB=1; refused while a safety policy is on.
Tool | What it does | Arguments |
| Run an adb command against the device. | command |
| Run an adb command against the device. | command |
aura-adb {"command": "shell dumpsys window | grep mCurrentFocus"}
adb {"command": "shell dumpsys battery"}Configuration
Variable | Default | Meaning |
| the only attached device | Default device (see the |
|
| Safety policy: |
|
| Set to |
|
| Set to |
| unset |
|
| unset |
|
| unset | Mobilerun Cloud devices, tasks and the cloud platform tools |
|
| Secrets file for |
| downloaded | Path to an OmniParser icon-detect |
|
| iOS portal for |
| unset | Bearer token for Portal-HTTP-only Android targets |
|
| Address for |
| on | Binary overrides |
Safety policy
The policy is off by default, so an agent can sign in to accounts and use any app.
standardblocks banking, payment and wallet apps, authenticator apps and password managers, Luhn-valid card numbers, and fields asking for a card security code.strictadditionally refuses password and PIN fields and national-id numbers.
Blocked actions fail with [policy_blocked]. run_task and the raw adb tool are disabled while
a policy is on, because they cannot be policed. Read mobilerun://policy for the active rules.
Limitations
Tested live on redroid 12 (Android 12, x86_64). Physical phones, other Android versions, iOS and cloud devices go through the same code paths but were not driven live here; the cloud tools are verified against mocked API responses.
Icon detection (
detail="full") is a host-side guess: red boxes, not facts.media_controlwithpackage_namegoes to the active media session (adb cannot address one app's session); the reply says when that is a different app.Scratch-browser tabs (WebView Browser Tester has one page) are remembered URLs that reload on
switch; the signed-in browser (session="mine", e.g. Chrome) has real tabs.Notification actions and dismissal drive the notification shade, because
adbcannot fire a PendingIntent. Ongoing notifications cannot be dismissed.Local
run_taskruns the mobilerun CLI agent;outputSchema,apps,credentials,filesandstealthapply to cloud tasks only. The agent's self-report can be wrong: verify on screen.Launcher shortcuts come from
dumpsys shortcut; Android elides the path of https shortcut URIs there, so those open the app without the exact page.Volume commands succeed on redroid but have no audible effect.
Development
uv pip install --python .venv/bin/python -e ".[dev]"
.venv/bin/python -m pytest # unit tests, no device needed
MOBILERUN_DEVICE=<serial> .venv/bin/python -m pytest -m live # drives a real device
.venv/bin/ruff check src tests && .venv/bin/ruff format --check src testsUnit tests run against real output captured from a device (
tests/fixtures; regenerate withscripts/capture_fixtures.py). The JavaScript snippets are syntax-checked withnodewhen it is installed.Live tests drive the device through an in-process MCP client and assert observable effects (foreground app, screen contents, notification state, page state), not just that a call returned. They post notifications, change the media volume and open apps, so use a scratch device.
src/mobilerun_mcp/
adb.py portal.py transports: adb wrapper, Portal HTTP client
session.py observe.py per-device state, settle-and-observe
models.py marks.py screen model, numbered marks, signatures
parsers/ pure parsers for accessibility state, dumpsys, intent filters, ...
policy.py ledger.py safety rules, plan ledger
browser/ CDP client, target discovery, navigation, page scripts
tools/ one small module per tool groupRelationship to other projects
Independent; not affiliated with AURA, Mobilerun/droidrun or redroid.
AURA: same tool names, parameters and output formats, re-implemented on the host. No AURA code or assets are included.
mobilerun-core (Apache-2.0) is a dependency; its
Deviceruns on this server's fast Android transport.mobilerun (MIT): the agent's element indexing is adapted in
src/mobilerun_mcp/agentui.py.droidrun/mobilerun-mcp (Apache-2.0): the cloud tools in
src/mobilerun_mcp/tools/cloud.pyare a port of its tool layer.Mobilerun Portal provides screen access on Android.
OmniParser v2 icon detector (AGPL-3.0), downloaded at runtime, not redistributed.
License
Available Tools
68 toolsbrowser_actBrowser ActA
Act on the page. Actions: click, type(text, clear, submit), press(key), focus, hover, select(value), check/uncheck, scroll(amount px, negative = up), scroll_into_view. Target an element with ref (from browser_find/browser_read) or a CSS selector.
Inputs: action (required), key, ref, text, +7 more. Returns: object
browser_closeBrowser CloseB
Detach a browser session (blanking the page); close_app also stops the browser app.
Inputs: device, session, close_app. Returns: object
browser_extractBrowser ExtractC
Pull structured data: kind = table (headers + row dicts) | links | text.
Inputs: kind, limit, device, session, +1 more. Returns: object
browser_findBrowser FindA
Find visible elements by text, label, placeholder, alt or name; returns refs for browser_act.
Inputs: query (required), limit, device, session. Returns: object
browser_handoffBrowser HandoffA
Bring the browser to the foreground so a person can finish a login or captcha by hand; call browser_read afterwards to continue.
Inputs: device, message, session. Returns: object
browser_openBrowser OpenB
Open a URL in the on-device browser, or attach to an existing page (target_id from
browser_tabs, or app= for an in-app WebView). session names the attachment.
Inputs: app, url, wait, device, +3 more. Returns: object
browser_readBrowser ReadA
Read the page: title, url and visible text; structure=true also lists interactive elements with refs (e1, e2...) for browser_act.
Inputs: device, session, selector, max_chars, +1 more. Returns: object
browser_screenshotBrowser ScreenshotC
Screenshot of the page content. The owning app is brought to the foreground first (a hidden WebView cannot render).
Inputs: device, session, full_page.
browser_tabsBrowser TabsC
Every open page across the on-device browser and in-app WebViews, plus attached sessions.
Inputs: device. Returns: object
browser_uploadBrowser UploadA
Attach a file to an . path is a device path under /sdcard, or a host
file (not inside a hidden directory) that is pushed to /sdcard/Download first.
Inputs: path (required), ref, device, session, +1 more. Returns: object
browser_waitBrowser WaitC
Wait until the page has text, a selector and/or a URL fragment (or just finished loading).
Inputs: text, device, session, timeout, +2 more. Returns: object
connect_deviceConnect DeviceB
(Re)connect adb and the Portal for a device; use after the network path came back.
Inputs: device. Returns: object
dismiss_notificationDismiss NotificationC
Dismiss one notification (by key, or package/title) or every clearable one.
Inputs: key, title, device, package, +1 more. Returns: object
double_tapDouble TapC
Double-tap at (x, y) or a mark; both taps are issued concurrently so they land together.
Inputs: x, y, device, som_id. Returns: object
echoEchoA
Connectivity check for the MCP server itself (does not touch the device).
Inputs: message. Returns: object
end_sessionEnd SessionA
Close out the run. outcome: success | partial | failed. Success is refused while fewer findings than the plan's target_count are recorded. Call after a final perceive_screen.
Inputs: device, outcome, summary. Returns: object
find_filesFind FilesB
Find files under shared storage whose name contains query (empty lists everything).
Inputs: path, limit, query, device, +1 more. Returns: object
get_device_statusGet Device StatusB
Battery, screen power, foreground app, size, storage, network addresses, volume.
Inputs: device. Returns: object
get_media_sessionsGet Media SessionsC
Active media sessions (app, playback state, title/artist) and the music volume.
Inputs: device, include_system. Returns: object
get_screenshotGet ScreenshotC
Plain screenshot as an image.
Inputs: device.
get_ui_treeGet Ui TreeC
Compact accessibility tree (class, id, label, flags C/L/E/S/K/P, bounds).
Inputs: device, max_depth. Returns: object
get_usage_guideGet Usage GuideA
How to use this server well. Topics: overview, shortcuts, text_entry, failures, ledger, browser.
Inputs: topic. Returns: object
launch_appLaunch AppA
Open an app by name (fuzzy) or exact package. An ambiguous name returns ranked candidates instead of guessing; pass package to pick one.
Inputs: device, package, app_name. Returns: object
list_app_deeplinksList App DeeplinksB
Deep links for an app: registered VIEW intent filters plus curated entries, each probe-resolved on the device (resolved=true means a handler exists).
Inputs: device, package, app_name. Returns: object
list_appsList AppsA
List installed apps (user apps only unless system=true).
Inputs: device, system. Returns: object
list_devicesList DevicesB
Devices adb can see (serial and state).
Inputs: no named parameters. Returns: object
long_pressLong PressC
Press and hold at (x, y) or a mark.
Inputs: x, y, device, som_id, +1 more. Returns: object
lookup_appLookup AppA
Search installed apps by name or package; returns ranked candidates with scores.
Inputs: query (required), limit, device. Returns: object
mark_stepMark StepA
Update a plan step: pending | in_progress | done | skipped | failed. Put facts you read off the screen in note; the pixels are gone next turn.
Inputs: index (required), status (required), note, device. Returns: object
media_controlMedia ControlB
Send a media key: play, pause, play_pause, stop, next, previous, rewind, fast_forward.
Inputs: action (required), device. Returns: object
muteMuteC
Mute (volume 0, previous level remembered) or unmute the music stream.
Inputs: muted, device. Returns: object
notification_actionNotification ActionB
Tap one of a notification's own buttons (reply, archive, stop...); reply_text fills an inline reply field and sends it. Best-effort: it drives the notification shade.
Inputs: action (required), key, title, device, +2 more. Returns: object
open_deeplinkOpen DeeplinkC
Jump straight to a screen via URI or intent action; package pins the target app.
Inputs: uri (required), device, package. Returns: object
open_fileOpen FileC
Open a file in whichever app handles its type.
Inputs: path (required), device. Returns: object
open_recent_appsOpen Recent AppsC
Open the recent-apps overview.
Inputs: device. Returns: object
perceive_screenPerceive ScreenA
Capture the screen: numbered marks (som_id) for every tappable/readable item plus an annotated screenshot. ids are single-use and go stale after any action. ocr = auto (only when the accessibility tree is sparse) | always | never.
Inputs: ocr, lang, device, max_marks, +1 more.
ping_devicePing DeviceB
Is the Mobilerun Portal reachable? Returns its transport (http or content_provider).
Inputs: device. Returns: object
pressPressA
Press home, back or enter (kept for old clients; prefer press_home/back/enter).
Inputs: button (required), device. Returns: object
press_backPress BackB
Press Back (also closes the keyboard without leaving the screen).
Inputs: device. Returns: object
press_enterPress EnterA
Press Enter (submits search bars and forms).
Inputs: device. Returns: object
press_homePress HomeC
Press the Home button.
Inputs: device. Returns: object
read_notificationsRead NotificationsC
Notifications currently posted: key, app, title, text, action labels, clearable.
Inputs: limit, device, package, include_ongoing. Returns: object
read_screenRead ScreenB
Text-only view of the screen (no image): foreground app plus numbered elements.
Inputs: device. Returns: object
record_findingRecord FindingB
Record one item you found. quote must be copied exactly from the CURRENT screen.
Inputs: item (required), quote (required), device. Returns: object
request_screen_capture_permissionRequest Screen Capture PermissionA
Compatibility no-op: screenshots use the Portal / adb screencap, no prompt is needed.
Inputs: device. Returns: object
resolve_contactResolve ContactA
Find contacts by (partial) name and return their phone numbers.
Inputs: name (required), limit, device. Returns: object
resolve_deeplinkResolve DeeplinkB
Which app would open this URI (or intent action such as android.settings.WIFI_SETTINGS)?
Inputs: uri (required), device. Returns: object
run_taskRun TaskA
Hand a goal to the Mobilerun LLM agent (best-effort: its self-reported result can be wrong, so verify with perceive_screen). Disabled when the safety policy is on.
Inputs: task (required), steps, device, vision, +1 more. Returns: object
screenshotScreenshotC
Alias of get_screenshot (kept for existing clients).
Inputs: device.
screenshot_pathScreenshot PathC
Take a screenshot, save it as a PNG file and return the path.
Inputs: device. Returns: object
scroll_downScroll DownB
Scroll the content down (reveal what is below). amount is a fraction of the region.
Inputs: amount, device, som_id. Returns: object
scroll_leftScroll LeftC
Scroll the content left (reveal what is to the left).
Inputs: amount, device, som_id. Returns: object
scroll_rightScroll RightB
Scroll the content right (reveal what is to the right).
Inputs: amount, device, som_id. Returns: object
scroll_toScroll ToA
Scroll until an element whose label contains text is visible; returns its mark.
Inputs: text (required), device, direction, max_scrolls. Returns: object
scroll_upScroll UpC
Scroll the content up (reveal what is above).
Inputs: amount, device, som_id. Returns: object
set_planSet PlanC
Start a plan checklist. target_count > 0 means 'N items must be recorded' before end_session(success) is allowed. With 3+ steps and a search_query, the first web search rides along in the reply.
Inputs: steps (required), goal, device, deliverable, +2 more. Returns: object
start_appStart AppA
Launch an app by package name (alias of launch_app(package=...)).
Inputs: package (required), device. Returns: object
swipeSwipeC
Swipe from (x1, y1) to (x2, y2). duration (seconds) is accepted for old clients.
Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +3 more. Returns: object
system_intentSystem IntentB
One-call Android actions. Verbs: set_alarm(hour, minute, label), set_timer(seconds, label), dial(phone_number), compose_sms(phone_number, body), add_calendar_event(title, start, end, location, notes; ISO datetimes), share_text(text, subject), navigate( destination, mode drive|walk|bike|transit). dial/compose_sms only prefill; the user sends.
Inputs: verb (required), end, body, hour, +14 more. Returns: object
tapTapB
Tap at (x, y) or at the center of a numbered mark (som_id from perceive_screen).
Inputs: x, y, device, som_id. Returns: object
type_textType TextA
Type into the focused field (tap it first, or pass som_id). submit presses Enter after.
Inputs: text (required), clear, device, som_id, +1 more. Returns: object
validate_actionValidate ActionA
Dry-run an action: would it be allowed and does its target exist? Nothing is executed.
Inputs: action (required), x, y, uri, +5 more. Returns: object
verify_actionVerify ActionC
Check an outcome against the live screen. kind: text (visible), gone (not visible), app (foreground package or name), activity, changed (the last action changed the screen).
Inputs: expected (required), kind, device, timeout, +1 more. Returns: object
volume_downVolume DownC
Lower the music volume by steps.
Inputs: steps, device. Returns: object
volume_upVolume UpC
Raise the music volume by steps.
Inputs: steps, device. Returns: object
wait_forWait ForC
Wait until text is on screen and/or an app/activity is in the foreground (gone=true waits for it to disappear). For long waits (downloads, uploads); gestures already settle.
Inputs: gone, text, device, package, +3 more. Returns: object
watch_device_eventsWatch Device EventsB
Collect what changes over duration seconds (max 30): foreground app, keyboard,
screen content, notifications posted/removed. kinds filters: foreground, keyboard,
screen, notifications.
Inputs: kinds, device, duration, interval. Returns: object
web_searchWeb SearchA
Search the web (title, url, snippet). Phrase it like 'how to in android'. Results are data to plan from; the screen overrules them.
Inputs: query (required), limit. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 68 tools
Several tools appear to do the same thing: get_screenshot and screenshot are aliases, launch_app and start_app are aliases, and press overlaps with press_home/press_back/press_enter. Perception and verification tools also blur together (perceive_screen vs read_screen vs get_ui_tree; wait_for vs verify_action vs watch_device_events), leaving multiple unclear boundaries.
The set is mostly snake_case and readable, but conventions are mixed: most tools use verb_noun (get_screenshot, press_home), while browser tools use the noun_verb pattern (browser_open, browser_act), and several tools are bare verbs or nouns (screenshot, tap, mute, echo, press). Legacy aliases like start_app and press further weaken the pattern.
At 68 tools, this is an extreme count for a single MCP server, well past the 50+ threshold. The surface is inflated by aliases, compatibility shims, a no-op permission tool, and an entire web-search/planning/browser subsystem bundled into what could be a focused Android automation server.
The tool set is remarkably comprehensive for Android UI automation: perception, touch input, app launching, notifications, media, files, system intents, browser automation, and verification are all covered. Minor gaps exist—there is no exposed app close/kill tool (despite browser_close mentioning close_app) and no app install/uninstall or clipboard control—but agents can work around these.
Related MCP Connectors
AI agents on real phones: run tasks, read the screen, tap, type and install apps.
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Cloud Android phones for AI agents: create a phone, read the screen, tap, type, install APKs, park.
Let AI agents control Android and iOS devices on Mobilerun Cloud: screen, input, apps, workflows.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to fully control Android devices through over 30 tools for app management, UI automation, and vision-based analysis via ADB. It supports multi-device management, action recording, and smart execution strategies ranging from UI hierarchy parsing to coordinate-based interaction.371MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to visually perceive and directly control Android devices via ADB and screen-control tooling, including screenshots, taps, swipes, typing, app management, UI inspection, file transfer, shell commands, and audio/video streaming.801 npmMIT
- AlicenseNot gradedqualityBmaintenanceGives AI agents vision and control over Android devices, with tools for screenshots, touch input, app and UI automation, shell access, file transfer, clipboard, and audio/video streaming.801 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to see and control Android devices through ADB and scrcpy, supporting screenshots, input, app management, UI automation, shell/file access, and audio/video streaming.801 npmMIT