Claude Mobile
Enables mobile device automation for Android (via ADB) and iOS Simulator (via simctl), allowing you to control devices with natural language through screenshots, UI interactions, text input, and app management.
README
Claude Mobile
MCP server for mobile device automation — Android (via ADB) and iOS Simulator (via simctl). Like Claude in Chrome but for mobile devices.
Control your Android phone, emulator, or iOS Simulator with natural language through Claude.
Features
- Unified API — Same commands work for both Android and iOS
- Smart screenshots — Auto-compressed for optimal LLM processing (no more oversized images!)
- Device logs — Read logcat/system logs with filters for debugging
- UI interactions — Tap, long press, swipe by coordinates or element text
- Text input — Type into focused fields
- App control — Launch, stop, and install apps
- Platform selection — Explicitly target Android or iOS, or auto-detect
Installation
Claude Code CLI (recommended)
claude mcp add --transport stdio mobile -- npx -y claude-in-mobile
To add globally (available in all projects):
claude mcp add --scope user --transport stdio mobile -- npx -y claude-in-android
From npm
npx claude-in-mobile
From source
git clone https://github.com/AlexGladkov/claude-in-mobile.git
cd claude-in-mobile
npm install
npm run build
Manual configuration
Add to your Claude Code settings (~/.claude.json or project settings):
{
"mcpServers": {
"mobile": {
"command": "npx",
"args": ["-y", "claude-in-mobile"]
}
}
}
Windows
claude mcp add --transport stdio mobile -- cmd /c npx -y claude-in-android
Requirements
Android
- ADB installed and in PATH
- Connected Android device (USB debugging enabled) or emulator
iOS
- macOS with Xcode installed
- iOS Simulator (no physical device support yet)
Available Tools
| Tool | Android | iOS | Description |
|---|---|---|---|
list_devices |
✅ | ✅ | List all connected devices |
set_device |
✅ | ✅ | Select active device |
screenshot |
✅ | ✅ | Take screenshot |
tap |
✅ | ✅ | Tap at coordinates or by text |
long_press |
✅ | ✅ | Long press gesture |
swipe |
✅ | ✅ | Swipe in direction or coordinates |
input_text |
✅ | ✅ | Type text |
press_key |
✅ | ✅ | Press hardware buttons |
launch_app |
✅ | ✅ | Launch app |
stop_app |
✅ | ✅ | Stop app |
install_app |
✅ | ✅ | Install APK/.app |
get_ui |
✅ | ⚠️ | Get UI hierarchy (limited on iOS) |
find_element |
✅ | ❌ | Find elements by text/id |
get_current_activity |
✅ | ❌ | Get foreground activity |
open_url |
✅ | ✅ | Open URL in browser |
shell |
✅ | ✅ | Run shell command |
wait |
✅ | ✅ | Wait for duration |
get_logs |
✅ | ✅ | Get device logs (logcat/system log) |
clear_logs |
✅ | ⚠️ | Clear log buffer |
get_system_info |
✅ | ❌ | Battery, memory info |
Usage Examples
Just talk to Claude naturally:
"Show me all connected devices"
"Take a screenshot of the Android emulator"
"Take a screenshot on iOS"
"Tap on Settings"
"Swipe down to scroll"
"Type 'hello world' in the search field"
"Press the back button on Android"
"Open Safari on iOS"
"Switch to iOS simulator"
"Run the app on both platforms"
Platform Selection
You can explicitly specify the platform:
"Screenshot on android" → Uses Android device
"Screenshot on ios" → Uses iOS simulator
"Screenshot" → Uses last active device
Or set the active device:
"Use the iPhone 15 simulator"
"Switch to the Android emulator"
How It Works
┌─────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Claude │────▶│ Claude Mobile │────▶│ Android (ADB) │
│ │ │ MCP Server │ └─────────────────┘
│ │ │ │ ┌─────────────────┐
│ │ │ │────▶│ iOS (simctl) │
└─────────────┘ └──────────────────┘ └─────────────────┘
- Claude sends commands through MCP protocol
- Server routes to appropriate platform (ADB or simctl)
- Commands execute on your device
- Results (screenshots, UI data) return to Claude
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。