mobai-mcp MCP Server
AI-powered mobile device automation for Android and iOS devices, emulators, and simulators
mobai-mcp scores 74 (Good), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It declares 16 tools. Filed under Uncategorized. GitHub shows 256 stars. Package registries report about 709 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
74 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade A
89/100 for listing completeness. Lost points: 1 of 16 tools barely described, short summary, no docs link.
How quality is graded
Where the 74 comes from
22 + 20 + 8 + 10 + 4 + 10 = 74. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 8 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mobai-app-mobai-mcp": { "command": "npx", "args": [ "-y", "mobai-mcp@1.2.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools16Tool docs quality grade C
All capabilitiesclaim_devicetoolClaim exclusive use of a device for this session (usually optional: acting on an unclaimed device auto-claims it)
debug_apptoolLaunch an app in debug mode and write stdout/stderr to a log file
execute_dsltoolPrimary tool. Execute a batch of DSL steps: tap, type, swipe, observe, assertions, web automation, metrics, screen recording, and more.
get_devicetoolGet details about a specific device
get_screenshottoolFast, low-quality screenshot for LLM visual analysis (may be downscaled; response includes scale factor)
install_apptoolInstall an .apk or .ipa from a local file path
list_appstoolList installed apps on the device
list_devicestoolList all connected Android and iOS devices
release_devicetoolRelease one or all device leases held by this session
save_screenshottoolFull-quality PNG to disk for reporting, debugging, or sharing
start_bridgetoolStart the automation bridge on a device (required before interaction)
stop_bridgetoolStop the automation bridge
About
MobAI MCP Server
MCP (Model Context Protocol) server for MobAI — AI-powered mobile device automation. Lets AI assistants (Claude Code, Cursor, Windsurf, Cline, and other MCP-compatible tools) control Android and iOS devices, emulators, and simulators via a single DSL-first interface.
How it works
All device interaction is batched through one primary tool: execute_dsl. Instead of exposing dozens of fine-grained tools (tap, swipe, type…), the server accepts a JSON script describing a sequence of actions with predicates, assertions, waits, and conditional branches. This keeps round-trips low and encodes retry/failure strategies server-side.
A small set of companion tools handles device discovery, screenshots, app management, and running .mob test files.
Prerequisites
- Node.js 18+
- MobAI desktop app running locally (HTTP API on
127.0.0.1:8686) - A connected Android or iOS device, emulator, or simulator
Installation
Claude Code
claude mcp add mobai -- npx -y mobai-mcp
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"mobai": {
"command": "npx",
"args": ["-y", "mobai-mcp"]
}
}
}
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"mobai": {
"command": "npx",
"args": ["-y", "mobai-mcp"]
}
}
}
Windsurf / Cline / other MCP clients
The server speaks stdio — use your client's generic MCP configuration:
{
"command": "npx",
"args": ["-y", "mobai-mcp"]
}
Tools
Device management
| Tool | Description |
|---|---|
list_devices | List all connected Android and iOS devices |
get_device | Get details about a specific device |
start_bridge | Start the automation bridge on a device (required before interaction) |
stop_bridge | Stop the automation bridge |
claim_device | Claim exclusive use of a device for this session (usually optional: acting on an unclaimed device auto-claims it) |
release_device | Release one or all device leases held by this session |
Screenshots
| Tool | Description |
|---|---|
get_screenshot | Fast, low-quality screenshot for LLM visual analysis (may be downscaled; response includes scale factor) |
save_screenshot | Full-quality PNG to disk for reporting, debugging, or sharing |
Apps
| Tool | Description |
|---|---|
list_apps | List installed apps on the device |
install_app | Install an .apk or .ipa from a local file path |
uninstall_app | Uninstall an app by bundle ID / package name |
debug_app | Launch an app in debug mode and write stdout/stderr to a log file |
Automation
| Tool | Description |
|---|---|
execute_dsl | Primary tool. Execute a batch of DSL steps: tap, type, swipe, observe, assertions, web automation, metrics, screen recording, and more. |
Test management
Tests are .mob files on disk inside project directories. You read, write, and edit them directly using your assistant's filesystem tools — MobAI watches for changes and updates the UI live. MCP is only needed to discover projects and run tests.
| Tool | Description |
|---|---|
test_get_active | Get the active test project directory and its .mob cases |
test_list_projects | List all known test project directories with their .mob cases |
test_run | Run a .mob test case on a device (project_dir + case_path + device_id, optional params for ${name} substitution) |
Resources
Read these before attempting any device interaction — they describe the DSL schema, action set, predicates, failure strategies, and .mob syntax.
| URI | Purpose |
|---|---|
mobai://reference/device-automation | How to control devices — guide, all DSL actions, predicates, and failure strategies |
mobai://reference/testing | Testing workflow, rules, error fixes, and .mob script syntax |
Example
Open the iOS Settings app, navigate to Wi-Fi, and verify the toggle exists:
{
"version": "0.2",
"steps": [
{"action": "open_app", "bundle_id": "com.apple.Preferences"},
{"action": "wait_for", "predicate": {"text": "Settings"}, "timeout_ms": 3000},
{"action": "tap", "predicate": {"text_contains": "Wi-Fi"}},
{"action": "wait_for", "predicate": {"type": "switch"}, "timeout_ms": 3000},
{"action": "assert_exists", "predicate": {"type": "switch"}},
{"action": "observe", "include": ["ui_tree"]}
]
}
Pass this as the commands argument (a JSON string) to execute_dsl along with a device_id from list_devices.
Troubleshooting
"Connection refused" / "Could not reach the MobAI desktop app" — Make sure the MobAI desktop app is installed and running, and the API is reachable at http://127.0.0.1:8686. If you don't have it yet, download and install it from https://mobai.run/download.
"Bridge not running" — Call start_bridge first. The iOS bridge can take up to a minute to come up.
Screenshots not visible — get_screenshot saves to /tmp/mobai/screenshots/ by default and returns the file path. Use your assistant's file-reading capability to view them. DSL observe screenshots are extracted from the response and saved to the same directory.
Development
git clone https://github.com/MobAI-App/mobai-mcp.git
cd mobai-mcp
npm install
npm run build
node dist/index.js
License
Apache 2.0 — see LICENSE.
Frequently asked questions
What is mobai-mcp MCP Server?
AI-powered mobile device automation for Android and iOS devices, emulators, and simulators
How do I install mobai-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mobai-mcp MCP Server runs locally from the npm package mobai-mcp with the command npx -y mobai-mcp@1.2.1.
Is mobai-mcp MCP Server free and open source?
Yes. mobai-mcp MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mobai-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mobai-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mobai-mcp MCP Server provide?
mobai-mcp MCP Server provides 16 tools, including claim_device, debug_app, execute_dsl, and get_device. See the full tool list for descriptions and parameters.
How is mobai-mcp MCP Server's trust score calculated?
mobai-mcp MCP Server scores 74 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.