Droid Agent

io.github.hyusband由 GitHub 账号 hyusband 发布v0.2.0更新于 Nov 19, 2026

Give AI agents hands on a real Android device over stock adb — no on-device install

发布方自己的服务:droid.monster — specs

已验证STDIO仅桌面浏览器自动化开发者工具

概览

AI 生成的概览

让 AI 助手通过原生 adb 控制真实 Android 手机或模拟器,无需在设备上安装任何应用。

可以做什么
  • 把屏幕解析成简短的编号可交互元素列表,再按编号点击、长按、输入、滑动或发送按键事件
  • 一次调用完成组合操作:按可见文字点击、向输入框输入、等待或滚动直到元素出现、查询 UI 树
  • 截取真实图片截图,读取前台应用与屏幕状态,获取 logcat
  • 管理应用与文件:打开、关闭、安装、卸载、推送与拉取
  • 以原始 adb shell 命令作为兜底,所有命令均支持 JSON 输出
适用场景
适合需要助手在真机、模拟器、Android TV 或 Android Auto 上端到端操作 Android 应用的场景,例如 UI 测试、重复性的应用内操作,或操作后确认屏幕内容。
运行要求
以本地 Python 包运行(droid-agent,可用 uvx 或 pipx 启动,MCP 服务器需安装额外依赖)。需要 PATH 中有 Android platform-tools(adb),且设备已开启 USB 或无线调试;无需 root,也无需在设备上安装。未声明账号或 API 密钥。
安装前请注意
助手会真实操作设备:点击、输入、安装/卸载应用、推送/拉取文件以及任意 adb shell 命令都会改变设备状态。屏幕解析结果会写入本地会话文件;标记为密码字段的元素会被遮蔽且不写入会话文件。无线配对会通过网络连接设备。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Droid Agent,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

🤖 droid-agent

Give any AI agent hands on a real Android device — zero install on the phone.

dump a screen → get numbered interactive elements → tap 3. That's it.

[CI] [PyPI] [Python] [License: MIT]

[demo]

Why

Every other Android-agent tool makes you install something on the phone first — an Appium server, a companion APK, an accessibility service. droid-agent needs nothing on the device. Just adb, which you already have:

  • 🔢 browser-use for Android — dump distills the uiautomator tree into a short numbered list of actionable refs, not a 500-line XML blob
  • 📦 zero dependencies — pure stdlib, installs in <1s, works offline
  • 🤖 agent-first — every command has --json; ships a built-in MCP server
  • 📱 anything with adb — real phones, emulators, Android TVs, Android Auto, WSA, even Android-x86 VMs

Install

bash
pipx install droid-agent          # recommended# or: pip install droid-agent
pipx install 'droid-agent[mcp]'   # + MCP server for Claude Code / Cursor / Devin

Prerequisite: platform-tools (adb) on your PATH, and a device with USB or wireless debugging enabled.

60-second tour

bash
droid-agent devices                 # what's attacheddroid-agent connect 192.168.1.42    # wireless adb (or just plug USB)droid-agent dump                    # see the screen the way an agent does

Real output, straight off a POCO F5:

text
[ 1] ()    Search settings                                  ( 540, 497)[ 2] |||   recyclerview                                     ( 540,1487)[ 3] ()    About phone                                      ( 540, 663)[ 4] ()    System apps updater                              ( 540, 817)[ 5] ()    Security status                                  ( 540, 971)[ 6] ()    Wi-Fi                                            ( 540,1159)[ 7] ()    Bluetooth                                        ( 540,1313)[ 8] ()    Mobile networks                                  ( 540,1467)[ 9] ()    Interconnectivity                                ( 540,1621)
15 elements · tap with `droid-agent tap <ref>`
bash
droid-agent tap 3                   # taps "About phone"droid-agent type "[email protected]"         # types into the focused fielddroid-agent swipe up                # scroll the listdroid-agent key back                # keyevents by namedroid-agent open com.whatsapp       # launch any appdroid-agent screenshot shot.png     # PNG capturedroid-agent state                   # foreground app, screen on/off, size

For agents, everything is one flag away from JSON: droid-agent --json dump.

Use it with your agent (MCP)

json
{  "mcpServers": {    "droid-agent": { "command": "droid-agent", "args": ["mcp"] }  }}

29 tools exposed — the primitives (tap, swipe, key, dump_ui, shell) plus compound workflows that save agent round-trips: tap_text ("tap the Allow button" in one call), type_into (tap field + type), wait_for / scroll_until (dynamic waits), find (query the UI tree), screenshot (real image content for vision), logcat, install/uninstall, and file push/pull. A built-in android_task prompt teaches any agent the dump → act → verify loop.

Also listed in the official MCP Registry as io.github.hyusband/droid-agent.

Commands

CommandWhat it does
deviceslist attached devices + state
connect / pair / disconnectwireless adb (Android 11+ pairing supported)
dumpnumbered interactive elements → ~/.droid-agent/session.json
tap <ref|x,y> / long-presstouch by ref from last dump, or raw coords
type <text>input text (spaces handled) into focused field
swipe up|down|left|right or x1 y1 x2 y2scroll / gestures
key back|home|enter|tab|del|power…keyevents by name
open / close / install / uninstallapp lifecycle
screenshot / statePNG capture · foreground app + screen info
shell <cmd>raw adb escape hatch
mcpstdio MCP server

How it compares

droid-agentdroidrun/mobilerunmobile-mcpAppium
On-device installnonePortal APK + accessibility svcAppium driverAppium server + settings app
Time to first tapsecondsminutesminutes~30 min
What it isprimitive layerfull agent frameworkMCP bridgetest framework
Deps0 (stdlib)LLM SDKs, uv, portalnode, appiumjava/node stack
LLM couplingnone — BYO agentbuilt-in providersnonenone

Different tool for a different job: they're agent frameworks; this is the curl of Android control — a primitive layer any agent (or human) can call.

Agent workflow pattern

text
dump → read refs → tap/type → wait → dump → verify → repeat

The dump warns when refs are >120s old (the UI may have moved). tap on a missing ref tells you to re-dump instead of tapping blind.

FAQ

Does it need root? No — just USB/wireless debugging enabled.

iOS? No. Use iphone-cli — this one is Android-only by design.

Passwords? Elements flagged password="true" are masked in dumps and never persisted to the session file.

CI? Point it at an emulator (emulator-5554) — same interface, --json for parsing.

Contributing

See CONTRIBUTING.md. Bug reports and false-positive element-detection reports especially welcome — attach droid-agent dump --json plus a screenshot.

License

MIT — see LICENSE.


If this saved you a setup afternoon — drop a ⭐

来源:README.md,提交 879717c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Nov 19, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Droid 集成