Mobilerun logo

Mobilerun

Automates real Android and iOS devices with UI inspection, screenshots, gestures, text input, and multi-step workflows.

Install Mobilerun

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mobilerun": {
      "command": "uvx",
      "args": [
        "mobilerun"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

mobilerun MCP server gives agents control over real Android and iOS devices for mobile testing, QA, and task automation. It combines accessibility trees with screenshots so an agent can inspect UI state, understand what is on screen, tap, swipe, type, launch apps, and read device state. Use it for local device workflows driven through natural-language tasks, with direct execution or reasoning mode for longer sequences. The underlying framework also supports CLI, Python, Docker, custom tools, structured output, and execution tracing.

Use cases

  • Automate mobile app test flows on Android and iOS
  • Inspect the current screen and device state
  • Run multi-step tasks with natural-language commands
  • Build Python workflows with custom mobile tools
  • Debug agent execution with screenshots and traces

Key features

  • Android and iOS device control
  • Accessibility-tree and screenshot inspection
  • Tap, swipe, text input, and app launching
  • Vision and reasoning modes
  • CLI, Python, Docker, and structured output support
  • Execution tracing with logs and telemetry

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

38/38 checks healthy over the last 56d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · mobilerun (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9kStargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Mobilerun works

What mobilerun does

mobilerun connects agent-driven workflows to Android and iOS devices, including Android phones, Android emulators, iPhones, and iOS simulators. It is intended for mobile app testing, QA, and automating tasks on devices under local control. Hosted Android and iOS devices are also supported through Mobilerun Cloud, while the framework runs the agent on your own machine.

Agents can inspect accessibility information, interpret screenshots, launch apps, enter text, perform taps and swipes, and query device state. Workflows can return structured data and can be extended with application-specific guidance, credentials, and custom tools.

How it works

The framework uses a Portal-based runtime for local device control. Android devices connect through ADB or the Mobilerun Portal app. iOS real-device control uses mobilerun-ios over USB, and iOS simulators use the iOS Portal app. The runtime combines UI trees with screenshots when visual understanding is enabled.

Tasks can run directly from natural-language commands or through reasoning mode for more complex, multi-step plans. Vision mode sends screenshots to the model, while vision-only mode supports screenshot-based control for applications that do not expose useful accessibility information. Execution can be inspected with detailed logs, saved trajectories, Arize Phoenix, or Langfuse.

Setup and configuration

Install the package with uv, either as a command-line tool or as a Python dependency:

bash
uv tool install mobilerun
uv pip install mobilerun

Python versions from 3.11 through 3.13 are supported; Python 3.14 is not currently supported. The optional anthropic extra adds Anthropic provider support.

For an Android device, install ADB, enable Developer options and USB debugging, then run mobilerun setup to install the Portal app and prepare local control. Use mobilerun ping to check the connection. Run mobilerun configure to select an LLM provider, authentication method, and model before starting tasks.

A basic command looks like this:

bash
mobilerun run "Open the settings app and tell me the Android version"

Provider credentials can be supplied through variables such as OPENAI_API_KEY, GOOGLE_API_KEY, ANTHROPIC_API_KEY, XAI_API_KEY, and MINIMAX_API_KEY.

Tools and capabilities

  • Inspect accessibility trees and screenshots.
  • Tap, swipe, type text, launch apps, and read device state.
  • Run direct tasks or reasoning-based multi-step automation.
  • Use vision and screenshot-only control modes.
  • Build workflows with the CLI or Python API.
  • Add custom tools, app cards, credentials, and structured output.
  • Run the framework in Docker for repeatable environments.
  • Trace execution with logs, saved trajectories, Arize Phoenix, or Langfuse.

Limitations and notes

Local Android automation depends on ADB and a device configured for USB debugging. iOS requires the appropriate mobilerun-ios or iOS Portal setup. The framework and Mobilerun Cloud serve different operating models: the framework runs agents locally, while Cloud provides managed infrastructure, hosted devices, dashboards, APIs, SDKs, and device workflows. Choose Cloud when managed phones or cloud APIs are required without running the agent locally.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mobilerun

mobilerun is an MCP server that connects AI agents to real Android and iOS devices, including emulators and simulators. Its main tools support UI inspection, screenshot understanding, taps, swipes, text input, app launching, device-state checks, and multi-step mobile workflows through direct or reasoning-based execution.

Install mobilerun with `uv tool install mobilerun` for CLI use or `uv pip install mobilerun` for Python integration. Use Python 3.11 through 3.13, then run `mobilerun setup`, `mobilerun ping`, and `mobilerun configure` to prepare a local device and LLM provider.

Connect Android through ADB or the Mobilerun Portal app. Install ADB, enable Developer options and USB debugging, run `mobilerun setup` to install and prepare the Portal app, and verify the connection with `mobilerun ping`.

Yes, mobilerun supports iOS real devices and simulators. Real iPhones use `mobilerun-ios` over USB, while simulators use the iOS Portal app.

Yes, mobilerun supports screenshot-only control with `--vision-only`. Vision mode can send screenshots to the LLM, which is useful for applications that do not provide usable accessibility-tree information.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMobilerun AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mobilerun?style=directory)](https://allmcps.com/mcp/mobilerun)
HTML Embed
<a href="https://allmcps.com/mcp/mobilerun"><img src="https://allmcps.com/api/badge/mobilerun?style=directory" alt="Mobilerun on AllMCPs" /></a>