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 整合