PluginBench
MCP Server
Active
MIT

Agent Droid Bridge MCP Server

io.github.Neverlow512/agent-droid-bridge

AI agents control Android devices and emulators via ADB for mobile automation, testing, and analysis.

What is the Agent Droid Bridge MCP server?

Agent Droid Bridge is an MCP server that connects AI agents to Android devices and emulators over ADB. It exposes 14 core tools for screen capture, UI inspection, touch input, app launching, and device control, plus an optional app_manager pack with 9 additional tools for package management and APK extraction. Built for mobile QA, app security research, dynamic analysis, and development workflows.

Agent Droid Bridge gives AI agents full control over Android devices and emulators through ADB. You can automate UI flows, extract APKs, inspect app permissions, take screenshots, read screen text, tap and swipe, type text, launch apps, and run arbitrary ADB commands—all from natural language prompts. It's purpose-built for mobile QA automation, security research, dynamic analysis, and debugging without modifying the target app.

How to install Agent Droid Bridge

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • ADB_EXECUTION_MODE

    Security mode. 'unrestricted' allows all shell commands with an optional denylist. 'restricted' allows only commands in ADB_SHELL_ALLOWLIST.

  • ADB_ALLOW_SHELL

    Set to 'false' to block all adb shell commands regardless of execution mode.

  • ADB_PATH

    Path to the ADB binary. Use a full path if adb is not on your system PATH.

  • ADB_EXTRA_TOOL_PACKS

    Comma-separated list of extra tool packs to load. Set to 'app_manager' to enable 9 additional app management tools.

  • ADB_DENIED_TOOLS

    Comma-separated list of tool names to hide from the agent at startup.

  • ADB_SHELL_ALLOWLIST

    Comma-separated list of shell commands permitted in restricted mode. Empty blocks all shell commands.

  • ADB_SHELL_DENYLIST

    Comma-separated list of shell commands blocked in unrestricted mode.

  • MCP_LOG_ENABLED

    Set to 'true' to enable session logging. Requires MCP_LOG_DIR.

  • MCP_LOG_DIR

    Absolute path to the directory where session logs are written. Required when MCP_LOG_ENABLED is true.

  • ADB_LOG_LEVEL

    Server process log level.

  • ADB_COMMAND_TIMEOUT

    Maximum seconds to wait for any ADB command.

  • ADB_SCREENSHOT_TIMEOUT

    Maximum seconds to wait for a screenshot capture.

  • ADB_UI_CHANGE_TIMEOUT

    Default timeout in seconds for detect_ui_change.

  • ADB_UI_CHANGE_POLL_INTERVAL

    How often in seconds detect_ui_change polls the UI hierarchy.

  • ADB_AAPT_TIMEOUT

    Maximum seconds to wait for aapt dump badging, used by the app_manager pack.

  • ADB_CONFIG_SOURCE

    Set to 'yaml' to load configuration from adb_config.yaml instead of environment variables.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "agent-droid-bridge": {
      "command": "uvx",
      "args": [
        "agent-droid-bridge"
      ],
      "env": {
        "ADB_EXECUTION_MODE": "<YOUR_ADB_EXECUTION_MODE>",
        "ADB_ALLOW_SHELL": "<YOUR_ADB_ALLOW_SHELL>",
        "ADB_PATH": "<YOUR_ADB_PATH>",
        "ADB_EXTRA_TOOL_PACKS": "<YOUR_ADB_EXTRA_TOOL_PACKS>",
        "ADB_DENIED_TOOLS": "<YOUR_ADB_DENIED_TOOLS>",
        "ADB_SHELL_ALLOWLIST": "<YOUR_ADB_SHELL_ALLOWLIST>",
        "ADB_SHELL_DENYLIST": "<YOUR_ADB_SHELL_DENYLIST>",
        "MCP_LOG_ENABLED": "<YOUR_MCP_LOG_ENABLED>",
        "MCP_LOG_DIR": "<YOUR_MCP_LOG_DIR>",
        "ADB_LOG_LEVEL": "<YOUR_ADB_LOG_LEVEL>",
        "ADB_COMMAND_TIMEOUT": "<YOUR_ADB_COMMAND_TIMEOUT>",
        "ADB_SCREENSHOT_TIMEOUT": "<YOUR_ADB_SCREENSHOT_TIMEOUT>",
        "ADB_UI_CHANGE_TIMEOUT": "<YOUR_ADB_UI_CHANGE_TIMEOUT>",
        "ADB_UI_CHANGE_POLL_INTERVAL": "<YOUR_ADB_UI_CHANGE_POLL_INTERVAL>",
        "ADB_AAPT_TIMEOUT": "<YOUR_ADB_AAPT_TIMEOUT>",
        "ADB_CONFIG_SOURCE": "<YOUR_ADB_CONFIG_SOURCE>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • get_ui_hierarchy — Returns the current screen as an XML UI hierarchy
  • take_screenshot — Captures the screen as a base64-encoded PNG
  • tap_screen — Sends a tap gesture at pixel coordinates
  • swipe_screen — Sends a swipe gesture between two points over a given duration
  • type_text — Types text into the focused input field
  • press_key — Sends an Android keycode event (Back, Home, Enter, etc.)
  • launch_app — Launches an app by its package/activity component name
  • execute_adb_command — Runs an arbitrary ADB or ADB shell command
  • list_devices — Lists all Android devices currently visible to ADB with their serial, state, and model
  • snapshot_ui — Takes a lightweight UI snapshot and returns a token for use with detect_ui_change
  • detect_ui_change — Polls for a UI change after an action; accepts a snapshot token as baseline
  • get_screen_elements — Parses the UI hierarchy and returns structured elements with coordinates and interaction properties
  • get_screen_text — Returns all visible text on screen sorted top-to-bottom, as plain text
  • check_device_capabilities — Returns structured device information — identity, security posture, and hardware specs
  • list_packages — Lists installed packages with optional filtering, search, and detail levels (app_manager pack)
  • get_app_info — Returns full static metadata for a single installed app (app_manager pack)
  • install_app — Installs an APK from a host path onto the device (app_manager pack)
  • uninstall_app — Removes an installed app by package name (app_manager pack)
  • pull_apk — Extracts the installed APK from the device to the host (app_manager pack)
  • manage_permission — Grants, revokes, checks, or lists runtime permissions for an app (app_manager pack)

Use cases

  • Automate mobile app UI testing workflows across real devices and emulators without writing test code
  • Extract and analyze APKs, inspect permissions, and perform dynamic analysis on Android apps
  • Install builds, verify UI states, and debug app behavior from your development environment
  • Capture screenshots and screen text at each step of an automated workflow for verification and artifact collection
  • Launch apps in controlled states, drive interactions, and observe runtime behavior for security research

Agent Droid Bridge MCP server FAQ

What is Agent Droid Bridge?

Agent Droid Bridge is an MCP server that lets AI agents control Android devices and emulators via ADB. It provides 14 core tools for screen capture, UI inspection, touch input, text entry, app launching, and device control, plus an optional app_manager pack with 9 additional tools for package and APK management.

Is it free?

Yes, Agent Droid Bridge is open-source under the MIT license and free to use.

How do I install it in Cursor or Claude?

Install via `uvx agent-droid-bridge` (requires Python 3.11+ and ADB), then add it to your MCP client config with the server command and environment variables. See docs/setup.md for full instructions.

What are the security modes?

Two modes: unrestricted (allows all ADB commands with optional denylist) and restricted (allowlist-only). You can also disable shell commands entirely with ADB_ALLOW_SHELL=false and hide specific tools with ADB_DENIED_TOOLS.

Do I need to modify my Android app to use it?

No. Agent Droid Bridge works with any Android app via ADB—no instrumentation, jailbreak, or app modification required.

Can I log all agent actions?

Yes. Enable session logging by setting MCP_LOG_ENABLED=true and MCP_LOG_DIR to a writable path. All tool calls, ADB commands, and security events are logged to structured JSONL files.

README (reference)

Source of truth, from the repository.

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

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:
{
  "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.

<!-- mcp-name: io.github.Neverlow512/agent-droid-bridge -->

Related MCP servers

Wrap any korg:introspect@v1-aware binary as a Claude Code tool, honoring declared side-effects.

5
Rust
MIT
View repository →

Verifiable cognition: prove a session ledger is tamper-evident; audit & import any agent's logs.

5
Python
MIT
View repository →

Cross-vendor semantic memory: recall across Claude Code / Codex / Grok sessions by meaning.

5
Rust
MIT
View repository →

Serve a secret to an agent exactly N times from locked RAM, then wipe it and self-destruct.

3
Rust
MIT
View repository →

Independent A-F trust grade for any MCP server, watched for drift. Free, never for sale.

5
TypeScript
MIT
View repository →

FastMCP commerce server starter: product catalog, search, and checkout. Deploy to Vercel in 5 min.

0
Python
View repository →