Skip to content
MCP server

android-mcp MCP Server

MCP server that lets an AI agent operate an Android device over ADB.

android-mcp scores 54 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 1 tool. Filed under Uncategorized. GitHub shows 942 stars. Package registries report about 1,318 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by cursortouchMITPython942 stars
Trust score
54Fair
Trust score 54 of 100, Fair

Fair trust

54 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 54 comes from

0 + 20 + 10 + 10 + 4 + 10 = 54. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity10 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 10 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cursortouch-android-mcp": {      "command": "uvx",      "args": [        "android-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools1Tool docs quality grade C

All capabilities
  • Tap an element found by text, resourceId, className or description (exact match; resourceId may be the part after the slash), with index for the nth match

About

Android-MCP

An MCP server that lets an AI agent operate an Android device over ADB.

It needs only adb. Nothing is installed on the device, and there is no dependency on uiautomator2.

Run

Requires Python 3.13 and adb (Android platform-tools).

uvx --python 3.13 android-mcp

The server speaks MCP on stdio. In a client's config:

{
  "mcpServers": {
    "android-mcp": {
      "command": "uvx",
      "args": ["--python", "3.13", "android-mcp"]
    }
  }
}

From a checkout, use uv run android-mcp instead, or in the config "command": "uv", "args": ["--directory", "/path/to/Android-MCP", "run", "android-mcp"].

The device is connected on the first tool call, so the server starts whether or not one is attached yet.

Choosing the device

With no options it uses the first physical device, or an emulator when there is none.

OptionEnvironmentMeaning
--device SERIALANDROID_MCP_DEVICEA serial, or host:port for a device on the network
--connection auto|usb|wifi (alias --transport)ANDROID_MCP_CONNECTIONHow to pick when no device is named
--wifi [HOST]ANDROID_MCP_HOSTADB over Wi-Fi; HOST or HOST:PORT, port 5555 by default
--usb [SERIAL]ADB over USB, optionally a specific serial

Options win over the environment. Other variables:

  • ANDROID_MCP_ADB_PATH names the adb binary. Otherwise adb is looked for on PATH, then in ANDROID_HOME, ANDROID_SDK_ROOT and the default Android Studio SDK folders.
  • SCREENSHOT_QUANTIZED=true reduces screenshots to 256 colours, which makes them smaller.

Tools

ToolDoes
ListDevices, ConnectDevice, DeviceList, choose, or disconnect the device. Device with action=switch and to=wifi moves a USB phone onto ADB over Wi-Fi (adb tcpip then adb connect; the phone must be on Wi-Fi, and the cable can then be unplugged). to=usb moves it back (adb usb; the phone must be plugged in)
SnapshotThe interactive elements, each with a label and tap coordinates. use_vision adds a screenshot with the labels drawn on it; use_annotation=false leaves it clean
Click, LongClick, Swipe, DragTouch input by coordinates
ClickBySelectorTap an element found by text, resourceId, className or description (exact match; resourceId may be the part after the slash), with index for the nth match
TypeType into a field. x and y tap it first; clear empties it first. Other scripts and emoji need the optional ADBKeyboard app (below)
PressA button: back, home, recent, volume up, enter, and so on
NotificationPull down the notification shade
Wait, WaitForElementPause, or wait for an element to appear

Typing other scripts (optional)

Type uses adb shell input text, so on its own it types printable ASCII and the accented Latin letters Android can compose (é ñ ü ÿ and 107 others, not ç ß å ø). A newline presses Enter and a tab presses Tab. For anything else (CJK, Cyrillic, Arabic, emoji, ç), install the ADBKeyboard app on the device once:

adb install keyboardservice-debug.apk

Download it from the releases page. This project does not bundle it: ADBKeyboard is GPL-2.0, and it is only ever talked to over broadcasts. I tested v2.5-dev (SHA-256 41a8a099…46fbbb) on Android 15.

With it installed, text that input text cannot type is sent through it automatically. For about a second the device's keyboard is switched to ADBKeyboard, which shows no keyboard of its own, and then the keyboard that was active before is put back (and ADBKeyboard is disabled again if it was not enabled). A text field must be focused, or the call fails with an error saying so. If a crash ever leaves the device on ADBKeyboard, adb shell ime reset restores the default. Without the app, such text is rejected before anything is sent, with these instructions in the error.

Other limits

  • Busy screens. The element list comes from uiautomator dump, which gives up when the screen never goes idle (a video, a running timer). Snapshot with use_vision then returns the screenshot alone and says so; click by coordinates still works.
  • Drag needs Android 8 or later. Clearing a field uses input keycombination, which needs Android 12; older devices fall back to a slower method that clears up to 200 characters.

Development

uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .

The tests need no device. Layers, bottom to top: android_mcp.adb (talks to adb), android_mcp.tree (reads the screen), android_mcp.mobile (one connected device: state and actions), android_mcp.server (the MCP tools and the choice of device).

Frequently asked questions

What is android-mcp MCP Server?

MCP server that lets an AI agent operate an Android device over ADB.

How do I install android-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. android-mcp MCP Server runs locally from the PyPI package android-mcp with the command uvx android-mcp.

Is android-mcp MCP Server free and open source?

Yes. android-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does android-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for android-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does android-mcp MCP Server provide?

android-mcp MCP Server provides 1 tool: ClickBySelector. See the full tool list for descriptions and parameters.

How is android-mcp MCP Server's trust score calculated?

android-mcp MCP Server scores 54 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server