ADBFriend
Android ADB CLI tool including integrated MCP Server with common adb actions used during development
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
Maintainer
Works with
Installation
Manual Installation
npx adbfriendConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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/adbfriendVerify the installation
Confirm that adbfriend is available on your PATH and review the available commands.
adbfriend --helpSet 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"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"
}
}
}
}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/inspectorADBFriend 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.
ADBFriend Alternatives — Similar Developer Tools Servers
Looking for alternatives to ADBFriend? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up ADBFriend in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.