agent-droid-bridge

agent-droid-bridge

Neverlow512

Agent Droid Bridge gives AI agents programmatic control over Android devices and emulators via ADB, exposed as an MCP se

An MCP server that connects AI agents to Android devices and emulators over ADB for mobile automation, app testing, and reverse engineering.

1411 views1Local (stdio)

About agent-droid-bridge

agent-droid-bridge is a community-built MCP server published by Neverlow512 that provides AI assistants with tools and capabilities via the Model Context Protocol. Agent Droid Bridge gives AI agents programmatic control over Android devices and emulators via ADB, exposed as an MCP se It is categorized under search web. This server exposes 13 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install agent-droid-bridge in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

agent-droid-bridge is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (13)

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

Python 3.11+ License MIT MCP Compatible PyPI MCP Registry

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.


⭐ If you like the project, a star helps others find it. ⭐


Note: Purpose-built tools return structured, minimal responses instead of raw XML dumps, keeping agent workflows fast and context consumption low, while keeping performance high.

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

  • Exposes 13 MCP tools covering screen capture, UI inspection, screen reading, element extraction, touch and swipe input, text entry, keycode events, app launching, and arbitrary ADB commands
  • Auto-detects the connected device when only one is present; presents a device list and requires the user to choose when multiple are connected
  • All commands parsed via shlex — no shell injection possible
  • Runs over stdio, compatible with any MCP-capable AI client
  • Purpose-built screen reading and element extraction tools return structured, minimal responses — a fraction of the size of a raw XML hierarchy — keeping agent context lean across long automation runs
  • Two execution modes: unrestricted (default, with optional shell denylist) and restricted (allowlist-only — only explicitly permitted shell commands are allowed); set ADB_EXECUTION_MODE=restricted to enable
  • Set ADB_ALLOW_SHELL=false to block all adb shell commands entirely, regardless of mode
  • Add tool names to tools.denied in adb_config.yaml to hide specific MCP tools from the agent at server startup — all filtering enforced at the server level

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"
      }
    }
  }
}
  1. Prompt your agent to use the agent-droid-bridge MCP tools

Full setup guide: 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

Full parameter reference: docs/tools.md

Configuration

The server is configurable via adb_config.yaml and environment variables. Tuneable parameters include the ADB binary path, command timeouts, log level, execution mode, shell filtering rules, and tool visibility. Full reference: docs/configuration.md.

Documentation

FileDescription
docs/setup.mdPrerequisites, installation, and MCP client configuration
docs/tools.mdFull parameter reference for all 13 tools
docs/configuration.mdReference for adb_config.yaml and environment variables

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.

Star History

Star History Chart

Alternatives

Related Skills

Browse all skills
google-official-seo-guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

127
ux-writing

Create user-centered, accessible interface copy (microcopy) for digital products including buttons, labels, error messages, notifications, forms, onboarding, empty states, success messages, and help text. Use when writing or editing any text that appears in apps, websites, or software interfaces, designing conversational flows, establishing voice and tone guidelines, auditing product content for consistency and usability, reviewing UI strings, or improving existing interface copy. Applies UX writing best practices based on four quality standards — purposeful, concise, conversational, and clear. Includes accessibility guidelines, research-backed benchmarks (sentence length, comprehension rates, reading levels), expanded error patterns, tone adaptation frameworks, and comprehensive reference materials.

33
last30days

Research a topic from the last 30 days on Reddit + X + Web, become an expert, and write copy-paste-ready prompts for the user's target tool.

28
browser-automation

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include "browse", "navigate to", "go to website", "extract data from webpage", "screenshot", "web scraping", "fill out form", "click on", "search for on the web". When taking actions be as specific as possible.

26
seo-optimizer

Search Engine Optimization specialist for content strategy, technical SEO, keyword research, and ranking improvements. Use when optimizing website content, improving search rankings, conducting keyword analysis, or implementing SEO best practices. Expert in on-page SEO, meta tags, schema markup, and Core Web Vitals.

23
web-research

Use this skill for requests related to web research; it provides a structured approach to conducting comprehensive web research

20