kaede-android-tools
Drives a real Android phone via adb, uiautomator2, and Chrome DevTools: reads the screen/accessibility tree, taps elements, types text, swipes, launches apps, opens URLs, and interacts with browser/WebView content.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
kaede-android-tools
A minimal MCP server that lets an agent drive a real Android phone the way a person does: read the screen, tap what it sees, type into fields, and reach into web pages when an app embeds a browser.
Three tools. No coordinate guessing. Every action returns the new screen, so a single call is usually enough.
Why
Most Android MCP servers expose a pile of thin adb wrappers, which forces the agent to take a screenshot, eyeball pixel positions and tap blind. That breaks the moment a layout shifts, and it burns tokens on every round trip.
This server fixes the three failure modes that actually hurt:
Problem | What this does instead |
Tapping guessed pixel coordinates | Resolves elements from the accessibility tree and taps their centre |
Blind actions, then a second call to see what happened | Every action returns the resulting compact screen |
Filling a form inside a WebView | Falls back to Chrome DevTools |
It talks to three layers under the hood and picks the right one per situation:
adb for shell, app launch, URLs and screenshots.
uiautomator2 for the accessibility tree and element-level actions. Its agent is pushed automatically, no root required.
Chrome DevTools Protocol for web content. Debug sockets are discovered and forwarded automatically, including the per-process sockets that custom tabs use.
Related MCP server: MobileAgentMCP
Install
uv tool install git+https://github.com/MapleProjects/kaede-android-toolsor from a clone:
uv venv && uv pip install -e .Requires adb in PATH, a phone with USB debugging authorised, and Python 3.10+.
Wire it into an MCP client
{
"mcp": {
"android": {
"type": "local",
"command": ["kaede-android-tools"],
"environment": { "ANDROID_SERIAL": "R58R8585EHR" }
}
}
}ANDROID_SERIAL is optional. Without it the only connected device is used.
The three tools
see(image=false, full=false, text=false)
Returns the current screen as a compact, numbered list.
app=com.android.chrome act=ChromeTabbedActivity 1080x2400 kb=off browser=1
#1 btn 'Cerrar' tap
#2 txt 'Iniciar sesión'
#3 in 'Correo electrónico o número de teléfono'
#4 btn 'Siguiente' tapThose #N references are stable for the next action. They are re-anchored on
the live tree by text, resource id and class, so a relayout does not break them.
Inputs are anchored by resource id and position instead, because typing rewrites
their own text.
text=true drops the references and returns only the readable text, which is
what you want for pulling a verification code out of an email:
see(text=true)
→ Recibidos
No leída, Equipo de cuentas Microsoft, 3 mensajes, Tu código de un solo uso,
... Tu código de un solo uso es: 873540 ...If a dialog steals focus from the app (a permission prompt, the "open with" sheet, a "continue to the app" box) the header says so, because that overlay is invisible in the app's own tree and is usually the thing blocking progress:
app=com.touchtype.swiftkey act=... OVERLAY=com.android.intentresolver/.ChooserActivityact(action, target=None, text=None, ...)
One verb, one call, and the resulting screen comes back with it.
action | needs | does |
|
| taps the element centre, or long presses with |
|
| focuses, clears, writes, optionally |
|
|
|
|
|
|
|
| starts a package and waits for it |
|
| opens a URL in the default browser |
|
| blocks until the element appears |
| - | reloads the page, or pulls to refresh in native list apps |
|
| raw |
swipe also takes explicit geometry, target="540,300" text="540,1700", for
gestures like pull-to-refresh that must start near the top edge.
target accepts four forms:
#3 a reference from see()
text=Siguiente exact label
~siguiente label contains, case insensitive
id=com.app:id/button resource id contains
540,1200 explicit coordinates, last resortweb(action, selector=None, script=None, text=None, url=None, page=None)
For whatever lives inside a browser surface.
action | does |
| lists tabs across every Chrome process with their page ids |
| lists the visible text of the page |
| runs JavaScript and returns the JSON result |
| sets an input's value through the native setter, so React notices |
| clicks a CSS selector |
| clicks the element whose visible text matches, no CSS needed |
| trusted key event: |
| types character by character into the focused field |
| reloads the page |
| loads a URL in the phone's browser |
Two of these exist because the obvious version does not work. el.click() and
synthetic KeyboardEvents are untrusted, so auth pages ignore them; click and
click_text dispatch real mouse events and press dispatches real key events.
And type sends one key event per character, because assigning the value of a
six-box OTP field leaves all six boxes empty. Its auto-advance runs on keystrokes,
not on values.
Examples
Log into a native app:
act(action="launch", text="com.touchtype.swiftkey")
see()
act(action="tap", target="text=Cuenta")
act(action="type", target="~Correo", text="me@example.com", submit=true)Fill a web form and read the result:
web(action="pages")
web(action="fill", selector="input[type=email]", text="me@example.com")
web(action="click", selector="button[type=submit]")
web(action="eval", script="location.href")Read a one-time code out of the inbox and use it, without leaving the app:
act(action="launch", text="com.google.android.gm")
act(action="refresh") # pull to refresh, new mail shows up
see(text=true) # the code is in the list snippet
web(action="type", page="9401:1", text="873540") # real keystrokes, auto-submitsAssert that a flow reached the right place:
act(action="wait", target="text=Bienvenido", timeout=15)Notes
Element references are per snapshot. After a screen change, take a fresh
see()or rely on the screen thatactreturns.typeverifies what it wrote. If the field is still empty and the foreground app is a browser, it retries through CDP and tells you which path it used.Nothing here needs root, and nothing modifies the system. The uiautomator2 agent lives in
/data/local/tmpand leaves no installed package behind.adb forwardports are chosen from 9400 upwards to stay clear of 9222, which desktop Chrome tooling usually occupies.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
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.
Cloud Android devices for AI agents: install an APK, read the screen, tap, type, read logcat.
Cloud Android phones for AI agents: create a phone, read the screen, tap, type, install APKs, park.
Related MCP Servers
- 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
- FlicenseNot gradedqualityDmaintenanceEnables an agent to control a real Android phone by reading structured UI elements and performing actions such as tapping, swiping, typing, and extracting fields from known app screens.1-
- AlicenseAqualityCmaintenanceEnables an agent to drive an Android phone attached via USB by reading the screen, deciding next steps, executing actions, and verifying results, all through adb.192MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to operate a real Android phone through its accessibility service, exposing screen trees with stable refs, taps, typing, gestures, notifications, apps, and other device controls.5MIT