# MobAI MCP Server

> Automate Android and iOS devices in batches with a DSL.

- **URL**: https://followmcp.com/en/servers/mobai-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 256
- **FMRS Score**: 50/100 (Grade D)
- **Source**: https://github.com/MobAI-App/mobai-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+
- **Auth**: No credential needed

## Overview
MobAI MCP Server connects over stdio to the MobAI desktop app so MCP-compatible AI assistants can control Android and iOS devices, emulators, and simulators. Its primary interaction tool, execute_dsl, runs scripts with actions, conditions, assertions, and waits; companion tools discover devices, capture screenshots, manage apps, and run .mob tests. It requires Node.js 18 or later, the MobAI desktop app running locally (HTTP API at 127.0.0.1:8686), and a connected device.

## Best for
- Developers or testers with the MobAI desktop app and a connected mobile device.
- People who want to drive mobile device automation through batched scripts from an MCP client.

## Not for
- Users without the MobAI desktop app or a connectable Android/iOS device, emulator, or simulator.
- Cloud device farm workflows or automation that does not use the local MobAI HTTP API; the source does not document support for these.

## Required permissions
- Requires access to the local MobAI desktop app HTTP API at 127.0.0.1:8686.
- Needs to interact with apps and UI on connected devices; installing or uninstalling apps requires a local APK or IPA path.
- Screenshots default to /tmp/mobai/screenshots/; saving screenshots and debug logs requires corresponding local file write access.

## Risks
- Automation scripts perform actions on the selected device and may change app or device state.
- install_app and uninstall_app install or remove apps on a device; confirm the target device and file before using them.
- Screenshots, debug output, and test results may contain device or app information; handle generated files carefully.

## Client config (JSON)
```json
{"command":"npx","args":["-y","mobai-mcp"]}
```

## Tools (16)
- `list_devices`: List connected Android and iOS devices.
- `get_device`: Get details about a specific device.
- `start_bridge`: Start the device automation bridge; it is required before interaction.
- `stop_bridge`: Stop the device automation bridge.
- `claim_device`: Claim exclusive use of a device for the current session; usually optional, since acting on an unclaimed device auto-claims it.
- `release_device`: Release one or all device leases held by the current session.
- `get_screenshot`: Get a fast, low-quality screenshot for model visual analysis; it may be downscaled, and the response includes a scale factor.
- `save_screenshot`: Save a full-quality PNG screenshot to disk.
- `list_apps`: List apps installed on the device.
- `install_app`: Install an APK or IPA from a local file path.
- `uninstall_app`: Uninstall an app by bundle ID or package name.
- `debug_app`: Launch an app in debug mode and write stdout and stderr to a log file.
- `execute_dsl`: Primary automation tool; execute batched DSL steps such as tap, type, swipe, observe, assertions, web automation, metrics, and screen recording.
- `test_get_active`: Get the active test project directory and its .mob cases.
- `test_list_projects`: List known test project directories and their .mob cases.
- `test_run`: Run a .mob test case on a device; requires a project directory, case path, and device ID, with optional parameters for ${name} substitution.
