
mobile-mcp
MCP server that gives AI agents hands on iOS and Android devices
Replaces Kobiton

Who it's for
Developers using Claude Code, Cursor, or Copilot to build mobile apps can give their agent hands on a device in the same session. The agent builds, installs, and taps through the app to verify a feature works, creating a tighter feedback loop than switching between IDE and simulator manually.
Your mobile project targets web views or React Native's JS layer exclusively. Those environments have better-suited browser-based automation tools that do not require native device access through MCP.
Agents can explore apps, identify UI paths, capture accessibility snapshots, and generate reproducible test scripts via Mobilewright (the Playwright-compatible API companion). Exploratory agent sessions produce CI-ready test definitions without requiring test code to be written in advance.
Your test suite already runs in Espresso or XCUITest and you are not moving to agent-driven test generation. Adding an MCP layer to an existing conventional framework adds complexity without benefit.
Mobile MCP's Streamable HTTP mode lets CI runners connect an agent to a device server running in a separate container or on Mobile Next Cloud. Pipelines can provision a real device, run an agent verification session, and release the device without managing any hardware directly.
Your CI pipeline uses Fastlane, Detox, or another conventional mobile CI framework without AI agents in the loop. Mobile MCP adds value specifically when an AI agent is driving the verification step.
The mobile_batch_commands tool chains multiple device actions (launch app, navigate, fill form, submit, screenshot) in a single MCP call. Agent-expressed workflows replace upfront Appium session setup and per-platform script maintenance, with the accessibility tree providing deterministic element targeting.
You need scheduled headless automation without an AI agent in the loop. Mobile MCP requires an MCP-compatible agent as the caller and is not a standalone scripting framework.
The problem
AI agents can plan, write code, and reason about app behavior, but they have no standard way to interact with a running mobile app. Testing a change on a device requires switching contexts: write in the agent, then manually open a simulator, build, install, and tap through the app to verify. This context switch means agents cannot close the loop on mobile development without human intervention at every verification step. The existing tooling options require significant upfront investment. Platform-specific frameworks like XCUITest and Espresso require separate test code written in the target platform's language, knowledge of accessibility identifiers, and build pipeline integration. Commercial mobile testing platforms add subscription costs and API key management. Neither path gives an AI agent direct device access in a standard, model-agnostic way.
How it works
Reads UI elements from the native iOS and Android accessibility tree rather than parsing screenshots. Agents get structured element data with properties and coordinates, reducing token usage and making interactions deterministic across devices with different screen sizes.
The same MCP tools work across iOS simulators (via Xcode xcrun simctl), iOS real devices (USB), Android emulators (ADB), and Android real devices (ADB). No per-platform code paths: the agent uses identical tool calls regardless of device type.
Exposes 30+ MCP tools covering device management (orientation, GPS, clipboard), app lifecycle (install, launch, terminate), screen interaction (tap, double-tap, long press, swipe), input (type text, press hardware buttons, open URLs), and diagnostics (logs, crash reports, screen recording).
The mobile_batch_commands tool runs multiple actions in one MCP call: click, type, click, and optionally list screen elements at the end. Cuts round-trip latency for multi-step interactions like login flows, form submissions, or checkout sequences where the agent already knows the steps.
Agents can reserve real iOS and Android devices from Mobile Next Cloud through the same MCP tools used for local devices. No hardware to manage; billed per device-minute. Supports parallel device sessions for CI/CD workflows where multiple configurations need testing simultaneously.
Start Mobile MCP in Streamable HTTP mode with the listen flag to accept connections over a network instead of stdio. Useful for CI environments where the agent and the device server run on different hosts. Supports Bearer token authorization via the MOBILEMCP_AUTH environment variable.
Features
- Accessibility-tree interaction
- Cross-platform device support
- Full device control surface
- Batch command execution
- Cloud device access
- HTTP server mode for remote deployments
How to install
Mobile MCP is an npm package; install it globally or run it on demand as an MCP server.
npm install -g @mobilenext/mobile-mcpRecommended for this setup
Strengths
- Apache-2.0 license with no usage restrictions: The server is Apache-2.0 licensed, so you can use it commercially, modify it, and distribute it without licensing fees. Unlike Kobiton and other commercial mobile testing platforms with subscription pricing and locked APIs, there are no access costs when running against local devices.
- No platform-specific knowledge required: The MCP abstraction layer means an agent that knows how to call generic tool APIs can automate iOS and Android without learning XCUITest, Espresso, or UIAutomator. The README states this explicitly: no per-platform glue, describe the goal, the agent executes it.
- Works with any MCP-compatible agent: Confirmed working with Claude Code, Cursor, Copilot, Gemini CLI, Goose, Windsurf, Cline, Codex, Kiro, and others. Any new agent that speaks MCP works without changes to Mobile MCP itself. Teams are not locked into one AI vendor's tooling.
- Active development with 7,354 GitHub stars: Created in March 2025, the repo reached 7,354 stars and 641 forks with its last push in September 2026. Consistent recent activity reduces the adoption risk of a tool that stalls shortly after discovery.
Trade-offs
- Local device toolchain required: iOS simulation requires Xcode command-line tools and a booted simulator. Android requires the Android SDK Platform Tools and ADB with a running emulator or a USB-connected device with debug mode enabled. Node.js v20 or later is a dependency. CI pipelines without these toolchains need containerized environments or Mobile Next Cloud.
- Cloud devices add per-minute costs: Running against real devices in the cloud requires Mobile Next Cloud, which charges for device-minutes. Local simulators and emulators are free but limited to the OS versions installed on the development machine. Teams needing a broad matrix of real iOS and Android versions have no free cloud option within this ecosystem.
Tech stack
FAQ
Yes. The README lists Claude Code as a confirmed integration. After adding the MCP server to your Claude Code config, Claude can call MCP tools to list devices, tap elements, type text, record the screen, and chain multiple actions on any connected iOS or Android device. The standard config runs the server on demand via npx.
Both. iOS real devices connect via USB with the device trusted in Xcode. Android real devices connect via ADB with USB debugging enabled. Simulators and emulators work as well. Mobile Next Cloud adds cloud-hosted real devices accessible through the same MCP tools, with no hardware to manage on your end.
Apache-2.0. You can use it commercially, modify it, and distribute it without licensing fees or restrictions. The companion Mobile CLI tool ships under the Functional Source License (FSL), but that is a separate product; the MCP server in this repository is Apache-2.0 throughout.
Yes. Mobile Next Cloud provides real device sessions that agents access through the same MCP tools used for local devices. Start the server in Streamable HTTP mode to let CI agents connect from a separate container or remote host. Reserve a device, run the agent verification session, release it, and pay only for the minutes used.
Mobile MCP is an MCP protocol layer designed for AI agents, not a standalone test framework. Appium exposes a WebDriver API that test scripts call directly; Mobile MCP exposes MCP tools that LLMs and AI agents call through an MCP client. If your workflow involves an AI agent doing the testing rather than a pre-written test script, Mobile MCP fits. If you have an existing Appium test suite without an AI agent in the loop, Appium is the simpler path.