cd /news/ai-agents/mobile-mcp-servers-set-up-appium-mcp… · home › topics › ai-agents › article
[ARTICLE · art-162624] src=momentic.ai ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Mobile MCP servers: set up Appium MCP, Maestro MCP and mobile-mcp

Three local stdio MCP servers — mobile-mcp (installed via `npx -y @mobilenext/mobile-mcp@latest`), Appium MCP (`npx -y appium-mcp@latest`) and Maestro MCP (`maestro mcp`, requiring the Maestro CLI) — let coding agents inspect and drive iOS and Android apps, but an MCP session alone leaves no test that runs in CI, according to the setup guide. mobile-mcp reads the native accessibility tree with screenshots and coordinates as fallback and leaves no test behind, Appium MCP reuses existing Appium drivers and can generate Java/TestNG test code, and Maestro MCP writes, runs and debugs flows that persist as YAML files. For versioned tests, the guide points to Momentic's MCP server, installed with `npx momentic-mobile skills --yes`, to write and run YAML tests.

key takeaway

mobile-mcp reads the native accessibility tree before falling back to screenshots and coordinate taps, while Appium MCP and Maestro MCP only leave a persistent test behind if the agent saves generated Java/TestNG code or a Maestro YAML flow.

by read6 min views52 publishedOct 31, 2026
Mobile MCP servers: set up Appium MCP, Maestro MCP and mobile-mcp
Image: Momentic (auto-discovered)

TL;DR #

  • mobile-mcp lets a coding agent inspect and control a mobile app during a live session. Reach for it when you need to explore the UI.
  • Appium MCP gives the agent access through an Appium session. Reach for it when your mobile setup already uses Appium drivers.
  • Maestro MCP lets the agent work with Maestro’s mobile testing tools. Reach for it when you already use Maestro flows.
  • All three can help an agent inspect and drive an app, but an MCP session alone does not leave behind a test that runs in CI.
  • For a versioned test, use Momentic’s MCP server to write and run YAML tests. Install the mobile skills with npx momentic-mobile skills --yes .

Appium MCP, Maestro MCP and mobile-mcp compared #

All three run as local stdio servers that your coding agent starts with one command. They differ in what they drive and what they leave behind.

Server Install Platforms and targets What the agent works with Leaves a test behind?
<a href="https://github.com/mobile-next/mobile-mcp">mobile-mcp</a> npx -y @mobilenext/mobile-mcp@latest iOS and Android: simulators, emulators and real devices The native accessibility tree, with screenshots and coordinates as a fallback No. The session lives in the agent's conversation
<a href="https://github.com/appium/appium-mcp">Appium MCP</a> npx -y appium-mcp@latest Android (UiAutomator2) and iOS (XCUITest): simulators, emulators and real devices An Appium session: find elements, tap, type, gestures, screenshots It can generate Java/TestNG test code from a description
<a href="https://docs.maestro.dev/getting-started/maestro-mcp">Maestro MCP</a> maestro mcp (needs the Maestro CLI) iOS and Android apps, plus web Maestro commands, so the agent can write, run and debug flows Yes, when the agent saves the flow as a YAML file

Pick the one that matches the tooling you already run. If your team has Appium capabilities and drivers set up, Appium MCP reuses them. If you write Maestro flows, Maestro MCP lets the agent write more of them. If you want an agent to poke at an app with no framework at all, mobile-mcp has the least setup.

Setting up mobile-mcp #

Boot an iOS simulator (xcrun simctl boot "iPhone 16") or start an Android emulator first. The project's installer finds the MCP clients on your machine and configures them:

npx @mobilenext/mobile-mcp@latest install

To configure each client by hand:

claude mcp add mobile-mcp -- npx -y @mobilenext/mobile-mcp@latest

codex mcp add mobile-mcp npx "@mobilenext/mobile-mcp@latest"

For Cursor, add the server to ~/.cursor/mcp.json or a project-level .cursor/mcp.json:

{
  "mcpServers": {
    "mobile-mcp": {
      "command": "npx",
      "args": ["-y", "@mobilenext/mobile-mcp@latest"]
    }
  }
}

mobile-mcp drives the app from the native accessibility tree first, so the agent reads element labels instead of spending image tokens on screenshots. It falls back to a screenshot and coordinate taps when an element has no accessible label. It also installs, launches and terminates apps, opens deep links and records the screen.

Setting up Appium MCP #

Appium MCP bundles the UiAutomator2 and XCUITest drivers for local sessions. You still need the platform toolchains: ANDROID_HOME, Java and the Android SDK tools for Android, and Xcode with an installed simulator for iOS (macOS only).

claude mcp add appium-mcp -- npx -y appium-mcp@latest

For Cursor, and for other clients that take a JSON config:

{
  "mcpServers": {
    "appium-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["appium-mcp@latest"],
      "env": {
        "ANDROID_HOME": "/path/to/android/sdk",
        "CAPABILITIES_CONFIG": "/path/to/your/capabilities.json"
      }
    }
  }
}

For Codex, the same server goes in ~/.codex/config.toml:

[mcp_servers.appium-mcp]
command = "npx"
args = ["-y", "appium-mcp@latest"]
env = { ANDROID_HOME = "/path/to/android/sdk" }

CAPABILITIES_CONFIG points at a JSON file of Appium capabilities, such as platformName, appium:deviceName and appium:app. The agent opens a session with appium_session_management, then uses tools such as appium_find_element, appium_gesture and appium_set_value. For a device farm or CI, pass a remoteServerUrl and explicit capabilities when the session is created instead of using the local drivers.

Setting up Maestro MCP #

Install the Maestro CLI first. The MCP server is a subcommand of it, so there is no separate package.

claude mcp add maestro -- maestro mcp

codex mcp add maestro -- maestro mcp

Or add it to ~/.codex/config.toml by hand:

[mcp_servers.maestro]
command = "maestro"
args = ["mcp"]

For Cursor, merge this into ~/.cursor/mcp.json:

{
  "mcpServers": {
    "maestro": {
      "command": "maestro",
      "args": ["mcp"]
    }
  }
}

This assumes maestro is on your PATH. If the client starts from a minimal shell, use the full path from which maestro. Maestro MCP is the only one of the three that writes into a test format you already run: when the agent saves its work as a flow file, maestro test can run it again in CI.

Where an MCP session stops and a repeatable test starts #

A live MCP session can help a coding agent inspect a mobile app and try a user journey, but the session alone does not give CI a test to run. The agent’s observations and next steps remain in its conversation unless the agent writes them into a file. A PR cannot review or rerun a conversation as a test.

For example, an agent might open an order screen and confirm that the latest order appears. To check that behavior after every change, you need a saved test with an assertion and a repeatable run command. Appium and Maestro can support persistent tests, but access through their MCP servers does not, by itself, save the agent’s exploration as one.

Momentic’s MCP server gives a coding agent a way to write, run, and fix tests while keeping the test definition as YAML in your repository. Install the mobile skills and the MCP server for your agent:

npx momentic-mobile skills --yes
npx momentic-mobile install-mcp

The command equips the agent to work on mobile tests. The agent still needs to turn the behavior it explored into a YAML test and run it. Once you commit that file, reviewers can diff the test in a PR, and CI can invoke it without asking the agent to explore the app again. The MCP server handles the agent interaction. The test file and CI invocation make the check repeatable.

Running the resulting test in CI #

Run npx momentic-mobile skills --yes in your project, then use your coding agent and the Momentic MCP server to write and run the mobile test. Review the resulting YAML test and commit it to your repository. CI needs that file, not the agent’s chat history.

Add a pull-request job that builds the app and runs the committed test with the Momentic CLI. Give the job the credentials and simulator or emulator access it needs, then make the job a required status check so a failed test blocks the merge. The CI job runs the committed tests with npx momentic-mobile run --upload-results, with MOMENTIC_API_KEY set as a CI secret. See the CLI reference for device and sharding flags.

  • How to set up the Momentic MCP server
  • Best MCP servers for testing
  • Playwright MCP vs. a testing MCP server
  • Testing mobile apps in Cursor
  • Appium vs. Maestro vs. AI testing
── more in #ai-agents 4 stories · sorted by recency
── more on @mobile-mcp 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mobile-mcp-servers-s…] indexed:0 read:6min 2026-10-31 · —