developer-tools

ADB (Android Debug Bridge)

by srmorete

Bridge AI and Android devices using Android Debug Bridge for Windows. Manage devices, run shell commands, and install ap

Bridges AI with Android devices through ADB, enabling device management, shell commands, app installation, file transfers, and UI inspection without requiring direct ADB knowledge.

github stars

36

best for

  • / General purpose MCP workflows

capabilities

  • / adb_devices
  • / inspect_ui
  • / adb_shell
  • / adb_install
  • / adb_logcat
  • / adb_pull

what it does

Bridges AI with Android devices through ADB, enabling device management, shell commands, app installation, file transfers, and UI inspection without requiring direct ADB knowledge.

about

ADB (Android Debug Bridge) is a community-built MCP server published by srmorete that provides AI assistants with tools and capabilities via the Model Context Protocol. Bridge AI and Android devices using Android Debug Bridge for Windows. Manage devices, run shell commands, and install ap It is categorized under developer tools. This server exposes 8 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install ADB (Android Debug 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

MIT

ADB (Android Debug Bridge) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

ADB MCP Server

smithery badge

An MCP (Model Context Protocol) server for interacting with Android devices through ADB. This TypeScript-based tool provides a bridge between AI models and Android device functionality.

Features

  • 📱 Device Management - List and interact with connected Android devices
  • 📦 App Installation - Deploy APK files to connected devices
  • 📋 Logging - Access device logs through logcat
  • 🔄 File Transfer - Push and pull files between device and host
  • 📸 UI Interaction - Capture screenshots and analyze UI hierarchy
  • 🔧 Shell Command Execution - Run custom commands on the device

Prerequisites

  • Node.js (v16 or higher recommended, tested with Node.js v16, v18, and v20)
  • ADB (Android Debug Bridge) installed and in your PATH
  • An Android device or emulator connected via USB or network with USB debugging enabled
  • Permission to access the device (accepted debugging authorization on device)

Installation

Installing via Smithery

To install ADB Android Device Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @srmorete/adb-mcp --client claude

Manual Installation

# Clone the repository
git clone https://github.com/srmorete/adb-mcp.git
cd adb-mcp

# Install dependencies
npm install

# Build the TypeScript code
npm run build

# Run the server
npx adb-mcp

Configuration

ADB Path Configuration

The server uses default ADB paths. For custom ADB location:

export ADB_PATH=/path/to/adb
npx adb-mcp

MCP Configuration

Add the ADB MCP server configuration:

{
  "mcpServers": {
    "adb": {
      "command": "npx",
      "args": [
        "adb-mcp"
      ]
    }
  }
}

Usage

Starting the Server

IMPORTANT: The server must be running before using any ADB tools.

Start the server using:

npx adb-mcp

You should see:

[INFO] ADB MCP Server connected and ready

Keep this terminal window open while using the ADB tools.

Available Tools

All tools are available with the following naming convention:

📱 Device Management

  • adb_devices - List connected devices
  • adb_shell - Execute shell commands on a device

📦 App Management

  • adb_install - Install an APK file using a local file path
  • adb_package_manager - Execute Package Manager (pm) commands - list packages, grant/revoke permissions, manage apps
  • adb_activity_manager - Execute Activity Manager (am) commands - start activities, broadcast intents, control app behavior

📋 Logging

  • adb_logcat - View device logs with optional filtering

🔄 File Transfer

  • adb_pull - Pull files from a device
  • adb_push - Push files to a device

🔍 UI Interaction

  • dump_image - Take a screenshot of the current screen
  • inspect_ui - Get UI hierarchy in XML format (most useful for AI interaction)

Troubleshooting

If tools aren't working:

  • Server Issues:

    • Ensure the server is running (npx adb-mcp)
    • Check server output for error messages
    • Try detailed logs: LOG_LEVEL=3 npx adb-mcp
    • Kill hanging processes:
      • ps aux | grep "adb-mcp" | grep -v grep
      • then kill -9 [PID]
  • Device Connection:

    • Verify connection with adb_devices
    • If "unauthorized", accept debugging authorization on device
    • Check USB/network connections
    • Try restarting ADB: adb kill-server && adb start-server
  • ADB Issues:

    • Verify ADB installation: adb version
  • Device Setup:

    • Use an emulator (it was built using one), for real devices maybe try this:
      • Ensure USB debugging is enabled
      • For newer Android versions, enable "USB debugging (Security settings)"
      • Try different USB port or cable
      • or let me know in an issue

Compatibility

  • Android 8.0 and higher
  • MCP clients including Claude in Cursor IDE
  • Was built on macOS but should run on any POSIX compatible (Linux etc).
  • Did not try on Windows but maybe it works.

Contributing

  • Contributions are welcome! Submit a Pull Request.
  • For major changes, open an issue to discuss first.
  • You can, of course, also fork it
  • Note: this project was vibe-coded so if you spot some weird stuff... well now you know 🙂

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

FAQ

What is the ADB (Android Debug Bridge) MCP server?
ADB (Android Debug Bridge) is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for ADB (Android Debug Bridge)?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    ADB (Android Debug Bridge) is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated ADB (Android Debug Bridge) against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: ADB (Android Debug Bridge) is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    ADB (Android Debug Bridge) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend ADB (Android Debug Bridge) for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: ADB (Android Debug Bridge) surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    ADB (Android Debug Bridge) has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, ADB (Android Debug Bridge) benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired ADB (Android Debug Bridge) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    ADB (Android Debug Bridge) is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.