ADBFriend

v1.0.0Developer Toolsstable

Android ADB CLI tool including integrated MCP Server with common adb actions used during development

adbaiandroidandroiddebugbridgecli
Share:
73
Stars
0
Downloads
0
Weekly
0/5

What is ADBFriend?

ADBFriend is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to android adb cli tool including integrated mcp server with common adb actions used during development

Android ADB CLI tool including integrated MCP Server with common adb actions used during development

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Android ADB CLI tool including integrated MCP Server with co

Use Cases

Android device debugging and automation via ADB
Integrated CLI for mobile development workflows
mikepenz

Maintainer

LicenseApache-2.0
Languagekotlin
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx adbfriend

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use ADBFriend

ADBFriend is a Kotlin-based CLI tool and MCP server that lets AI assistants control Android devices over ADB (Android Debug Bridge). It exposes a rich set of tools for file management, package control, screenshot capture, APK installation, and device inspection—enabling developers to automate mobile workflows entirely through natural language without leaving their AI client.

Prerequisites

  • Homebrew installed (macOS) or a pre-built binary from the GitHub releases page
  • Android SDK installed with ADB available; ANDROID_HOME environment variable set
  • At least one Android device connected via USB or an Android emulator running
  • An MCP-compatible AI client such as Claude Desktop, GitHub Copilot, or RayCast
1

Install ADBFriend via Homebrew

Add the custom Homebrew tap and install the adbfriend binary. Alternatively, download a pre-built binary from the GitHub releases page for your platform.

brew tap mikepenz/tap
brew install mikepenz/tap/adbfriend
2

Verify the installation

Confirm that adbfriend is available on your PATH and review the available commands.

adbfriend --help
3

Set the ANDROID_HOME environment variable

ADBFriend requires ANDROID_HOME to locate the ADB binary and auto-start the ADB server. Without it, you must start the ADB server manually before connecting.

export ANDROID_HOME="$HOME/Library/Android/sdk"
4

Add ADBFriend to your MCP client configuration

Open your MCP client configuration file (e.g. claude_desktop_config.json for Claude Desktop) and register the adbfriend MCP server with the correct ANDROID_HOME path.

{
  "mcpServers": {
    "adb-friend": {
      "command": "/opt/homebrew/bin/adbfriend",
      "args": ["mcp", "server"],
      "env": {
        "ANDROID_HOME": "/Users/your-username/Library/Android/sdk"
      }
    }
  }
}
5

Restart your MCP client and verify the connection

Restart Claude Desktop (or your chosen client) to load the new server config. You can also debug the server with the MCP Inspector.

npx @modelcontextprotocol/inspector

ADBFriend Examples

Client configuration

Claude Desktop configuration block for ADBFriend. Replace the ANDROID_HOME path with the actual path on your machine.

{
  "mcpServers": {
    "adb-friend": {
      "command": "/opt/homebrew/bin/adbfriend",
      "args": ["mcp", "server"],
      "env": {
        "ANDROID_HOME": "/Users/your-username/Library/Android/sdk"
      }
    }
  }
}

Prompts to try

Example natural language prompts you can send once the server is connected to your AI client.

- "Do I have a browser installed on the connected emulator?"
- "Uninstall the 'sample' app but keep its data"
- "Force stop the 'com.example.myapp' package"
- "Capture a screenshot from the connected Android device and save it to my Desktop"
- "Pull all KotlinConf related files from the Android device to the host"
- "List all third-party apps installed on the device"

Troubleshooting ADBFriend

Connection exception is thrown when starting the MCP server

This happens when ANDROID_HOME is not set and the ADB server has not been started manually. Either set ANDROID_HOME in the env block of your MCP config, or run 'adb start-server' in your terminal before launching the AI client.

adbfriend command not found after Homebrew install

Ensure /opt/homebrew/bin (Apple Silicon) or /usr/local/bin (Intel) is on your PATH. Run 'brew doctor' to diagnose Homebrew issues, or use the absolute binary path in your MCP config as shown in the configuration example.

No devices returned by get-connected-devices

Confirm your Android device has USB debugging enabled under Developer Options, or that your Android emulator is running. Run 'adb devices' in a terminal to verify ADB can see the device before attempting to use the MCP tools.

Frequently Asked Questions about ADBFriend

What is ADBFriend?

ADBFriend is a Model Context Protocol (MCP) server that android adb cli tool including integrated mcp server with common adb actions used during development It connects AI assistants to external tools and data sources through a standardized interface.

How do I install ADBFriend?

Follow the installation instructions on the ADBFriend GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with ADBFriend?

ADBFriend works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is ADBFriend free to use?

Yes, ADBFriend is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "adbfriend": { "command": "npx", "args": ["-y", "adbfriend"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use ADBFriend?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides