An MCP (Model Context Protocol) server for interacting with Android devices through ADB in TypeScript.
Overview
What is ADB MCP?
ADB MCP is a Model Context Protocol server designed for interacting with Android devices through ADB using TypeScript. It serves as a bridge between AI models and Android device functionalities.
How to use ADB MCP?
To use ADB MCP, clone the repository, install the dependencies, build the TypeScript code, and run the server using the command npx adb-mcp. Ensure that the server is running before using any ADB tools.
Key features of ADB MCP?
- 📱 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.
Use cases of ADB MCP?
- Managing multiple Android devices for testing.
- Automating app installations and updates.
- Capturing UI screenshots for analysis.
- Executing shell commands for device management.
FAQ from ADB MCP?
- Can ADB MCP work with any Android device?
Yes! ADB MCP is compatible with Android 8.0 and higher.
- Is ADB MCP free to use?
Yes! ADB MCP is open-source and free to use under the MIT License.
- What are the prerequisites for using ADB MCP?
You need Node.js (v16 or higher), ADB installed, and an Android device or emulator with USB debugging enabled.