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.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@adb-mcpcheck the battery level"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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]This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables 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.3Apache 2.0
- AlicenseAqualityBmaintenanceMCP 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.3825965MIT
- Alicense-qualityDmaintenanceEnables 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.10MIT
- Alicense-qualityBmaintenanceEnables AI agents to control Android phones via MCP and HTTP. Supports screen capture, taps, swipes, text input, and app management.AGPL 3.0
Related MCP Connectors
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
Free public MCP for AI agents ā 193 tools, 44 workflows. No API key.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/axe01010/adb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server