npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@iflow-mcp/adb-mcp

v1.0.1

Published

MCP server for Android Debug Bridge (ADB) interactions in TypeScript

Downloads

18

Readme

ADB MCP Server

smithery badge

An MCP (Model Context Protocol) server for interacting with Android devices through ADB. This TypeScript-based tool provides a bridge between AI models and Android device functionality.

Features

  • 📱 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

Prerequisites

  • Node.js (v16 or higher recommended, tested with Node.js v16, v18, and v20)
  • ADB (Android Debug Bridge) installed and in your PATH
  • An Android device or emulator connected via USB or network with USB debugging enabled
  • Permission to access the device (accepted debugging authorization on device)

Installation

Installing via Smithery

To install ADB Android Device Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @srmorete/adb-mcp --client claude

Manual Installation

# Clone the repository
git clone https://github.com/srmorete/adb-mcp.git
cd adb-mcp

# Install dependencies
npm install

# Build the TypeScript code
npm run build

# Run the server
npx adb-mcp

Configuration

ADB Path Configuration

The server uses default ADB paths. For custom ADB location:

export ADB_PATH=/path/to/adb
npx adb-mcp

MCP Configuration

Add the ADB MCP server configuration:

{
  "mcpServers": {
    "adb": {
      "command": "npx",
      "args": [
        "adb-mcp"
      ]
    }
  }
}

Usage

Starting the Server

IMPORTANT: The server must be running before using any ADB tools.

Start the server using:

npx adb-mcp

You should see:

[INFO] ADB MCP Server connected and ready

Keep this terminal window open while using the ADB tools.

Available Tools

All tools are available with the following naming convention:

📱 Device Management

  • adb_devices - List connected devices
  • adb_shell - Execute shell commands on a device

📦 App Management

  • adb_install - Install an APK file using a local file path
  • adb_package_manager - Execute Package Manager (pm) commands - list packages, grant/revoke permissions, manage apps
  • adb_activity_manager - Execute Activity Manager (am) commands - start activities, broadcast intents, control app behavior

📋 Logging

  • adb_logcat - View device logs with optional filtering

🔄 File Transfer

  • adb_pull - Pull files from a device
  • adb_push - Push files to a device

🔍 UI Interaction

  • dump_image - Take a screenshot of the current screen
  • inspect_ui - Get UI hierarchy in XML format (most useful for AI interaction)

Troubleshooting

If tools aren't working:

  • Server Issues:

    • Ensure the server is running (npx adb-mcp)
    • Check server output for error messages
    • Try detailed logs: LOG_LEVEL=3 npx adb-mcp
    • Kill hanging processes:
      • ps aux | grep "adb-mcp" | grep -v grep
      • then kill -9 [PID]
  • Device Connection:

    • Verify connection with adb_devices
    • If "unauthorized", accept debugging authorization on device
    • Check USB/network connections
    • Try restarting ADB: adb kill-server && adb start-server
  • ADB Issues:

    • Verify ADB installation: adb version
  • Device Setup:

    • Use an emulator (it was built using one), for real devices maybe try this:
      • Ensure USB debugging is enabled
      • For newer Android versions, enable "USB debugging (Security settings)"
      • Try different USB port or cable
      • or let me know in an issue

Compatibility

  • Android 8.0 and higher
  • MCP clients including Claude in Cursor IDE
  • Was built on macOS but should run on any POSIX compatible (Linux etc).
  • Did not try on Windows but maybe it works.

Contributing

  • Contributions are welcome! Submit a Pull Request.
  • For major changes, open an issue to discuss first.
  • You can, of course, also fork it
  • Note: this project was vibe-coded so if you spot some weird stuff... well now you know 🙂

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments