{"slug": "mobile-mcp-servers-set-up-appium-mcp-maestro-mcp-and-mobile-mcp", "title": "Mobile MCP servers: set up Appium MCP, Maestro MCP and mobile-mcp", "summary": "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.", "body_md": "## TL;DR\n\n- **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.\n- **Appium MCP** gives the agent access through an Appium session. Reach for it when your mobile setup already uses Appium drivers.\n- **Maestro MCP** lets the agent work with Maestro’s mobile testing tools. Reach for it when you already use Maestro flows.\n- 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.\n- 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` .\n\n## Appium MCP, Maestro MCP and mobile-mcp compared\n\nAll 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.\n\n| Server | Install | Platforms and targets | What the agent works with | Leaves a test behind? | \n|---|---|---|---|---|\n| <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 | \n| <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 | \n| <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 | \n\nPick 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.\n\n## Setting up mobile-mcp\n\nBoot 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:\n\n```\nnpx @mobilenext/mobile-mcp@latest install\n```\n\nTo configure each client by hand:\n\n```\n# Claude Code\nclaude mcp add mobile-mcp -- npx -y @mobilenext/mobile-mcp@latest\n\n# Codex\ncodex mcp add mobile-mcp npx \"@mobilenext/mobile-mcp@latest\"\n```\n\nFor Cursor, add the server to `~/.cursor/mcp.json` or a project-level `.cursor/mcp.json`:\n\n```\n{\n  \"mcpServers\": {\n    \"mobile-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@mobilenext/mobile-mcp@latest\"]\n    }\n  }\n}\n```\n\nmobile-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.\n\n## Setting up Appium MCP\n\nAppium 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).\n\n```\n# Claude Code\nclaude mcp add appium-mcp -- npx -y appium-mcp@latest\n```\n\nFor Cursor, and for other clients that take a JSON config:\n\n```\n{\n  \"mcpServers\": {\n    \"appium-mcp\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"appium-mcp@latest\"],\n      \"env\": {\n        \"ANDROID_HOME\": \"/path/to/android/sdk\",\n        \"CAPABILITIES_CONFIG\": \"/path/to/your/capabilities.json\"\n      }\n    }\n  }\n}\n```\n\nFor Codex, the same server goes in `~/.codex/config.toml`:\n\n```\n[mcp_servers.appium-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"appium-mcp@latest\"]\nenv = { ANDROID_HOME = \"/path/to/android/sdk\" }\n```\n\n`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.\n\n## Setting up Maestro MCP\n\nInstall the  [Maestro CLI](https://docs.maestro.dev/getting-started/installing-maestro)  first. The MCP server is a subcommand of it, so there is no separate package.\n\n```\n# Claude Code\nclaude mcp add maestro -- maestro mcp\n\n# Codex\ncodex mcp add maestro -- maestro mcp\n```\n\nOr add it to `~/.codex/config.toml` by hand:\n\n```\n[mcp_servers.maestro]\ncommand = \"maestro\"\nargs = [\"mcp\"]\n```\n\nFor Cursor, merge this into `~/.cursor/mcp.json`:\n\n```\n{\n  \"mcpServers\": {\n    \"maestro\": {\n      \"command\": \"maestro\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n```\n\nThis 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.\n\n## Where an MCP session stops and a repeatable test starts\n\nA 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.\n\nFor 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.\n\nMomentic’s  [MCP server](https://momentic.ai/blog/how-to-set-up-momentic-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:\n\n```\nnpx momentic-mobile skills --yes\nnpx momentic-mobile install-mcp\n```\n\nThe 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.\n\n## Running the resulting test in CI\n\nRun `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.\n\nAdd 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](https://momentic.ai/docs/cli-reference/momentic-mobile/commands/run)  for device and sharding flags.\n\n## Related reading\n\n- How to set up the Momentic MCP server\n- Best MCP servers for testing\n- Playwright MCP vs. a testing MCP server\n- Testing mobile apps in Cursor\n- Appium vs. Maestro vs. AI testing", "url": "https://wpnews.pro/news/mobile-mcp-servers-set-up-appium-mcp-maestro-mcp-and-mobile-mcp", "canonical_source": "https://momentic.ai/blog/mobile-mcp-server-setup", "published_at": "2026-10-31 10:00:00+00:00", "updated_at": "2026-11-02 17:52:21.630467+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["mobile-mcp", "Appium MCP", "Maestro MCP", "Momentic", "Claude Code", "Cursor", "Codex", "UiAutomator2"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/mobile-mcp-servers-set-up-appium-mcp-maestro-mcp-and-mobile-mcp", "markdown": "https://wpnews.pro/news/mobile-mcp-servers-set-up-appium-mcp-maestro-mcp-and-mobile-mcp.md", "text": "https://wpnews.pro/news/mobile-mcp-servers-set-up-appium-mcp-maestro-mcp-and-mobile-mcp.txt", "jsonld": "https://wpnews.pro/news/mobile-mcp-servers-set-up-appium-mcp-maestro-mcp-and-mobile-mcp.jsonld"}}