mobile-next/mobile-mcp
A TypeScript MCP server for accessibility-first iOS and Android automation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Mobile MCP is a TypeScript bridge between an MCP client and a mobile device. The client’s agent chooses actions; the server exposes device discovery, UI inspection, and input as callable tools. mobilewright is the key automation dependency. The primary feedback loop reads a structured accessibility snapshot and targets controls by element reference when possible. When a control is missing from the snapshot, the client can inspect a screenshot and use coordinates instead.
The npm package exposes mcp-server-mobile; the container starts node lib/index.js. The manifest includes the MCP Node, server, and Express packages alongside Express itself. Stdio is the default transport, while --listen enables stateless Streamable HTTP at /mcp. Transport statelessness removes the need for HTTP session affinity, but it does not make device state stateless: actions against the same device still share its foreground app, screen, and input focus.
Key Capabilities & Differentiators
A single MCP tool surface covers iOS simulators, Android emulators, and physical devices on both platforms. Agents can inspect the foreground app, install or launch builds, target controls by reference or coordinates, type, swipe, and drag. mobile_batch_commands can run an ordered sequence with pauses and return a final element snapshot, reducing client round trips for a known flow. Launch options include locale and platform-specific inputs such as Android intent extras and iOS environment variables.
The server can save screenshots, record video, collect Android logcat or iOS unified logs, and list and retrieve crash reports. Some operations are platform-specific: clearing app data is supported on Android and iOS Simulator, and folding applies to supported virtual foldables. Mobile Next Cloud adds browser-based device-code login and tools to list, reserve, and release physical devices while retaining the same interaction tools.
Trade-offs & Limitations
Mobile MCP is most useful as an exploration layer, not as the release gate itself. Compared with authoring Appium, XCUITest, or Espresso tests up front, an agent can explore a flow against a shared cross-platform interface with less initial scripting. Accessibility snapshots can avoid sending images on every step, but the benefit depends on the app exposing useful labels and controls. Coordinate fallbacks are more sensitive to layout, orientation, and device size. Once a flow is stable, move it into an assertion-based Mobilewright test or an existing test suite rather than relying on repeated agent interpretation.
Self-hosting keeps device setup and access under your control, but does not remove host tooling requirements or the need to isolate concurrent runs targeting the same device. Cloud reservations reduce local device upkeep at the cost of a service dependency. Screenshots, clipboard contents, logs, and persistent app state can contain sensitive data. Use test devices and accounts, and limit who can invoke tools that clear data or uninstall apps.
Hardware & Deployment Guide
For local use, run the npm package with Node.js 20+ and register it as a stdio server. Verify setup with mobile_list_available_devices. On iOS, boot a simulator with Xcode or connect and trust a physical device over USB. On Android, use Platform Tools with a running emulator or a device with USB debugging enabled and authorized. The multi-stage Node.js 22-slim image runs as node and uses ADB_SERVER_SOCKET=tcp:host.docker.internal:5037 to reach the host ADB server; it does not bundle an emulator or an iOS host stack.
For a shared HTTP endpoint, use a Streamable HTTP client, keep the listener private where possible, and configure MOBILEMCP_AUTH plus TLS before exposing it beyond localhost. Without the token, clients can call the server unauthenticated. Recent changes include launch arguments and environment variables in 1.0.19, support for DO_NOT_TRACK=1 and real-parent-directory validation for output paths in 1.0.20, and an upgrade to mobilewright 0.0.73 in 1.0.21 that brings iOS physical-device information reporting without the device agent installed.
mobile_batch_commands runs actions in order, supports delays, and can return a final element snapshot./mcp, with optional Bearer authentication via MOBILEMCP_AUTH./mobile-mirror plugin provides a live, interactive device pane in terminals that support the kitty graphics protocol.Mobile teams that want agents to explore builds on iOS and Android, run cross-platform smoke checks, and turn stable flows into assertion-based CI tests.
You need a standalone test runner with deterministic assertions and isolated fixtures out of the box, or you cannot provide compatible device hosts or cloud devices.
Quick Start & Installation
npx @mobilenext/mobile-mcp@latest installComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mobile-mcp ★ | 11.1k | +157 | TypeScript | Apache-2.0 | A TypeScript MCP server for accessibility-first iOS and Android automation |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/mobile-next/mobile-mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mobile-mcp
How do I connect an MCP client and verify the device backend?
npx -y @mobilenext/mobile-mcp@latest over stdio, then call mobile_list_available_devices to verify connectivity. For a shared deployment, use --listen and point a Streamable HTTP client at /mcp. Legacy HTTP+SSE clients are not compatible with that endpoint.Does Mobile MCP need a GPU, and what should I size the host for?
Can we self-host Mobile MCP commercially?
MOBILEMCP_AUTH, terminate TLS, restrict network access, and consider DO_NOT_TRACK=1 if telemetry is not permitted.When should I use this instead of Appium, XCUITest, or Espresso?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy