Provides Android Debug Bridge (ADB) functionality for automating Android devices, including device management, screen operations (screenshots, touch input), app management (install/uninstall, start/stop), file operations, and shell command execution.
Enables file operations on Android devices including pushing files to device, pulling files from device, listing files and directories, creating directories, and deleting files.
Allows execution of shell commands on Android devices to get system information, battery information, and logcat output, with basic security measures to block dangerous commands.
ADB MCP
A Model Context Protocol (MCP) server that provides Android Debug Bridge (ADB) functionality for automating Android devices.
Features
Device Management
- List connected devices
- Get device information
- Set default device for operations
- Check device connection status
Screen Operations
- Take screenshots
- Click at coordinates
- Swipe gestures
- Input text
- Press keys
App Management
- Install/uninstall apps
- Start/stop apps
- List installed apps
- Get app information
File Operations
- Push files to device
- Pull files from device
- List files and directories
- Create directories
- Delete files
Shell Commands
- Execute shell commands
- Get system information
- Get battery information
- Get logcat output
Installation
- Clone the repository
- Install dependencies:
- Build the project:
Usage
Prerequisites
- Android Debug Bridge (adb) must be installed and available in PATH
- Android device connected via USB with USB debugging enabled
- Device must be authorized for debugging
Running the Server
Available Tools
Device Management
adb_list_devices
- List all connected devicesadb_get_device_info
- Get device informationadb_set_default_device
- Set default device
Screen Operations
adb_screenshot
- Take screenshotadb_click
- Click at coordinatesadb_swipe
- Swipe gestureadb_input_text
- Input textadb_press_key
- Press key
App Management
adb_install_app
- Install APKadb_uninstall_app
- Uninstall appadb_start_app
- Start appadb_stop_app
- Stop appadb_list_apps
- List installed apps
File Operations
adb_push_file
- Push file to deviceadb_pull_file
- Pull file from deviceadb_list_files
- List files in directory
Shell Commands
adb_shell
- Execute shell commandadb_get_system_info
- Get system informationadb_get_battery_info
- Get battery informationadb_get_logcat
- Get logcat output
Security
The server includes basic security measures:
- Dangerous shell commands are blocked
- File path validation
- Device connection verification
- Input sanitization
Development
Build
Development Mode
Lint
MCP
License
MIT
This server cannot be installed
A Model Context Protocol server that provides Android Debug Bridge functionality for automating Android devices, enabling remote device management, screen operations, app management, file operations, and shell command execution.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that enables AI assistants to control and interact with Android devices, allowing for device management, app debugging, system analysis, and UI automation through natural language commands.Last updated -29143PythonApache 2.0
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants to interact with Android devices through ADB, allowing for automated device management, app installation, file transfers, and screenshot capture.Last updated -112JavaScriptISC License
- -securityAlicense-qualityA Model Context Protocol server that enables building Android projects and running tests directly in Visual Studio Code through extensions like Cline or Roo Code.Last updated -1PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to control and automate Android devices through natural language, supporting actions like app management, UI interactions, and device monitoring.Last updated -2PythonMIT License