Atlas / MCP servers / tanbro / Uiautomator2

Uiautomator2BLOCK

mcp/tanbro/uiautomator2-1

A MCP (Model Context Protocol) server that provides tools for controlling and interacting with Android devices using uiautomator2.

Verdict
BLOCK
Grade
D
Trust score
67 /100
Exposed tools
77 55r · 16w · 6d
Transport
stdio · streamable-http
License
Apache-2.0
Stars
50
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://pypi.org/project/uiautomator2-mcp-server/) [](https://github.com/tanbro/uiautomator2-mcp-server/releases) [](https://github.com/tanbro/uiautomator2-mcp-server/actions/workflows/ci.yml) [](https://codecov.io/gh/tanbro/uiautomator2-mcp-server)

[](https://lobehub.com/mcp/tanbro-uiautomator2-mcp-server)

[](README.md) [](README.zh-CN.md)

- 🇨🇳 中文说明

Code of Conduct: Please follow our Code of Conduct when participating in this project.

An MCP server that provides tools for controlling Android devices using uiautomator2.

Use AI to automate your Android device: take screenshots, tap/swipe, manage apps, send text, and more.

📺 Demo

Conversational Android Automation

User says: "Search cat videos on xxx App then play the video and swap to the next video"

AI automatically:

[](https://www.bilibili.com/video/BV1wGF4zFEev/) [](assets/douyin-demo-2x.mp4)

  • ✅ Launch app → Tap search → Enter keywords → Execute search
Read from source at commit 7422922f1de0OBSERVED · 2026-10-08
Advertisement
02

Connect

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-code (pypi)
claude mcp add uiautomator2-mcp-server -- None uiautomator2-mcp-server==0.3.3 stdio
03

Exposed tools (77)

55 read · 16 write · 6 destructive. Blast radius: 6 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
activity_wait_appearread
app_auto_grant_permissionsread
app_cleardestructive
app_currentread
app_inforead
app_installwrite
app_listread
app_list_runningread
app_startwrite
app_stopwrite
app_stop_allwrite
app_uninstalldestructive
app_uninstall_alldestructive
app_waitread
clear_textdestructive
clickread
connectread
delayread
device_listread
disconnectread
disconnect_allread
double_clickread
dragread
dump_hierarchyread
get_orientationread
get_toastread
hide_keyboardread
inforead
initread
long_clickread
open_notificationread
open_quick_settingsread
press_keyread
purgedestructive
read_clipboardread
reset_toastdestructive
save_dump_hierarchywrite
save_screenshotwrite
screen_offread
screen_onread
screen_recordread
screen_record_startwrite
screen_record_stopwrite
screenshotread
send_textwrite
set_focused_textwrite
set_orientationwrite
shell_commandread
show_toastread
start_scrcpywrite
stop_scrcpywrite
swiperead
swipe_downread
swipe_extread
swipe_leftread
swipe_pointsread
swipe_rightread
swipe_upread
unlockread
window_sizeread
write_clipboardwrite
xpath_clickread
xpath_click_nowaitread
xpath_existsread
xpath_get_attribread
xpath_get_boundsread
xpath_get_inforead
xpath_get_textread
xpath_long_pressread
xpath_save_screenshotwrite
xpath_screenshotread
xpath_scrollread
xpath_scroll_toread
xpath_set_textwrite
xpath_swiperead
xpath_wait_appearread
xpath_wait_goneread
04

Trust audit

BLOCKgrade D · trust 67/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (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 (14)

HIGHPrivilege escalation / persistence · priv.escalate · CWE-269, CWE-250
src/u2mcp/health.py:119
console.print("     [white]sudo apt install adb[/white]  # Debian/Ubuntu")
Why it matters. asks for elevated privileges
HIGHPrivilege escalation / persistence · priv.escalate · CWE-269, CWE-250
src/u2mcp/health.py:120
console.print("     [white]sudo yum install android-tools[/white]  # Fedora/RHEL")
Why it matters. asks for elevated privileges
HIGHPrivilege escalation / persistence · priv.escalate · CWE-269, CWE-250
src/u2mcp/health.py:389
fix_suggestion="Install scrcpy: brew install scrcpy (macOS) or sudo apt install scrcpy (Linux)",
Why it matters. asks for elevated privileges
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
app_clear, app_uninstall, app_uninstall_all, clear_text, purge, reset_toast
Why it matters. 6 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.coveragerc
.coveragerc
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.mypy.ini
.mypy.ini
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.pre-commit-config.yaml
.pre-commit-config.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.readthedocs.yaml
.readthedocs.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.ruff.toml
.ruff.toml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
INFOPrompt injection · prompt.fetch_and_trust · CWE-94, CWE-1427
README.md:936
[pipx]: https://pipx.pypa.io/ "pipx is a tool to install and run Python command-line applications without causing dependency conflicts with other packages installed on the system."
Why it matters. remote text is to be obeyed as instructions
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
CONTRIBUTING.md:33
curl -LsSf https://astral.sh/uv/install.sh | sh  # Linux/macOS
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:140
curl -LsSf https://astral.sh/uv/install.sh | sh
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.zh-CN.md:132
curl -LsSf https://astral.sh/uv/install.sh | sh
INFOPrompt injection · scope.undeclared_system · CWE-94, CWE-1427
<declared scope>
system use found in code, not declared in the description
Why it matters. the description does not admit a capability the code has
Fix. declare system use in the description, or remove it

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 7422922f1de0full audit observations/trust-audit/mcp-server/tanbro__uiautomator2-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-087422922f1de0BLOCKD67first audit
06

Questions

What is the Uiautomator2 MCP server?

A MCP (Model Context Protocol) server that provides tools for controlling and interacting with Android devices using uiautomator2.

What tools does Uiautomator2 expose?

77 in total: 55 read-only, 16 that write, and 6 that can delete or overwrite (app_clear, app_uninstall, app_uninstall_all, clear_text, purge). Every one is listed on this page with its risk.

Is Uiautomator2 safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (67/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 6 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Uiautomator2 need?

No credential environment variables were found in its source, so it appears to need none.

How does Uiautomator2 run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as uiautomator2-mcp-server.

How current is this page?

The grade is for one exact copy of the source (7422922f1de0), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement