CursorTouch/Android-MCP
MCP Server for interacting with Android Devices.
b5fd1b56de0eandroid-mcp0.3.0 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 7 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 8 of 14 tools, prompts and resources could not be followed through the code
Top risks in plain words
- HIGH2 production dependencies have known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
dnspython2.9.2 or later,opentelemetry-api1.45.2 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 14 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
Click, ClickBySelector, ConnectDevice, LongClick, Notification, SnapshotNotification, SnapshotClick, ClickBySelector, ConnectDevice, LongClick, Notification, SnapshotNo tool was seen to: connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files1 tool · Snapshot
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (14: 14 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
Clicktool Click on a specific coordinateProcessesEnv vars
Click on a specific coordinate
ClickBySelectortool Click on an element by selector (text, resourceId, className, description), all matched exactly; resourceId may be the full id or the part after the slash. MoreProcessesEnv vars
Click on an element by selector (text, resourceId, className, description), all matched exactly; resourceId may be the full id or the part after the slash. More reliable than coordinate clicks: it finds the element when it clicks, so it handles dynamic layouts and elements that have moved. index picks the nth match, counting from 0. At least one selector must be provided.
ConnectDevicetool Connect to an ADB device by serial number, or by host:port for a device on the networkProcessesEnv vars
Connect to an ADB device by serial number, or by host:port for a device on the network
Devicetool Manage ADB devices: list, connect, disconnect, or switch the connected device between USB and Wi-Fi. switch with to=wifi needs the phone on USB and on a Wi-Fi n
Manage ADB devices: list, connect, disconnect, or switch the connected device between USB and Wi-Fi. switch with to=wifi needs the phone on USB and on a Wi-Fi network; the cable can then be unplugged. switch with to=usb needs it plugged in.
Dragtool Drag from one coordinate and drop on another, for example to move an icon. Needs Android 8 or later.
Drag from one coordinate and drop on another, for example to move an icon. Needs Android 8 or later.
ListDevicestool List available ADB devices
List available ADB devices
LongClicktool Long click on a specific coordinateProcessesEnv vars
Long click on a specific coordinate
Notificationtool Access the notifications seen on the deviceProcessesFilesEnv vars
Access the notifications seen on the device
Presstool Press a button on the device: back, home, recent, menu, search, enter, delete, tab, space, power, camera, volume up, volume down, volume mute, or up, down, left
Press a button on the device: back, home, recent, menu, search, enter, delete, tab, space, power, camera, volume up, volume down, volume mute, or up, down, left, right, center for the d-pad.
Snapshottool Get the state of the device: the interactive elements, each with a label and the coordinates to tap. Optionally includes a visual screenshot when use_vision=TruProcessesFilesEnv varsoutside text
Get the state of the device: the interactive elements, each with a label and the coordinates to tap. Optionally includes a visual screenshot when use_vision=True. The use_annotation parameter (default True) can be set to False to get a clean screenshot without bounding boxes. If the screen never goes idle (a video or a running timer) the element list is unavailable and, with use_vision, only the screenshot is returned.
Swipetool Swipe from one coordinate to another
Swipe from one coordinate to another
Typetool Type text into a field. Give x and y to tap the field first, otherwise the text goes into whatever has focus. clear=true empties the field first. A newline pres
Type text into a field. Give x and y to tap the field first, otherwise the text goes into whatever has focus. clear=true empties the field first. A newline presses Enter and a tab presses Tab. Printable ASCII and accented Latin letters (é ñ ü, not ç ß å) are typed directly. Any other text (CJK, Cyrillic, Arabic, emoji, ç) needs the ADBKeyboard app installed on the device and a focused text field; without the app it is rejected with install instructions.
Waittool Wait for a specific amount of time, in seconds
Wait for a specific amount of time, in seconds
WaitForElementtool Wait for an element to appear on screen. Use this instead of Wait when content is loading dynamically. Select it by text, resourceId (full, or the part after th
Wait for an element to appear on screen. Use this instead of Wait when content is loading dynamically. Select it by text, resourceId (full, or the part after the slash), className or description, all matched exactly; at least one is required. Returns the element's coordinates when found, or an error on timeout.
Text the model reads (14)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
ListDevices tool
List available ADB devices
ConnectDevice tool
Connect to an ADB device by serial number, or by host:port for a device on the network
Device tool
Manage ADB devices: list, connect, disconnect, or switch the connected device between USB and Wi-Fi. switch with to=wifi needs the phone on USB and on a Wi-Fi network; the cable can then be unplugged. switch with to=usb needs it plugged in.
Click tool
Click on a specific coordinate
ClickBySelector tool
Click on an element by selector (text, resourceId, className, description), all matched exactly; resourceId may be the full id or the part after the slash. More reliable than coordinate clicks: it finds the element when it clicks, so it handles dynamic layouts and elements that have moved. index picks the nth match, counting from 0. At least one selector must be provided.
LongClick tool
Long click on a specific coordinate
Swipe tool
Swipe from one coordinate to another
Type tool
Type text into a field. Give x and y to tap the field first, otherwise the text goes into whatever has focus. clear=true empties the field first. A newline presses Enter and a tab presses Tab. Printable ASCII and accented Latin letters (é ñ ü, not ç ß å) are typed directly. Any other text (CJK, Cyrillic, Arabic, emoji, ç) needs the ADBKeyboard app installed on the device and a focused text field; without the app it is rejected with install instructions.
Drag tool
Drag from one coordinate and drop on another, for example to move an icon. Needs Android 8 or later.
Press tool
Press a button on the device: back, home, recent, menu, search, enter, delete, tab, space, power, camera, volume up, volume down, volume mute, or up, down, left, right, center for the d-pad.
Snapshot tool
Get the state of the device: the interactive elements, each with a label and the coordinates to tap. Optionally includes a visual screenshot when use_vision=True. The use_annotation parameter (default True) can be set to False to get a clean screenshot without bounding boxes. If the screen never goes idle (a video or a running timer) the element list is unavailable and, with use_vision, only the screenshot is returned.
Wait tool
Wait for a specific amount of time, in seconds
WaitForElement tool
Wait for an element to appear on screen. Use this instead of Wait when content is loading dynamically. Select it by text, resourceId (full, or the part after the slash), className or description, all matched exactly; at least one is required. Returns the element's coordinates when found, or an error on timeout.
Notification tool
Access the notifications seen on the device
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 6 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 6 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 6 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 6 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 6 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processes6 of 14 capabilities start processes
- Tools that touch files2 of 14 capabilities touch files; 4 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 14 capabilities; 6 more call code the scanner could not follow, where it may happen
Where the code is: 14 handlers in 3 files at commit b5fd1b56de0e
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies HIGH2 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionfastmcp >=4.1.3
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 14 capabilities; 6 more call code the scanner could not follow, where it may happen
- Environment variables6 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (2 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
dnspythonPyPI 2.9.0 HIGH 1 advisory 2.9.2
- HIGHGHSA-vvf4-9x63-8xvv CVE-2026-128089dnspython has excessive memory and CPU use
opentelemetry-apiPyPI 1.45.1 MEDIUM 1 advisory 1.45.2
- MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp >=4.1.3 |
| Servers in the code | 1 (android-mcp) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-11 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 4 catalogs (awesome_habitoai, github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2025-06-11 |
| Topics | ai android automation mcp-server |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.