Skip to main content

android-mcp

Let Claude, or any MCP assistant, see an Android phone's screen and use it, over plain adb. No app to install on the phone, no root.

Laisser Claude voir l'écran d'un téléphone Android et s'en servir, par adb, sans rien installer sur le téléphone.

What it is good for:

  • Testing your own app like a user would: "open my app, create an account, tell me where it breaks", then read the crash in logcat.
  • Repetitive phone chores: "go through my notifications settings and turn off every shopping app".
  • Accessibility: describing a screen and acting on it by voice through the assistant.

How it sees the screen

screen_elements turns the phone's accessibility tree into a short list: every visible text and every touchable element, with its centre, type, id and state (checked, disabled, editable...). The assistant then taps by name with tap_element("Wi-Fi"). That is cheaper and much more reliable than guessing coordinates on a screenshot; screenshot is there for layout, images and games.

Tools

Tool
devices Phones and emulators adb can see
screen_elements, screenshot, current_app Read the screen
tap_element, tap, swipe, type_text, press_key Act on it
list_apps, launch_app, install_apk Apps
logcat Recent log, per app, errors only if wanted

There is deliberately no free shell tool: every action is named and bounded, and the server's instructions ask the assistant to check with you before sending messages, paying or deleting anything.

Install

  1. On the phone: Settings > About > tap Build number 7 times, then Developer options > USB debugging (or Wireless debugging). Plug it in and accept the prompt.
  2. On the computer, with platform-tools installed (adb devices should list the phone):

With uv installed, nothing else is needed:

claude mcp add android -- uvx --from android-mcp-lite android-mcp

Or with pip: pip install android-mcp-lite, then claude mcp add android -- android-mcp.

With several devices, pass serial (from devices) to each tool. Set ADB if adb is not on the PATH or in ~/Android/Sdk/platform-tools.

Status

Version 0.1, tested on an Android 14 emulator: reading the screen, screenshots, launching apps, tapping by name, scrolling, typing and keys. install_apk and logcat are written but not yet exercised on a device.

  • Screen as a list of elements, tap by name
  • Retries while the screen is still animating
  • Unicode typing (accents, emoji) through a clipboard helper
  • Wait for an element to appear
  • Record a session and replay it as a test
  • Notifications: read and act on them

License

MIT

Metadata

Release files for android-mcp-lite 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for android-mcp-lite 0.1.1
File Size Uploaded
android_mcp_lite-0.1.1.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for android-mcp-lite 0.1.1
File Interpreter ABI Platform
android_mcp_lite-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / android_mcp_lite-0.1.1.tar.gz

Download URL android_mcp_lite-0.1.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0e3c2b71537fbb7cf47ed0bf4ac8f08d4a30a41c5a3deeda56f5fbf0d6465baf
BLAKE2b-256 checksum
How to use checksums
9d1c856aea5c621a731d316e60b1b6c77dc63faac7cd59d6035eb91c28bfd3dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.9

Release files / android_mcp_lite-0.1.1-py3-none-any.whl

Download URL android_mcp_lite-0.1.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e23d46687ca887df1421d1a39b6d02c0b356526197f9330c3136c60477ef611
BLAKE2b-256 checksum
How to use checksums
f953e0728633ea27a2456a5e9219e3f7fe15b9e4ef95386a210d6ab49e4c4379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.9

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page