Android AgentSAFE
MCP Android agent - This project provides an *MCP (Model Context Protocol)* server for automating Android devices using uiautomator2. It's designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control Android devices through natural language.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://www.python.org/downloads/) [](https://github.com/nim444/mcp-android-server-python/actions/workflows/ci.yml) [](https://codecov.io/gh/nim444/sdet-django-api) [](https://github.com/astral-sh/ruff) [](https://opensource.org/licenses/MIT)
This project provides an MCP (Model Context Protocol) server for automating Android devices using uiautomator2. It's designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control Android devices through natural language.
Modular Architecture
The server has been refactored into a clean, modular architecture with tools organized by functionality:
mcp-android-server-python/ ├── server.py # Main server (61 lines - clean & focused) ├── server_original_backup.py # Backup of original monolithic version └── tools/ # 🆕 Modular tools package ├── __init__.py # Central registration & imports ├── device_tools.py # Device connection & status tools ├── app_tools.py # Application management tools ├── screen_tools.py # Screen control & unlock tools ├── input_tools.py # User input simulation (click, swipe, text) ├── inspection_tools.py # UI inspection & screenshots └── advanced_tools.py # Advanced features (toast, activity wait)
Benefits of Modular Architecture
- Maintainability: Easy to add/modify/remove tools
090a1f3c310cOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-adb -- uvx mcp-adb
{
"mcpServers": {
"mcp-adb": {
"command": "uvx",
"args": [
"mcp-adb"
]
}
}
}Exposed tools (25)
19 read · 5 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
clear_app_data | destructive | Clear all user data and cache for the specified application. |
click | read | Click on a UI element on the device screen using various selector types. |
connect_device | read | Connect to an Android device and retrieve detailed device information. |
drag | read | Drag a UI element to a specific location on the screen. |
dump_hierarchy | read | Export the current screen |
get_current_app | read | Retrieve information about the application currently in the foreground. |
get_device_info | read | Retrieve detailed information about the connected Android device. |
get_device_status | read | Get comprehensive device status and connectivity information. |
get_element_info | read | Retrieve detailed information about a UI element. |
get_installed_apps | read | Retrieve a comprehensive list of all installed applications on the device. |
get_toast | read | Get the text content of the most recent toast message. |
mcp_health | read | Check if the MCP server is running and responsive. |
press_key | read | Simulate pressing a key on the Android device. |
screen_off | read | Turn off the device screen. |
screen_on | read | Turn on the device screen if it is currently off. |
screenshot | write | Take a screenshot of the device screen and save it to a file. |
scroll_to | read | Scroll to make a UI element visible on the screen. |
send_text | write | Send text to the currently focused input element on the device. |
start_app | write | Start an Android application using its package name. |
stop_all_apps | write | Stop all running applications on the Android device. |
stop_app | write | Stop a running Android application by its package name. |
swipe | read | Perform a swipe gesture on the device screen. |
wait_activity | read | Wait for a specific Android activity to become the current foreground activity. |
wait_for_element | read | Wait for a UI element to appear on the device screen. |
wait_for_screen_on | read | Asynchronously wait for the device screen to turn on. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (3)
clear_app_data
.docs/amazon.gif
.docs/demo.gif
Gates applied: no_behavioural_pass.
090a1f3c310cfull audit observations/trust-audit/mcp-server/nim444__android-agent.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 090a1f3c310c | SAFE | B | 89 | first audit |
Questions
What is the Android Agent MCP server?
MCP Android agent - This project provides an *MCP (Model Context Protocol)* server for automating Android devices using uiautomator2. It's designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control Android devices through natural language.
What tools does Android Agent expose?
25 in total: 19 read-only, 5 that write, and 1 that can delete or overwrite (clear_app_data). Every one is listed on this page with its risk.
Is Android Agent safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Android Agent need?
No credential environment variables were found in its source, so it appears to need none.
How does Android Agent run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as mcp-adb.
How current is this page?
The grade is for one exact copy of the source (090a1f3c310c), read on 2026-10-08. The repository is watched and re-audited when it changes.