Mobai

Developer tools

AI-powered mobile device automation for Android and iOS devices, emulators, and simulators.

Your AI app calls the Mobai MCP server, which does the developer tools work and sends the result back to the chat.

About Mobai

Mobai is a community MCP server from MobAI-App, filed in our directory under developer tools. AI-powered mobile device automation for Android and iOS devices, emulators, and simulators.

Mobai runs on your own machine: your AI app starts it with the command npx -y mobai-mcp@1.2.1 and talks to it over standard input and output.

Mobai is listed in the official MCP registry as io.github.MobAI-App/mobai-mcp, version 1.2.1.

At a glance

Publisher
MobAI-App (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mobai-mcp
Written in
TypeScript
License
Apache-2.0
GitHub stars
256
Official MCP registry
io.github.MobAI-App/mobai-mcp

How to set up Mobai

  1. Install Node.js on the machine that runs your AI app, because Mobai starts with npx and downloads its package on first run.
  2. Check the Mobai README for keys or settings; the registry lists none that Mobai requires.
  3. Add Mobai to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mobai tools to confirm the connection.
  5. Run one read-only task with Mobai first, and keep your app asking before each tool call until the results look right.

Mobai compared with similar servers

  • PerformanceStudio by erikdarlingdata has fewer GitHub stars than Mobai (256 against 256); both are community servers, and both run locally.
  • Suppr by WildDataX has more GitHub stars than Mobai (257 against 256); both are community servers, and both run locally.
  • Phone by hao-cyber has fewer GitHub stars than Mobai (255 against 256); both are community servers, and both run locally.

Before you connect Mobai

  • Give Mobai its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mobai tool call until you trust what it does with them.
  • Treat text that Mobai fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mobai on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mobai

How marketing and sales teams put Mobai to work, by company size. Pick the size closest to yours and start Mobai on one use case.

Small business

  • A small business with a developer can use Mobai to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Mobai to explain and fix a marketing site issue without context switching between tools.
  • Mobai runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Mobai to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Mobai to keep scripts and automations documented and versioned as they change.
  • Start Mobai on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Mobai with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Mobai so web and marketing engineering share one reviewed way of working with AI.
  • Mobai is a community server, so have security review the code and pin a version before Mobai touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mobai README

From MobAI-App/mobai-mcp on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

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.

Questions about Mobai

What is the Mobai MCP server?

AI-powered mobile device automation for Android and iOS devices, emulators, and simulators. Mobai is maintained by MobAI-App on GitHub at MobAI-App/mobai-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mobai MCP server?

Add Mobai to your AI app's MCP config with the command npx -y mobai-mcp@1.2.1. In Claude Code, run claude mcp add --transport stdio mobai -- npx -y mobai-mcp@1.2.1. To run Mobai this way you need Node.js installed.

Does Mobai need an API key?

The registry lists no required keys for Mobai. Check the Mobai README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mobai an official MCP server?

No. Mobai is a community server maintained by MobAI-App. Community servers can be excellent; read the code and the open issues before you give Mobai access to company data.

What license is Mobai under?

Mobai is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Mobai; the service it connects to has its own terms.