Agent Droid Bridge

io.github.Neverlow512由 GitHub 账号 Neverlow512 发布v0.6.1更新于 Oct 25, 2026

MCP server giving AI agents eyes and hands inside Android devices via ADB

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

概览

AI 生成的概览

本地 MCP 服务器,通过 ADB 让 AI 助手在 Android 设备和模拟器上查看屏幕并执行操作,用于自动化、测试和分析。

可以做什么
检查并截取屏幕:UI 层级、截图、可见文本、结构化元素、UI 快照与变化检测、设备能力与设备列表,并通过点击、滑动、输入文本和按键事件操作界面。按组件名启动应用,并执行任意 ADB 或 adb shell 命令。启用可选的 app_manager 扩展包后:列出和查看应用包、安装与卸载应用、提取 APK、授予或撤销权限、停止应用或清除数据,以及发送 intent。
适用场景
适合在真机或模拟器上进行移动端 QA 和 UI 测试自动化而无需编写测试代码;适合应用安全研究和动态分析,例如提取 APK、检查权限和发送 intent;也适合开发过程中安装构建并验证界面状态。
运行要求
通过 stdio 在本地运行,通常用 uvx 从 PyPI 包 agent-droid-bridge 启动。需要主机安装 Python 3.11+ 和 ADB,并连接设备或模拟器。通过环境变量配置,例如 ADB_PATH、ADB_EXECUTION_MODE、ADB_ALLOW_SHELL、ADB_EXTRA_TOOL_PACKS,以及 MCP_LOG_ENABLED 和 MCP_LOG_DIR;未声明需要账号或 API 密钥。
安装前请注意
ADB_EXECUTION_MODE 默认为 unrestricted,允许所有 shell 命令;可改用 restricted 配合 ADB_SHELL_ALLOWLIST,或设置 ADB_ALLOW_SHELL=false 加以限制。工具会改变设备状态:安装和卸载应用、清除应用数据或缓存、授予或撤销权限、发送 intent、输入文本和点击。app_manager 扩展包需显式启用。启用会话日志后会把工具调用和命令写入 MCP_LOG_DIR 中的 JSONL 文件。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Python 3.11+] [License MIT] [MCP Compatible] [PyPI] [MCP Registry] [Awesome] [PyPI Downloads] [LinkedIn] [Ask DeepWiki]

Agent Droid Bridge

Agent Droid Bridge is an MCP server that connects AI agents to Android devices and emulators over ADB. It is built for mobile automation, app testing, dynamic analysis, and reverse engineering: exposing the full surface of ADB as structured tools that any MCP-compatible AI client can call directly. If ADB can do it, an agent can do it.


Purpose-built tools return structured, minimal responses. No raw XML dumps, no wasted context — agents stay fast across long sessions.

[agent-droid-bridge MCP server]

Demo

[Agent Droid Bridge Demo]

The demo above runs through a few straightforward tasks to show what a connected agent can do, and this is just scratching the surface:

  • Installs the Paint app, opens it, and draws a house by calculating pixel coordinates for the walls and roof
  • Opens the device browser, searches for "MCP Wikipedia", navigates to the result page, and takes a screenshot
  • Opens the Calculator, computes 1337 × 42, and extracts the result to the host machine
  • Opens Contacts, creates a new entry with a name and phone number, and confirms it saved
  • Opens the Calendar and schedules an appointment for a specific date
  • Opens Settings and toggles dark mode
  • Extracts the Calculator APK from the device to the host machine
  • Installs Notepad, writes a one-sentence summary of every task completed, and takes a final screenshot

What it does

Tools

  • 14 built-in tools for screen capture, UI inspection, text reading, element extraction, touch and swipe input, text entry, keycode events, app launching, ADB commands, and device inspection
  • app_manager pack adds 9 tools for package management, app lifecycle, APK extraction, permissions, and intent injection. Load it with ADB_EXTRA_TOOL_PACKS=app_manager
  • Tool availability is reflected in the server's startup instructions. Agents receive an accurate catalog at connect time

Device handling

  • Auto-detects a single connected device; prompts for selection when multiple devices are present
  • Runs over stdio, compatible with any MCP-capable AI client
  • Structured responses instead of raw XML dumps, keeping agent context lean across long automation runs

Security

  • Two execution modes: unrestricted (full ADB access, optional denylist) and restricted (allowlist-only, blocks everything not explicitly permitted)
  • Set ADB_ALLOW_SHELL=false to disable all shell commands regardless of mode
  • Hide specific tools from the agent with ADB_DENIED_TOOLS
  • All commands parsed via shlex. No shell injection possible

Observability

  • Optional session recorder logs every tool call, ADB command, and security event to structured JSONL files. Enable with MCP_LOG_ENABLED=true and MCP_LOG_DIR

Use cases

Mobile QA and test automation Automate UI flows across real devices and emulators without modifying the app or writing test code. Tap, swipe, type, read screen content, take screenshots — all from a natural language prompt.

App security research Extract APKs, inspect declared permissions, fire arbitrary intents, and observe runtime behavior on screen. No instrumentation, no jailbreak required.

Dynamic analysis Launch apps in controlled states, drive UI interactions, capture screen state at each step, and pull artifacts — all scriptable through an AI agent.

Development and debugging Install builds, verify UI states, check app info, and run ADB commands without leaving your coding environment.

Install

bash
uvx agent-droid-bridge

No cloning or virtual environments needed. Requires Python 3.11+ and ADB installed on your host.

uvx is provided by uv. If you don't have it: curl -LsSf https://astral.sh/uv/install.sh | sh

To install from source instead, see docs/setup.md — Option B.

To verify the install: uvx agent-droid-bridge --help

Quick start

  1. Install ADB — see docs/setup.md for platform-specific instructions
  2. Connect an Android device or start an emulator
  3. Add the server to your MCP client config:
json
{  "mcpServers": {    "agent-droid-bridge": {      "command": "uvx",      "args": ["agent-droid-bridge"],      "env": {        "ADB_EXECUTION_MODE": "unrestricted",        "ADB_ALLOW_SHELL": "true",        "ADB_PATH": "adb",        "ADB_EXTRA_TOOL_PACKS": "",        "MCP_LOG_ENABLED": "false",        "MCP_LOG_DIR": "~/logs/agent-droid-bridge"      }    }  }}

To enable session logging, set MCP_LOG_ENABLED to "true" and update MCP_LOG_DIR to a writable path on your machine.

VariableDefaultDescription
ADB_EXECUTION_MODEunrestrictedSecurity mode. unrestricted allows all shell commands (with optional denylist); restricted allows only commands in ADB_SHELL_ALLOWLIST.
ADB_ALLOW_SHELLtrueSet to false to block all adb shell commands regardless of execution mode.
ADB_PATHadbPath to the ADB binary. Replace with a full path if adb is not on your system PATH (e.g. C:\platform-tools\adb.exe on Windows).
ADB_EXTRA_TOOL_PACKS(empty)Comma-separated list of extra tool packs to load. Set to app_manager to enable 9 additional app management tools.
MCP_LOG_ENABLEDfalseSet to true to enable session logging. Requires MCP_LOG_DIR.
MCP_LOG_DIR(none)Directory where session logs are written. Required when MCP_LOG_ENABLED is true.
  1. Prompt your agent to use the agent-droid-bridge MCP tools

Full setup guide and environment variable reference: docs/setup.md

Tools

ToolWhat it does
get_ui_hierarchyReturns the current screen as an XML UI hierarchy
take_screenshotCaptures the screen as a base64-encoded PNG
tap_screenSends a tap gesture at pixel coordinates
swipe_screenSends a swipe gesture between two points over a given duration
type_textTypes text into the focused input field
press_keySends an Android keycode event (Back, Home, Enter, etc.)
launch_appLaunches an app by its package/activity component name
execute_adb_commandRuns an arbitrary ADB or ADB shell command
list_devicesLists all Android devices currently visible to ADB with their serial, state, and model
snapshot_uiTakes a lightweight UI snapshot and returns a token for use with detect_ui_change
detect_ui_changePolls for a UI change after an action; accepts a snapshot token as baseline; returns hierarchy only when requested
get_screen_elementsParses the UI hierarchy and returns structured elements with coordinates and interaction properties; supports tappable, interactive, input, and all modes
get_screen_textReturns all visible text on screen sorted top-to-bottom, as plain text
check_device_capabilitiesReturns structured device information — identity, security posture, and hardware specs — in a single call; supports identity, security, hardware, and all modes

Extra tool packs

Optional packs extend the core toolset. Enable them by setting ADB_EXTRA_TOOL_PACKS in your MCP client config. See docs/extra-tool-packs.md.

app_manager

Package management, app lifecycle control, APK extraction, permission management, and intent injection.

ToolWhat it does
list_packagesLists installed packages with optional filtering, search, and detail levels
get_app_infoReturns full static metadata for a single installed app
install_appInstalls an APK from a host path onto the device
uninstall_appRemoves an installed app by package name
pull_apkExtracts the installed APK from the device to the host
manage_permissionGrants, revokes, checks, or lists runtime permissions for an app
launch_app_extraLaunches an app by package name, auto-resolving the launcher activity
manage_appControls app runtime state — stop, clear data, clear cache, enable, disable
inject_intentFires an intent at a component via am start, am broadcast, or am startservice

Full parameter reference: docs/tools.md

Configuration

Configure the server entirely from your MCP client's env block. No files to edit. The env block in the Quick Start above covers the most common settings. For the full reference including security filtering, tool visibility, and timeouts, see docs/configuration.md.

To use a YAML config file instead, set ADB_CONFIG_SOURCE=yaml. See docs/configuration.md for details.

Session recording is separate. Enable it with MCP_LOG_ENABLED=true and MCP_LOG_DIR. Full reference: docs/logging.md.

Documentation

FileDescription
docs/setup.mdPrerequisites, installation, and MCP client configuration
docs/tools.mdFull parameter reference for all tools
docs/configuration.mdReference for environment variables and adb_config.yaml
docs/logging.mdSession recorder — log files, levels, retention, and activation
docs/extra-tool-packs.mdExtra tool packs — enabling packs, the pack contract, and writing your own
docs/troubleshooting.mdCommon setup issues and ADB problems
docs/workflows.mdCommon multi-tool workflows with examples
CHANGELOG.mdRelease history and version changes

Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines on setup, code standards, and submitting pull requests.

To report a security vulnerability, follow the process in SECURITY.md — do not open a public issue.

来源:README.md,提交 6d04471

工具

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

版本历史

1
  1. v0.6.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Droid 集成