adb-mcp
Enables AI agents to control Android devices via ADB, providing tools for screen capture, tap/swipe/input, app management, and diagnostics. Works locally over USB or WiFi and integrates with MCP clients like Claude and Cursor.
README
<p align="center"> <img src="https://github.com/axe01010/adb-mcp/raw/main/assets/banner.png" alt="adb-mcp" width="100%" /> </p>
<p align="center"> <img src="https://img.shields.io/github/stars/axe01010/adb-mcp?style=for-the-badge&color=22D3EE&logo=github" /> <img src="https://img.shields.io/github/license/axe01010/adb-mcp?style=for-the-badge&color=22D3EE&logo=android" /> <img src="https://img.shields.io/github/languages/top/axe01010/adb-mcp?style=for-the-badge&color=3DDC84" /> <img src="https://img.shields.io/github/actions/workflow/status/axe01010/adb-mcp/ci.yml?style=for-the-badge&color=22D3EE&logo=githubactions&logoColor=white&label=CI" /> <img src="https://img.shields.io/badge/MCP-ready-2563EB?style=for-the-badge&logo=modelcontextprotocol&logoColor=white" /> </p>
[!TIP] 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.
Install
pipx install adb-mcp # or: pip install adb-mcp
adb-mcp # stdio transport, targets default device
Or 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 needed
Included tools
| Category | Tools |
|---|---|
| Devices | list_devices |
| Screen | screencap, tap, swipe |
| Input | input_text, keyevent |
| Apps | list_packages, install_apk, launch |
| Diagnostics | battery, logcat |
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.md
Where to go next (roadmap)
- [ ] over-screenrecord GIF framing for the README demo
- [ ]
files/module: scoped push/pull - [ ]
CE/streaming logcat - [ ] pairing wizard for wireless
adb pair - [ ] topic badges + GH Actions test on push
<p align="center"> <b>Part of the <a href="https://github.com/axe01010/axe01010">Free On-Device AI DevKit</a> stack</b> </p> <p align="center"> <a href="https://github.com/axe01010/android-ai-agent">android-ai-agent</a> ยท <a href="https://github.com/axe01010/on-device-llm-mobile">on-device-llm-mobile</a> ยท <a href="https://github.com/axe01010/mcp-server-hub">mcp-server-hub</a> ยท <a href="https://github.com/axe01010/termux-toolkit">termux-toolkit</a> </p>
<div align="center">Built for the <b>Free On-Device AI DevKit</b> โ private AI that runs entirely on a phone.</div>
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]
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.