adb-mcp
Provides tools for controlling an Android device via adb, including screen capture, tap, swipe, text input, key events, package management, app installation and launching, battery diagnostics, and logcat.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
A single star is the cheapest thank-you β β the repo if this is useful. It's the only thing that helps other people find it.
π€ adb-mcp β Let AI agents drive your Android phone
Turn
adbinto a full Model Context Protocol surface. Tap, swipe, screencap, install, read packages, watch logcat β directly from Claude, Cursor, or any MCP-capable agent. Your phone becomes an AI-controlled device.
Why
"AI controls your phone" is the 2026 demo β and
adbis the closest thing to a universal phone API.One command to mount your device as a set of tools any agent can call.
Works over WiFi (
adb pair/connect) or USB on Linux, macOS, Windows, and Termux on Android.Zero cloud β everything stays on your local machine. Private by design.
Related MCP server: scrcpy-mcp
Install
pipx install adb-mcp # or: pip install adb-mcp
adb-mcp # stdio transport, targets default deviceOr run with an explicit device:
adb-mcp --device <serial>Plug into Claude Desktop
Add this to claude_desktop_config.json:
{ "mcpServers": { "adb": { "command": "adb-mcp" } } }Plug into Cursor
Add a new MCP server entry with command adb-mcp and type stdio.
Quick start (no device needed)
Try it against the built-in mock adb, fully offline:
adb-mcp --mock
python -m pytest tests/ -q # 5 passing tests, zero hardware neededIncluded tools
Category | Tools |
Devices |
|
Screen |
|
Input |
|
Apps |
|
Diagnostics |
|
Each tool runs a scoped, time-limited adb shell/adb exec-out call β no root, no
persistent anything.
Project layout
adb-mcp/
ββ pyproject.toml # hatchling build, `adb-mcp` console script
ββ adb_mcp/
β ββ server.py # FastMCP server + all tool registrations
β ββ adb.py # Adb / MockAdb transport
β ββ __init__.py
ββ tests/test_tools.py # mock-based, device-free tests
ββ README.mdWhere to go next (roadmap)
over-screenrecord GIF framing for the README demo
files/module: scoped push/pullCE/streaming logcatpairing wizard for wireless
adb pairtopic badges + GH Actions test on push
Architecture
flowchart LR
Agent[Any AI Agent] <--> MCP[MCP stdio]
MCP --> adbc{adb-mcp server}
adbc --> Shell[adb shell]
Shell --> Phone((Android Phone))
Phone --> T[tap / swipe / screencap]
Phone --> A[install / launch]
Phone --> L[logcat]
Phone --> P[packages]Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Cloud Android phones for AI agents, over MCP and REST. $0.01 a minute.
Let AI agents control Android and iOS devices on Mobilerun Cloud: screen, input, apps, workflows.
Cloud Android phones for AI agents: create a phone, read the screen, tap, type, install APKs, park.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables programmatic control of Android devices via ADB, supporting UI automation, app management, screen capture with OCR, and file transfers through the Model Context Protocol. It allows MCP-compatible clients like Claude Desktop and Cursor to interact directly with physical or emulated Android devices.19 PyPI3Apache 2.0
- AlicenseAqualityCmaintenanceMCP server that gives AI agents full vision and control over Android devices via ADB and scrcpy. Supports screenshots, input, apps, UI automation, shell, files, and clipboard.38374 npm131MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible agents to control an Android device over the network via ADB, providing tools for shell commands, screen capture, UI inspection, file operations, and input simulation.16 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control Android phones via MCP and HTTP. Supports screen capture, taps, swipes, text input, and app management.7AGPL 3.0