Android
概览
作者提供的说明(英文原文)
Control Android devices and emulators via ADB — screenshots, UI automation, and logcat.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i2 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 181/周 · ★ 69
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:2 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
ANDROID_HOME
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"android": {
"command": "npx",
"args": [
"-y",
"android-mcp-server"
],
"env": {
"ANDROID_HOME": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add android --env ANDROID_HOME=your-value -- npx -y android-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"android": {
"command": "npx",
"args": [
"-y",
"android-mcp-server"
],
"env": {
"ANDROID_HOME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"android": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"android-mcp-server"
],
"env": {
"ANDROID_HOME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
ANDROID_HOMEenvPath to Android SDK (auto-detected on macOS at ~/Library/Android/sdk)
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 martingeidobler 验证,该账户拥有此仓库
- ! 注意
仍在维护
代码最后更新于8个月前,已超过 6 个月
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5727 个服务器的 95%
- 发布到注册中心的时间比此分类中其他 5727 个服务器的 6% 更新
- 基础检查结果等于或优于此分类中其他 5727 个服务器的 13%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Android 安全吗?
它在 2 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于8个月前,最新版本(1.2.1)于8个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Android MCP Server
MCP server for controlling Android emulators and devices via ADB. Gives AI assistants the ability to see, interact with, and debug Android apps — taking screenshots, tapping elements, reading logs, and documenting bugs.
npm Package | GitHub | Issues
^ Sped up for better viewing. More demos and test cases.
Features
- 25 tools for complete Android device control
- Screenshot capture with intelligent compression (Sharp-based, max 1280px)
- UI tree inspection — read element hierarchy with bounds, text, resource IDs, and state
- Touch automation — tap, swipe, scroll, type text, press hardware keys
- Element targeting — find and tap elements by resource-id, text, or content-desc
- App lifecycle — install APKs, launch apps, inspect current activity
- Logcat integration — filter by package, log level, or timestamp
- Device management — list devices, start emulators, get device info
- Compound actions —
tap_and_waitcombines tap + settle + UI tree in one round trip - Persistent ADB shell — reuses a single shell session for faster command execution
- Device info caching — queries device properties once per session
- Multi-device support — target specific devices by ID
- Zero app modifications — works with any Android app via ADB, no SDK integration needed
Prerequisites
- Node.js 18+
- Android SDK with platform-tools (ADB) and emulator
- A running Android emulator or connected device
Finding your ANDROID_HOME
The server auto-discovers the SDK at ~/Library/Android/sdk (macOS) or via ANDROID_HOME. If your SDK is elsewhere, set ANDROID_HOME in the MCP config (see below).
To check:
# macOS
ls ~/Library/Android/sdk/platform-tools/adb
Or find it via Android Studio: Settings > Languages & Frameworks > Android SDK
Setup
Claude Code
claude mcp add --scope user android -- npx -y android-mcp-server
This registers the server globally so it's available in all projects. Use --scope project instead to limit it to the current project.
If your SDK is not in the default location:
claude mcp add --scope user --env ANDROID_HOME=/path/to/sdk android -- npx -y android-mcp-server
Claude Desktop
Add to your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": { "android": { "command": "npx", "args": ["-y", "android-mcp-server"], "env": { "ANDROID_HOME": "/path/to/android/sdk" } } } }
VS Code
Add to your VS Code settings (.vscode/settings.json):
{
"mcp": { "servers": { "android": { "command": "npx", "args": ["-y", "android-mcp-server"], "env": { "ANDROID_HOME": "/path/to/android/sdk" } } } } }
Cursor
Add to your Cursor MCP config (~/.cursor/mcp.json):
{
"mcpServers": { "android": { "command": "npx", "args": ["-y", "android-mcp-server"], "env": { "ANDROID_HOME": "/path/to/android/sdk" } } } }
Windsurf
Add to your Windsurf MCP config (~/.codeium/windsurf/mcp_config.json):
{
"mcpServers": { "android": { "command": "npx", "args": ["-y", "android-mcp-server"], "env": { "ANDROID_HOME": "/path/to/android/sdk" } } } }
Project config (.mcp.json)
Add to your project's .mcp.json (checked into version control so your team gets it too):
{
"mcpServers": { "android": { "command": "npx", "args": ["-y", "android-mcp-server"], "env": { "ANDROID_HOME": "/path/to/android/sdk" } } } }
Build from source
git clone https://github.com/martingeidobler/android-mcp-server.git
cd android-mcp-server npm install npm run build claude mcp add --scope user android -- node /path/to/android-mcp-server/dist/index.js
Available Tools
Device Management
| Tool | Description |
|---|---|
list_devices | List connected Android devices and emulators |
list_avds | List available Android Virtual Devices |
start_emulator | Start an AVD by name (waits up to 60s) |
Screenshot & UI Analysis
| Tool | Description |
|---|---|
screenshot | Take screenshot for visual analysis. Optional save_path to save to disk |
get_ui_tree | Get UI element hierarchy with bounds, text, resource IDs, and state |
Interaction
| Tool | Description |
|---|---|
tap | Tap at screen coordinates |
tap_element | Tap element by resource-id, text, or content-desc |
tap_and_wait | Tap element, wait for UI to settle, return new UI tree — single round trip |
long_press | Long press at coordinates (context menus, drag handles) |
double_tap | Double tap at coordinates |
multi_tap | Tap the same coordinates N times with a fixed interval (spam tapping) |
tap_sequence | Multi-step action chain: taps, waits, text input, key presses, swipes in any order |
type_text | Type text into focused input |
press_key | Press key (back, home, enter, tab, delete, menu, etc.) |
swipe | Swipe gesture between coordinates |
scroll_to_element | Scroll until element is visible |
wait_for_element | Wait for element to appear (with timeout) |
Diagnostics
| Tool | Description |
|---|---|
get_logs | Get logcat output, filterable by package, log level, and time |
clear_logs | Clear logcat buffer (call before reproducing a bug for clean output) |
get_device_info | Get model, Android version, API level, screen size, DPI |
App Management
| Tool | Description |
|---|---|
launch_app | Launch app by package name |
install_apk | Install APK file |
get_current_activity | Get foreground app and activity |
pull_file | Pull a file from the device to local filesystem |
adb_shell | Run arbitrary ADB shell command |
Example Workflows
Bug documentation
"Clear the logs, open the settings screen, tap the save button, then show me the logs and a screenshot"
Claude will: clear_logs → launch_app → tap_element → get_logs(package_name="com.example.app", level="E") → screenshot(save_path="./bugs/settings-crash.png")
UI testing
"Navigate through the login flow and verify each screen matches the designs"
Claude will use screenshot + get_ui_tree to see and understand each screen, tap_element/type_text to interact, and its vision capabilities to compare against mockups or descriptions.
Smoke testing
"Install the APK, launch the app, and tap through the main screens to check nothing crashes"
Claude will: install_apk → launch_app → navigate with tap_element → get_logs(level="E") to check for errors after each screen.
Element interaction
"Open Settings, search for 'display', tap the first result, then go back"
Claude will: launch_app(package_name="com.android.settings") → tap_and_wait(by="text", value="Search settings") → type_text("display") → tap_and_wait(by="text", value="Display") → press_key(key="back")
Demos & Prompting Guide
- [DEMOS.md](DEMOS.md) — copy-paste prompt scenarios you can try right now
- [PROMPTING.md](PROMPTING.md) — best practices, performance tips, and common pitfalls
How It Works
The server communicates over stdio using the Model Context Protocol. All device interaction goes through ADB — no modifications to your app are required. Screenshots are captured in memory, compressed, and returned as base64 images that the AI can see and analyze visually.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
MIT - see LICENSE.