open-mobile-mcp
Automates Android devices: capture screenshots, UI hierarchy, OCR, perform taps, swipes, typing, read logs, manage app lifecycle, and more.
Manages Expo dependencies by running npx expo install and provides bundler management for React Native/Expo projects.
Automates iOS devices via Maestro: perception (screenshots, UI hierarchy), interaction (tap, swipe, type), logging, and app lifecycle management.
Manages the Metro JavaScript bundler: start, stop, and restart Metro for React Native app development.
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., "@open-mobile-mcptake a screenshot of the current screen"
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.
Open Mobile MCP Server 📱
An open-source Model Context Protocol (MCP) server for mobile automation. Give any LLM eyes and hands on a real Android or iOS device — screenshot, tap, swipe, read logs, and verify your app without writing test code.
Works with Claude Code, Claude Desktop, Cursor, and any other MCP-compatible client.
Features
Perception: Screenshots, semantic UI hierarchy, OCR, element finder, layout health analysis.
Interaction: Tap, swipe, type, pinch, rotate, long-press, hardware key presses.
Logging: Per-app Android log filtering via PID (pass
deviceId+packageIdto eliminate system noise). Background log watching viawait_for_log.Environment: Metro bundler management, app lifecycle, deep links, screen recording, locale switching.
Text Input: Unicode/Cyrillic/CJK/Emoji support via ADB Keyboard with automatic keyboard restore.
Related MCP server: airi-android
Prerequisites
Node.js (v18+)
ADB installed and in PATH (for Android).
Maestro (required for iOS; fallback for Android input).
Mac/Linux:
curl -Ls "https://get.maestro.mobile.dev" | bashWindows:
powershell -Command "iwr -useb https://get.maestro.mobile.dev | iex"
(Optional) ADB Keyboard — only needed for non-ASCII input (Unicode, Cyrillic, Emoji).
Download from GitHub and install:
adb install ADBKeyboard.apk.
Configuration
macOS / Linux
{
"mcpServers": {
"open-mobile-mcp": {
"command": "npx",
"args": ["open-mobile-mcp"]
}
}
}Windows
{
"mcpServers": {
"open-mobile-mcp": {
"command": "npx",
"args": ["open-mobile-mcp"],
"env": {
"MAESTRO_HOME": "C:\\Users\\YOUR_USER\\.maestro",
"PATH": "C:\\Users\\YOUR_USER\\.maestro\\maestro\\bin;C:\\Windows\\system32;C:\\Windows;..."
}
}
}
}Note: On Windows, explicitly setting
MAESTRO_HOMEandPATHis often required formaestroto be found.
git clone https://github.com/xzaleksey/open-mobile-mcp.git
cd open-mobile-mcp
npm install && npm run buildThen use "command": "node", "args": ["/path/to/open-mobile-mcp/build/index.js"] in your MCP config.
Tools
Perception
Tool | Platform | Description |
| Android/iOS | List connected emulators and simulators |
| Android/iOS | Screenshot (~800px wide). Use |
| Android/iOS | Pruned UI tree as JSON |
| Android/iOS | OCR via Tesseract.js (default |
| Android/iOS | Set default OCR language (e.g. |
| Android/iOS | Find elements by |
| Android/iOS | Poll until element appears (default 20s) |
| Android/iOS | Cropped screenshot of a specific element |
| — | Compare two base64 screenshots, returns diff % |
| Android/iOS | Detect deep nesting and layout performance issues |
Interaction
Tool | Platform | Description |
| Android/iOS | Recommended — find + tap by selector. Note: text matching is exact; emoji prefixes (e.g. |
| Android/iOS | Raw coordinate tap. Must use original device pixels, not screenshot pixels. |
| Android/iOS | Swipe by coordinates |
| Android/iOS | Type text (handles Unicode) |
| Android | Two-finger pinch/zoom |
| Android | Two-finger rotation |
| Android/iOS | Hardware keys: |
Environment & Logs
Tool | Platform | Description |
| Android/iOS | Start/stop/restart Metro. Pass |
| Android/iOS | Manual control over |
| Android/iOS | Recent Metro/Android/iOS logs. Returns |
| Android/iOS | Recent error/exception lines across all sources |
| Android/iOS | Network logcat lines. For iOS, filters the internal log capture buffer (enable via |
| Android/iOS | Block until a log pattern matches. See subagent pattern below. |
| Android/iOS | Launch, stop, install, or uninstall apps |
| Android/iOS | Open a URL or deep link |
| Android/iOS | Reset app to fresh-install state |
| Android | Version, permissions, install date |
| Android/iOS | Screen recording to |
| Android/iOS | Run a Maestro YAML flow |
| — | Run |
| — | Run |
wait_for_log — Background Subagent Pattern
wait_for_log blocks until a pattern appears in the log buffer. Calling it directly in the main agent freezes the conversation. Always delegate it to a background subagent in Claude Code:
// Step 1 — spawn the watcher BEFORE the action that will trigger the log
// (In Claude Code, use Agent tool with run_in_background: true)
// Subagent prompt: "Call wait_for_log with pattern 'route: /home', timeout 60000. Report the result."
// Step 2 — perform the action in the main agent
tap_on_element({ selector: "Home", strategy: "text" });
// Step 3 — main agent continues freely; gets notified when subagent finishesLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/xzaleksey/open-mobile-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server