
Android ADB
Connects to Android devices through ADB to execute shell commands, manage apps, transfer files, and capture screenshots. Enables AI assistants to automate Android development and testing tasks.
Provides a bridge to Android devices through ADB, enabling device management, shell command execution, app installation, screenshot capture, and file transfer across connected Android devices.
What it does
- Execute shell commands on Android devices
- Install and uninstall Android applications
- Transfer files between computer and Android devices
- Capture screenshots from Android devices
- Launch applications on connected devices
- Manage multiple Android devices simultaneously
Best for
About Android ADB
Android ADB is a community-built MCP server published by landicefu that provides AI assistants with tools and capabilities via the Model Context Protocol. Manage Android devices with ADB: execute shell commands, install apps, capture screenshots, and transfer files for effic It is categorized under developer tools.
How to install
You can install Android ADB in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
Android ADB is released under the ISC license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Android ADB MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with Android devices through the Android Debug Bridge (ADB). This server bridges the gap between AI capabilities and Android device management, allowing for seamless automation of Android development and testing operations.
⚙️ Quick Setup
Add the server to your MCP configuration file:
{
"mcpServers": {
"android-adb": {
"command": "npx",
"args": ["-y", "@landicefu/android-adb-mcp-server"],
"env": {},
"disabled": false,
"alwaysAllow": []
}
}
}
Configuration Locations
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) - Cline/Roo Code:
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json(macOS) - For Windows/Linux, check the equivalent application support directories
After configuring, restart your AI assistant to load the new server configuration.
📋 Prerequisites
- ADB (Android Debug Bridge) must be installed and available in your system PATH
- Install ADB on Windows, macOS, or Linux
- Verify installation by running
adb versionin your terminal
- For clipboard functionality:
- macOS:
osascript(built-in) - Windows: PowerShell (built-in)
- Linux:
xclip(install viaapt-get install xclipor equivalent)
- macOS:
- Node.js 16.x or higher
🚀 Features
- Connect to and manage multiple Android devices
- Execute shell commands on Android devices
- Install and uninstall applications
- Push and pull files between local system and Android devices
- Launch applications on Android devices
- Take screenshots and save them locally or copy to clipboard
- Smart device selection when multiple devices are connected
🛠️ Available Tools
| Tool | Description | Required Parameters | Optional Parameters |
|---|---|---|---|
adb_devices | List connected devices | None | None |
adb_shell | Execute shell commands | command | device_id |
adb_install | Install APK files | path | device_id |
adb_uninstall | Uninstall applications | package_name | device_id |
adb_list_packages | List installed packages | None | device_id, filter |
adb_pull | Pull files from device | remote_path, local_path | device_id |
adb_push | Push files to device | local_path, remote_path | device_id |
launch_app | Launch an application | package_name | device_id |
take_screenshot_and_save | Take and save screenshot | output_path | device_id, format |
take_screenshot_and_copy_to_clipboard | Take screenshot to clipboard | None | device_id, format |
Device Management
The server intelligently handles device selection:
- If only one device is connected, it will be used automatically
- If multiple devices are connected, you must specify a
device_idparameter - If no devices are connected, an error will be returned
Screenshot Path Resolution
When specifying the output_path for saving screenshots, the path is resolved as follows:
- Absolute paths are used as-is
- Paths starting with
~are expanded to the user's home directory - Relative paths are resolved relative to the user's home directory
This ensures that screenshots are saved to a location where the MCP server has write permissions.
🔍 Troubleshooting
Common Issues
-
"ADB is not available" error
- Ensure ADB is installed and in your system PATH
- Verify by running
adb versionin your terminal
-
"No Android devices connected" error
- Check if your device is properly connected with
adb devices - Ensure USB debugging is enabled on your device
- Try restarting ADB with
adb kill-serverfollowed byadb start-server
- Check if your device is properly connected with
-
"Multiple devices connected" error
- Specify the
device_idparameter in your tool call - Get the list of available devices with the
adb_devicestool
- Specify the
-
Screenshot to clipboard not working
- Ensure the required platform-specific tools are installed
🔧 Alternative Installation Methods
Option 1: Install from npm
# Install globally
npm install -g @landicefu/android-adb-mcp-server
# Or install locally in your project
npm install @landicefu/android-adb-mcp-server
Option 2: Manual Installation from Source
-
Clone the repository:
git clone https://github.com/landicefu/android-adb-mcp-server.git cd android-adb-mcp-server -
Install dependencies and build:
npm install npm run build -
Configure with direct path:
{ "mcpServers": { "android-adb": { "command": "node", "args": ["/path/to/android-adb-mcp-server/build/index.js"], "env": {}, "disabled": false, "alwaysAllow": [] } } }
📄 License
This project is licensed under the ISC License - see the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Alternatives
Related Skills
Browse all skillsComprehensive guide for creating professional UI/UX designs in Penpot using MCP tools. Use this skill when: (1) Creating new UI/UX designs for web, mobile, or desktop applications, (2) Building design systems with components and tokens, (3) Designing dashboards, forms, navigation, or landing pages, (4) Applying accessibility standards and best practices, (5) Following platform guidelines (iOS, Android, Material Design), (6) Reviewing or improving existing Penpot designs for usability. Triggers: "design a UI", "create interface", "build layout", "design dashboard", "create form", "design landing page", "make it accessible", "design system", "component library".
UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.
Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.
Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.