Basic information

Runtime
TypeScript
Version
1.2.1
Category
License
Apache-2.0
Transports
stdio
Author
mobai-app
Submitted by
Community
Quality
25
Stars
254

About Mobai Mcp Server

MCP (Model Context Protocol) server for MobAI (https://mobai.run) - AI-powered mobile device automation. This server enables AI coding assistants like Cursor, Windsurf, Cline, and other MCP-compatible tools to control Android and iOS devices, emulators, and simulators.

Mobai Mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by MobAI-App. It exposes 22 tools, including list_devices, get_device, start_bridge, stop_bridge and more. Supported transport: stdio. Runtime: TypeScript. License: Apache-2.0. The repository has 254 GitHub stars. Source code is hosted on github.com. Related topics: adnroid, ios, mobile-automation, qa, test automation.

Setup

{
    "mcpServers": {
        "mobai": {
            "command": "npx",
            "args": [
                "-y",
                "mobai-mcp"
            ]
        }
    }
}

Mobai Mcp config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mobai": {
            "command": "npx",
            "args": [
                "-y",
                "mobai-mcp"
            ]
        }
    }
}

Mobai Mcp tools

  • list_devices — List all connected Android and iOS devices, emulators, and simulators
    (no parameters)
  • get_device — Get information about a specific device
    device_id:string*
  • start_bridge — Start the on-device bridge (accessibility service on Android, WebDriverAgent on iOS). Required before automation.
    device_id:string*
  • stop_bridge — Stop the on-device bridge
    device_id:string*
  • get_screenshot — Capture a screenshot from the device. Returns the file path to the saved PNG.
    device_id:string*
  • get_ui_tree — Get the UI accessibility tree showing all visible elements with indices for tapping
    device_id:string*, include_keyboard:boolean, only_visible:boolean, verbose:boolean
  • tap — Tap an element by index (from UI tree) or coordinates
    device_id:string*, index:number, x:number, y:number
  • type_text — Type text on the device (tap input field first to focus)
    device_id:string*, text:string*
  • swipe — Perform a swipe gesture
    device_id:string*, duration_ms:number, from_x:number*, from_y:number*, to_x:number*, to_y:number*
  • go_home — Navigate to device home screen
    device_id:string*
  • launch_app — Launch an application by bundle ID
    bundle_id:string*, device_id:string*
  • list_apps — List installed applications on the device
    device_id:string*
  • get_ocr — Perform OCR text recognition on the current screen (iOS only). Returns detected text with screen coordinates for tapping (already adjusted for tapping).
    device_id:string*
  • execute_dsl — Execute a batch of automation steps using the DSL (Domain Specific Language). This is the PREFERRED method for complex automation as it's more reliable than sequential API calls. DSL supports: observe, tap, type, toggle, swipe, scroll, open_app, navigate, wait_for, assert_*, if_exists, delay, execute_js (web) Example DSL script: { "version": "0.2", "steps": [ {"action": "observe", "context": "native", "include": ["ui_tree"]}, {"action": "tap", "predicate": {"text_contains": "Settings"}}, {"action": "delay", "duration_ms": 500}, {"action": "observe", "context": "native", "include": ["ui_tree"]} ], "on_fail": {"strategy": "retry", "max_retries": 2} }
    device_id:string*, script:object*
  • run_agent — Run an AI agent to perform a task autonomously. The agent will observe the screen, make decisions, and execute actions to complete the task.
    agent_type:string, device_id:string*, task:string*, use_vision:boolean
  • web_list_pages — List available web pages (browser tabs and WebViews) for web automation
    device_id:string*
  • web_navigate — Navigate to a URL in the browser
    device_id:string*, url:string*
  • web_get_dom — Get the DOM tree of the current web page
    device_id:string*
  • web_click — Click an element in the web page using CSS selector
    device_id:string*, selector:string*
  • web_type — Type text into a web element using CSS selector
    device_id:string*, selector:string*, text:string*
  • web_execute_js — Execute JavaScript in the web page context
    device_id:string*, script:string*
  • http_request — Make a raw HTTP request to the MobAI API. Use this for advanced operations not covered by other tools. Base URL: http://127.0.0.1:8686/api/v1 Common endpoints: - GET /devices - List devices - GET /devices/{id}/screenshot - Take screenshot - GET /devices/{id}/ui-tree - Get UI tree - POST /devices/{id}/dsl/execute - Execute DSL script - POST /devices/{id}/agent/run - Run AI agent
    body:string, method:string*, timeout_ms:number, url:string*

Overview

What is Mobai Mcp?

MobAI MCP is a Model Context Protocol server for MobAI, an AI-powered mobile device automation platform. It enables AI coding assistants like Cursor, Windsurf, Cline, and other MCP-compatible tools to control Android and iOS devices, emulators, and simulators.

How to use Mobai Mcp?

Run the server via npx -y mobai-mcp and configure it as an MCP server in your AI tool's settings. For example, in Cursor add to .cursor/mcp.json with the command and args shown above. The server uses stdio transport.

Key features of Mobai Mcp

  • Device Control: List, connect, and manage Android/iOS devices
  • UI Automation: Tap, type, swipe, and interact with native apps
  • Web Automation: Control Safari/Chrome and WebViews with CSS selectors
  • DSL Batch Execution: Execute multiple automation steps efficiently
  • AI Agent: Run autonomous agents to complete complex tasks
  • Screenshot Capture: Capture and save device screenshots

Use cases of Mobai Mcp

  • List connected devices and capture screenshots for visual inspection
  • Automate native apps (e.g., open Settings and navigate to General)
  • Run autonomous AI agents to complete multi-step tasks like enabling Wi-Fi
  • Perform web automation in Safari/Chrome and WebViews

Frequently asked questions

1 What are the prerequisites?

Node.js 18+ and the MobAI desktop app running locally on port 8686 with a connected Android or iOS device (or emulator/simulator).

2 How does this compare to the Claude Code Plugin?

The MCP server provides the same functionality as the Claude Code Plugin but works with any MCP-compatible AI client, offering named tools and resources instead of generic HTTP requests and markdown skills.

3 What should I do if I get a "Connection refused" error?

Ensure the MobAI desktop app is running and the API is available at http://127.0.0.1:8686.

4 What should I do if I get a "Bridge not running" error?

Use the start_bridge tool first before automation. On iOS, the bridge may take up to 60 seconds to start.

5 Where are screenshots saved?

Screenshots are saved to /tmp/mobai/screenshots/. Use your AI tool’s file reading capability to view them.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬