
mcp adb
一个通过MCP协议集成ADB功能的工具,用于Android开发和调试。
Repository Info
About This Server
一个通过MCP协议集成ADB功能的工具,用于Android开发和调试。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP ADB - Android Debug Bridge
A powerful MCP server that integrates with ADB (Android Debug Bridge) to help with Android app development and debugging. This tool allows you to build Android apps, install them on connected devices, get logs, take screenshots, and perform other essential ADB commands directly through Cursor using the Model Context Protocol (MCP).
Features
- Device Management: View all connected Android devices with detailed information
- Logcat Access: Get logcat output from connected devices
- Screenshot Capture: Take screenshots of connected devices for debugging
- App Installation: Install APK files on connected devices
- Shell Commands: Execute ADB shell commands on connected devices
- MCP Integration: Use ADB functionality directly from Cursor via MCP
Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
- Android SDK with ADB installed and configured in your PATH
- Connected Android device with USB debugging enabled
- Cursor (for MCP integration)
Installation
-
Clone this repository:
git clone https://github.com/yourusername/mcp-adb.git cd mcp-adb -
Install dependencies:
npm install
Using with Cursor (MCP)
To use MCP ADB with Cursor:
-
Install the package globally (optional):
npm install -g . -
Add the MCP server to Cursor:
- Open Cursor
- Go to
Cursor Settings>Features>MCP - Click on
+ Add New MCP Server - Fill in the form:
- Type:
stdio - Name:
MCP ADB - Command:
node /path/to/mcp-adb/src/mcp-stdio-server.js- If installed globally, you can use:
mcp-adb
- If installed globally, you can use:
- Type:
- Click
Add
-
The MCP ADB server should now appear in your list of MCP servers in Cursor.
-
Use the MCP tools in Cursor's Composer:
list_devices: List all connected Android devicesget_device_info: Get detailed information about a specific devicetake_screenshot: Take a screenshot of a deviceinstall_apk: Install an APK file on a deviceexecute_shell_command: Execute a shell command on a deviceget_logcat: Get logcat output from a device
Example Usage in Cursor
Here are some examples of how to use the MCP ADB tools in Cursor:
-
List connected devices:
- Ask Cursor: "List all connected Android devices"
-
Get device information:
- Ask Cursor: "Get information about my Android device"
-
Take a screenshot:
- Ask Cursor: "Take a screenshot of my Android device"
-
Install an APK:
- Ask Cursor: "Install the APK at /path/to/app.apk on my Android device"
-
Execute a shell command:
- Ask Cursor: "Run 'ls /sdcard' on my Android device"
-
Get logcat output:
- Ask Cursor: "Show me the last 50 lines of logcat from my Android device"
License
This project is licensed under the ISC License.
Quick Start
Clone the repository
git clone https://github.com/tripathiamritansh/mcp-adbInstall dependencies
cd mcp-adb
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.