MobiLoop MCP
Builds, installs, and tests Android apps on emulators or physical devices, using adb/emulator tools, logcat evidence, and Appium-driven UI automation.
Performs Appium UI automation on mobile apps, including taps, typing, swipes, back navigation, visibility assertions, screenshots, and accessibility summaries.
Supports Flutter project workflows with build/test loops and source-flow analysis for generating UI test scenarios.
Builds, installs, and tests apps on iOS simulators using xcrun simctl and xcodebuild, with Appium XCUITest support.
Supports React Native Android projects with build, test, scenario generation, and source-flow analysis.
Controls iOS build and simulator workflows through Xcode's xcodebuild and xcrun simctl command-line tools.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MobiLoop MCP Run the Android build, install on emulator, and execute the login Appium test with evidence."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MobiLoop MCP
Guarded MCP servers for agentic mobile build-test-fix loops.
Documentation site | Installation | Security model | Tool reference
code change -> build -> install on device -> Appium test -> evidence -> classify -> reportMobiLoop MCP is a controlled tool layer between an AI coding agent and a real mobile development environment. It lets an MCP client read and patch a mobile project, build it, install it on Android or iOS targets, drive the app through Appium, verify logs/screens/API results, remember known app-flow checkpoints, and produce evidence-based reports.
The name reflects the core contract: mobile work should run through a measurable loop of change, build, device execution, verification, and evidence-backed triage.
It is built for the workflow where the agent does not just write code. It builds, runs, tests, observes, classifies failures, and hands back evidence. An agent can still use the separate guarded code tools to patch and retest, but that patch step is intentionally outside the default orchestrator.
Today, MobiLoop provides guarded build-test-verify loops and evidence-based failure classification. Fully automated patch-and-retest is intentionally kept outside the default orchestrator until stricter approval, rollback, and review controls are enabled.
Highlights
Evidence-first mobile loops: build logs, screenshots, Appium XML source, logcat/simulator logs, API responses, screenshot diffs, and iteration records.
Android and iOS tool split: Android
adb/emulator tools and iOSxcrun simctl/xcodebuildtools are separated.Appium UI automation: semantic taps, typing, swipes, back navigation, visibility assertions, screenshots, and accessibility summaries.
Flow memory: record runtime screen checkpoints, remember the latest passing path, and auto-replay stable setup steps to a target checkpoint.
Scenario generation and flow DSL: scan source for candidate E2E scenarios, then run high-level JSON flows with wait/tap/type/assert/evidence steps.
Source-flow analysis: scan Flutter, React Native, Android, and iOS source for screen, route, transition, and visible-text candidates.
Root-cause classification: classify logcat evidence into app bugs, automation errors, missing environment, remote rules, and test-data issues.
Server-side approval gate: secure mode requires valid approval payloads for high-impact tools.
Built-in mobile security loop: scan source and platform settings, generate a test plan, compare fixes, and gate release decisions without another scanner package.
Redaction by default: redact common secrets, bearer tokens, API keys, emails, and phone numbers from text artifacts, command output, and MCP/CLI text responses.
Guarded code tools: workspace-only reads/searches/patches, forbidden secret paths, guarded branches, commits, and PR creation.
Docker-ready MCP runtime: package the Node MCP server in Docker while keeping mobile SDKs, emulators, devices, and Appium on the host or runner.
Composable binaries: run everything as one server or split each responsibility into its own MCP server.
Portable mobile QA skill: an MIT-licensed agent skill for planning tests, collecting evidence, and running bounded fix-and-retest workflows with the existing tools.
Related MCP server: MCP Appium
What This Is
This project provides MCP tools for this architecture:
AI / MCP client
|
v
MobiLoop MCP
|
|-- code tools
|-- environment preflight
|-- build tools
|-- Android device tools
|-- iOS simulator tools
|-- Appium tools
|-- verification tools
|-- flow-memory replay tools
|-- loop/report tools
|-- CI publication tools
|-- Android/iOS orchestrators
|-- security scan and release gate tools
|
v
mobile repo + emulator/device + Appium + build toolchainThe server does not claim that a test passed because a model says so. A pass should be backed by tool output: command exit codes, screenshots, page source, log checks, API assertions, and recorded loop iterations.
What This Is Not
It is not a replacement for Android SDK, Xcode, Flutter, Gradle, React Native, Appium, or platform drivers.
It is not a universal mobile emulator container. iOS simulator requires macOS, and Android emulator portability depends on host acceleration and device access.
It is not an unrestricted shell bridge. Tools are structured and guarded.
It is not a production deployer. Release signing, store upload, and production secrets remain outside the default scope.
Requirements
Install only what your target app needs.
Workflow | Host | Required tools |
MCP runtime | macOS, Linux, Windows | Node.js 20+ |
Android build/test | macOS, Linux, Windows | Android SDK, |
Flutter Android | macOS, Linux, Windows | Flutter SDK, Android SDK, Appium for UI flows |
React Native Android | macOS, Linux, Windows | Node/npm, Android Gradle toolchain, Android SDK, Appium |
iOS simulator | macOS only | Xcode, |
Docker MCP runtime | macOS, Linux, Windows | Docker, plus host-side mobile tools when driving devices |
Start Appium before Appium or flow replay tools:
appium --address 127.0.0.1 --port 4723Local Appium installs also work:
npx appium --address 127.0.0.1 --port 4723For Android, make sure the Appium process can see:
export ANDROID_HOME=/absolute/path/to/android/sdk
export ANDROID_SDK_ROOT=/absolute/path/to/android/sdk
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH"For an already-running Genymotion device, add its Android SDK platform tools to PATH, then
verify the device before starting a flow:
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
adb devices -lInstall From Source
npm ci
npm testConfigure project-local MCP and the bundled skill, then diagnose the host:
node dist/src/cli.js setup --workspace /absolute/path/to/mobile/app --client codex --yes
node dist/src/cli.js doctor --workspace /absolute/path/to/mobile/app --target androidClients: codex, claude, cursor, vscode, generic. Use --dry-run to preview. Setup preserves other servers, backs up changed files, and does not install SDKs or modify app data. See installation for Windows, upgrades, and prerequisites. NPM registry publication is not enabled; these commands use the built checkout.
Run the all-in-one MCP server:
MOBILOOP_WORKSPACE_ROOT=/absolute/path/to/mobile/app \
node dist/src/index.jsFor development:
npm run devCLI Fallback
When an MCP client cannot expose the server as callable tools, use the CLI wrapper:
MOBILOOP_WORKSPACE_ROOT=/absolute/path/to/mobile/app \
node dist/src/cli.js list-toolsInspect tool policy metadata:
MOBILOOP_WORKSPACE_ROOT=/absolute/path/to/mobile/app \
node dist/src/cli.js list-tools --jsonThe same metadata is available inside MCP through policy.list_tools.
Call any tool directly:
MOBILOOP_WORKSPACE_ROOT=/absolute/path/to/mobile/app \
node dist/src/cli.js call flow.generate_test_scenarios '{"goal":"login smoke and validation"}'Generate scenario candidates:
MOBILOOP_WORKSPACE_ROOT=/absolute/path/to/mobile/app \
node dist/src/cli.js generate-scenarios "cover onboarding, login, and validation"MCP Client Configuration
All-In-One Server
Use this for local development and simpler MCP clients.
{
"mcpServers": {
"mobiloop": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/index.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app",
"APPIUM_SERVER_URL": "http://127.0.0.1:4723"
}
}
}
}Split Servers
Use split servers when you want tighter policy boundaries per responsibility.
{
"mcpServers": {
"mobile-code": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/servers/code.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app"
}
},
"mobile-build": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/servers/build.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app"
}
},
"mobile-device": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/servers/device.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app"
}
},
"mobile-appium": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/servers/appium.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app",
"APPIUM_SERVER_URL": "http://127.0.0.1:4723"
}
},
"mobile-flow": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/servers/flow.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app",
"APPIUM_SERVER_URL": "http://127.0.0.1:4723"
}
},
"mobile-verify": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/servers/verify.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app"
}
},
"mobile-loop": {
"command": "node",
"args": ["/absolute/path/to/mobiloop-mcp/dist/src/servers/loop.js"],
"env": {
"MOBILOOP_WORKSPACE_ROOT": "/absolute/path/to/mobile/app"
}
}
}
}All binaries are listed below.
Binary | Scope |
| CLI wrapper for listing tools, calling tools, and generating scenarios |
| All tools |
| Code and git tools |
| Environment preflight and compatibility matrix |
| Dependency, lint, test, and APK build tools |
| Android |
| iOS simulator and Xcode tools |
| Appium UI automation tools |
| Assertions and evidence collection |
| Source-flow analysis and checkpoint replay |
| Iteration records and reports |
| Artifact manifests, GitHub summaries, PR comments |
| Android and iOS build-install-test-verify loops |
| Static mobile security scan, test plan, scan comparison, release gate |
Configuration
Secure mode does not read configuration from the project directory. Set workspace and Appium values in the host environment:
export MOBILOOP_WORKSPACE_ROOT=/absolute/path/to/mobile/app
export APPIUM_SERVER_URL=http://127.0.0.1:4723For a host-controlled file configuration, copy the example and point to it explicitly:
cp mobiloop.config.example.json mobiloop.config.jsonOr point to it explicitly:
export MOBILOOP_CONFIG=/absolute/path/to/mobiloop.config.jsonAGENTIC_MOBILE_MCP_CONFIG and AGENTIC_MOBILE_WORKSPACE_ROOT are still accepted as legacy fallbacks, but new projects should use the MOBILOOP_* names.
Common fields:
Field | Default | Purpose |
|
| Secure ignores project-local config; trusted enables explicit overrides |
| current working directory | Mobile app workspace the MCP server may access |
|
| Evidence, logs, screenshots, reports, flow memory |
| unset | Optional run identifier; writes artifacts under |
|
| Default command timeout |
|
| Output cap for command tools |
|
| Suggested fix-loop limit |
|
| Orchestrator loop limit |
|
| Suggested total runtime limit |
|
| Branches where commit tools are allowed |
|
| Trusted-mode Appium endpoint; secure mode uses host environment |
|
| Android Debug Bridge path |
|
| Android emulator CLI path |
|
| iOS simulator CLI path |
|
| Xcode build CLI path |
|
| SQLite CLI path for read-only assertions |
| localhost only | URLs allowed for API verification |
| localhost only | Trusted-mode Appium origin allowlist |
| secret-like defaults | Files blocked from read/write operations |
| built-in defaults | Trusted-mode per-tool risk and approval metadata overrides |
|
| Require approval payloads for high-impact tools |
|
| Redact common secrets and PII from text artifacts and text responses |
MOBILOOP_ARTIFACTS_DIR may point to a dedicated host-controlled evidence mount, such as /artifacts in the read-only Docker security server.
Environment variables override selected fields:
export MOBILOOP_WORKSPACE_ROOT=/absolute/path/to/mobile/app
export APPIUM_SERVER_URL=http://127.0.0.1:4723
export MOBILOOP_RUN_ID=local-login-smoke
export MOBILOOP_REQUIRE_APPROVAL=true
export MOBILOOP_SECURITY_MODE=secureThe config schema is available at schema/mobiloop.config.schema.json. See docs/CONFIGURATION.md.
Approval payloads use this shape:
{
"approval": {
"approved": true,
"approvedBy": "human-or-ci",
"reason": "Run Android validation on emulator",
"expiresAt": "2026-05-11T12:00:00Z"
}
}Recommended First Run
Point
MOBILOOP_WORKSPACE_ROOTat your mobile app.Run
security.scan_sourceandsecurity.generate_test_plan.Start an emulator or connect a device, then start Appium.
Run
env.preflightandflow.analyze_from_code.Run approved build/lint/unit-test actions.
Install the app, create an Appium session, and verify one small user flow.
Collect evidence; if a bug is confirmed, patch, rerun, and compare the security scan.
Apply
security.release_gatebefore calling a fix ready for release.
Live Appium Proof
v0.1.0-alpha.10 was validated against an installed MiniTakip Android application on a
Genymotion Galaxy S24 running Android 15. The non-mutating proof used MobiLoop to discover the
ADB target, create an Appium 3 UiAutomator2 session, capture a screenshot and page-source XML,
read the accessibility tree, then close the session. It did not enter form data, create records,
or delete application data.
Direct W3C capabilities are accepted by appium.create_session as shown below. MobiLoop wraps
them in the WebDriver capabilities envelope before sending them to Appium:
{
"capabilities": {
"alwaysMatch": {
"platformName": "Android",
"appium:automationName": "UiAutomator2",
"appium:udid": "127.0.0.1:6555",
"appium:appPackage": "com.example.app",
"appium:appActivity": ".MainActivity",
"appium:noReset": true
}
},
"approval": {
"approved": true,
"approvedBy": "human-or-ci",
"reason": "Open an Appium session for a bounded validation run"
}
}After creating a session, use appium.observe_screen and appium.get_accessibility_tree for
evidence, then always call appium.delete_session. A successful session only proves the selected
screen and assertions; it does not claim that an entire product journey has passed.
For a Flutter Android app, the rough tool sequence is:
env.preflight { "target": "flutter" }
security.scan_source
security.generate_test_plan
flow.analyze_from_code
build.detect_project
build.install_dependencies
build.run_lint
build.run_unit_tests
build.build_debug_apk
device.list_devices
device.install_app
appium.create_session
appium.wait_for_visible
appium.tap_by_text
verify.assert_no_crash_in_logcat
verify.collect_evidence
loop.record_iteration
loop.generate_reportAndroid Orchestrator
orchestrator.run_android_validation_loop runs a bounded Android loop across build, install, Appium, verification, evidence, and iteration records.
Minimal shape:
{
"goal": "Build and verify login flow on Android.",
"kind": "flutter",
"packageName": "com.example.app",
"serial": "emulator-5554",
"runLint": true,
"runUnitTests": true,
"buildDebugApk": true,
"clearAppData": false,
"collectEvidence": true,
"maxTestIterations": 3,
"appiumCapabilities": {
"platformName": "Android",
"appium:automationName": "UiAutomator2",
"appium:deviceName": "Android Emulator",
"appium:udid": "emulator-5554",
"appium:appPackage": "com.example.app",
"appium:appActivity": ".MainActivity",
"appium:noReset": true
},
"appiumSteps": [
{
"tool": "appium.wait_for_visible",
"args": {
"locator": { "strategy": "text", "value": "Login" },
"timeoutMs": 10000
}
}
],
"expectedTexts": ["Home"],
"approval": {
"approved": true,
"approvedBy": "project-owner",
"reason": "Build, install and test the selected test app using authorized synthetic data"
}
}The minimal shape is not a complete login scenario. Adapt the full Android example with actual locators, form actions, and outcome assertions. Approval payloads represent real permission; app resets require separate authorization.
iOS Orchestrator
orchestrator.run_ios_validation_loop runs a bounded iOS simulator loop across xcodebuild, simulator boot, app install/launch, Appium XCUITest, verification, evidence, and iteration records.
Minimal Flutter shape:
{
"goal": "Build and verify login flow on iOS.",
"kind": "flutter",
"workspace": "ios/Runner.xcworkspace",
"scheme": "Runner",
"configuration": "Debug",
"sdk": "iphonesimulator",
"destination": "platform=iOS Simulator,name=iPhone 15",
"buildSettings": {
"ARCHS": "arm64",
"EXCLUDED_ARCHS": ""
},
"simulatorDevice": "iPhone 15",
"bundleId": "com.example.app",
"runLint": true,
"runUnitTests": true,
"buildIosApp": true,
"bootSimulator": true,
"installApp": true,
"launchApp": true,
"collectEvidence": true,
"maxTestIterations": 2,
"appiumCapabilities": {
"platformName": "iOS",
"appium:automationName": "XCUITest",
"appium:deviceName": "iPhone 15",
"appium:bundleId": "com.example.app",
"appium:noReset": true
},
"appiumSteps": [
{
"tool": "appium.wait_for_visible",
"args": {
"locator": { "strategy": "text", "value": "Login" },
"timeoutMs": 15000
}
}
],
"expectedTexts": ["Home"],
"approval": {
"approved": true,
"approvedBy": "project-owner",
"reason": "Build, install and test only the selected simulator demo"
}
}See examples/flutter-ios-validation-loop.json and docs/QUICKSTART_FLUTTER.md.
buildSettings and xcodebuildArgs are forwarded to ios.build_app, so projects can handle host-specific simulator requirements such as Apple Silicon arm64 simulator builds or custom DerivedData settings without leaving the MCP loop.
AI-Generated Scenario Candidates
MobiLoop can generate candidate E2E scenarios from the app source so the agent starts from a concrete test plan instead of an empty screen.
{
"tool": "flow.generate_test_scenarios",
"args": {
"goal": "cover onboarding, login, form validation, and main navigation",
"maxScenarios": 8,
"includeNegativeCases": true
}
}The output includes priorities, candidate steps, assertions, source references, and limitations. Treat these as executable candidates: the agent should run them through Appium, collect evidence, and refine them into stable checkpoint paths.
For scripted execution without writing custom client code:
{
"tool": "flow.run_script",
"args": {
"sessionId": "APPIUM_SESSION_ID",
"steps": [
{ "action": "observe", "waitForAnyText": ["GiriÅŸ Yap", "Login"], "waitForPackageIdle": true },
{ "action": "tapText", "text": "GiriÅŸ Yap", "matchMode": "auto" },
{
"action": "type",
"locator": { "strategy": "text", "value": "E-posta" },
"text": "test@example.com",
"mode": "sendKeys"
},
{ "action": "assertText", "text": "Ana Sayfa" },
{ "action": "collectEvidence", "label": "login-result" }
]
}
}Flow Memory And Auto-Replay
Flow memory makes repeated mobile tests faster without pretending that setup screens passed.
current Appium source
-> normalized screen signature
-> match recorded checkpoint
-> replay known semantic actions
-> arrive at target checkpoint
-> continue test-specific assertionsThe screen signature is built from Appium page source:
visible text
accessibility labels and content descriptions
resource ids
class names
clickable text
This data is persisted under:
.mobiloop/flow/memory.jsonWith runId enabled, the same file lives under .mobiloop/runs/<runId>/flow/memory.json.
Record Checkpoints
At a stable screen:
{
"testName": "onboarding-to-login",
"name": "Onboarding 1",
"order": 1,
"sessionId": "APPIUM_SESSION_ID",
"actionToNext": {
"tool": "appium.tap_by_text",
"args": {
"text": "Next"
}
}
}At the next screen:
{
"testName": "onboarding-to-login",
"name": "Login",
"order": 2,
"sessionId": "APPIUM_SESSION_ID"
}Record the passing path:
{
"testName": "onboarding-to-login",
"status": "passed",
"checkpointIds": ["onboarding-to-login-001-onboarding-1", "onboarding-to-login-002-login"]
}Replay Later
Plan without executing:
{
"sessionId": "APPIUM_SESSION_ID",
"testName": "onboarding-to-login",
"targetCheckpointId": "onboarding-to-login-002-login",
"dryRun": true
}Execute:
{
"sessionId": "APPIUM_SESSION_ID",
"testName": "onboarding-to-login",
"targetCheckpointId": "onboarding-to-login-002-login",
"minimumScore": 0.55,
"delayMs": 500
}Supported replay actions:
appium.tap_by_textappium.tap_by_accessibility_idappium.tap_by_resource_idappium.tap_coordinatesappium.type_textappium.swipeappium.go_backappium.wait_for_visibleappium.assert_visible
Prefer semantic actions. Coordinates should be the last fallback.
See examples/flow-memory-replay.json.
Docker
The recommended Docker model is:
Docker container
- read-only Security MCP for static project review
Trusted isolated worktree or self-hosted runner
- approved build, device, Appium, and patch actions
- Android SDK/emulator/device, Appium, Flutter/Gradle/React Native
- Xcode and iOS Simulator on macOSBuild:
docker build -t mobiloop-mcp:local .Published GHCR image:
docker pull ghcr.io/enessubass/mobiloop-mcp:latestRun as an MCP stdio server:
docker run --rm -i \
--read-only --cap-drop ALL --security-opt no-new-privileges \
--tmpfs /artifacts:rw,noexec,nosuid,size=256m,uid=10001,gid=10001,mode=0770 \
-e MOBILOOP_WORKSPACE_ROOT=/workspace \
-e MOBILOOP_ARTIFACTS_DIR=/artifacts \
-e MOBILOOP_SECURITY_MODE=secure \
-v /absolute/path/to/mobile/app:/workspace:ro \
--entrypoint node \
ghcr.io/enessubass/mobiloop-mcp:latest /app/dist/src/servers/security.jsSee docs/DOCKER.md.
Safety Model
Defaults are intentionally conservative.
File access is restricted to
workspaceRootafter symbolic-link resolution.Secure mode ignores project-local config, requires approval, and uses host-controlled loopback Appium.
Secret-like paths are blocked.
Commit tools only work on branches matching
feature/ai-*by default.There is no generic shell execution tool.
API checks are restricted by
apiAllowlist.Evidence is written under
.mobiloop, unless the host deliberately provides a dedicatedMOBILOOP_ARTIFACTS_DIRmount.Runtime and output limits are enforced.
Default blocked paths include:
.env,.env.**.keystore,*.jks,*.p12*.mobileprovisionGoogleService-Info.plistgoogle-services.jsonpaths containing
secretorcredential
Secure mode enforces approval for high-impact operations such as dependency installation, lint/test/build commands, device interaction, patches, commits, pushes, and PR creation.
MobiLoop exposes machine-readable policy metadata through mobiloop list-tools --json; see docs/TOOL_REFERENCE.md.
See docs/SECURITY.md.
Artifacts
The default artifact directory is:
.mobiloopWhen runId or MOBILOOP_RUN_ID is set, artifact writers use a run-scoped root:
.mobiloop/runs/<runId>Typical contents:
Directory | Contents |
| dependency, lint, test, and APK build logs |
| Appium or device screenshots |
| Appium page source XML |
| device or simulator logs |
| combined verification artifacts |
| source-flow analysis, checkpoint memory, replay records |
| JSONL iteration records |
| Markdown final reports |
| CI manifests, summaries, annotations |
| source scans, generated plans, comparisons |
Tool Groups
Code
code.read_filecode.search_codecode.apply_patchcode.git_diffcode.create_branchcode.commit_changescode.open_pr
Environment
env.preflightenv.compatibility_matrixenv.ensure_appium
Build
build.detect_projectbuild.install_dependenciesbuild.run_lintbuild.run_unit_testsbuild.build_debug_apkbuild.build_release_candidatebuild.collect_build_logs
Security
security.scan_sourcesecurity.generate_test_plansecurity.compare_scanssecurity.release_gate
Android Device
device.list_devicesdevice.start_emulatordevice.stop_emulatordevice.install_appdevice.uninstall_appdevice.clear_app_datadevice.grant_permissionsdevice.capture_screenshotdevice.pull_logs
iOS
ios.list_simulatorsios.boot_simulatorios.shutdown_simulatorios.build_appios.install_appios.launch_appios.capture_screenshotios.collect_logs
Appium
appium.create_sessionappium.delete_sessionappium.observe_screenappium.get_page_sourceappium.get_accessibility_treeappium.tap_by_textappium.tap_by_accessibility_idappium.tap_by_resource_idappium.tap_coordinatesappium.type_textappium.swipeappium.go_backappium.wait_for_visibleappium.assert_visibleappium.assert_not_visible
Verification
verify.assert_screen_contains_textverify.assert_no_crash_in_logcatverify.assert_appium_session_healthyverify.assert_api_responseverify.collect_evidenceverify.assert_navigation_reachedverify.assert_accessibility_labelsverify.assert_screenshot_diffverify.assert_sqlite_queryverify.hash_artifact
Flow
flow.analyze_from_codeflow.generate_test_scenariosflow.run_scriptflow.record_checkpointflow.record_test_runflow.plan_replayflow.replay_to_checkpointflow.read_memoryflow.clear_memory
Loop
loop.record_iterationloop.read_iterationsloop.generate_report
CI
ci.collect_artifact_manifestci.write_github_step_summaryci.comment_prci.create_github_annotations
Policy
policy.list_tools
Orchestrator
orchestrator.run_android_validation_looporchestrator.run_ios_validation_loop
Troubleshooting
env.preflight says Appium is missing
Start Appium and make sure APPIUM_SERVER_URL points to it:
APPIUM_SERVER_URL=http://127.0.0.1:4723env.preflight accepts either a reachable Appium server or a global appium command.
Appium cannot find Android SDK
Start Appium with Android environment variables:
ANDROID_HOME=/absolute/path/to/android/sdk \
ANDROID_SDK_ROOT=/absolute/path/to/android/sdk \
PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH" \
appium --address 127.0.0.1 --port 4723Appium taps text but the screen does not move
Prefer accessibility ids or resource ids. If using text, this server first tries a clickable parent containing the text, then falls back to the text node. For custom Flutter or React Native widgets, add stable semantics/accessibility ids when possible.
Flow replay matched the wrong screen
Use flow.plan_replay first. Raise minimumScore, record better checkpoints, and avoid checkpointing transient loading states.
Docker cannot see the emulator or Appium
Run Appium on the host and point the container to it with host.docker.internal. On Linux, add --add-host=host.docker.internal:host-gateway.
iOS does not work in Docker
iOS simulator workflows require macOS with Xcode. Run iOS tools directly on the macOS host or a macOS self-hosted runner.
npm pack --dry-run fails with npm cache permissions
Use a clean cache:
npm_config_cache=/tmp/mobiloop-npm-cache npm pack --dry-runDevelopment
npm ci
npm run format:check
npm run lint
npm run typecheck
npm test
npm run site:check
npm run pack:checkThe Dockerfile also runs the test suite during image build.
Project Files
License
MIT. See LICENSE.
Available Tools
82 toolsappium.assert_not_visibleC
Assert that a locator is not visible within timeout.
Inputs: locator (required), sessionId (required), serverUrl, timeoutMs.
appium.assert_visibleB
Assert that a locator is visible. Returns passed false instead of throwing when not visible.
Inputs: locator (required), sessionId (required), serverUrl, timeoutMs.
appium.create_sessionA
[approval required][device mutation][risk:dangerous] Create an Appium session. Pass W3C capabilities or raw capabilities object.
Inputs: capabilities (required), serverUrl.
appium.delete_sessionC
[approval required][device mutation][risk:dangerous] Delete an Appium session.
Inputs: sessionId (required), serverUrl.
appium.get_accessibility_treeC
Return a compact accessibility summary parsed from page source.
Inputs: sessionId (required), serverUrl.
appium.get_page_sourceC
Return raw Appium page source XML.
Inputs: sessionId (required), serverUrl.
appium.go_backC
[approval required][device mutation][risk:dangerous] Send Android/iOS back navigation to the Appium session.
Inputs: sessionId (required), serverUrl.
appium.observe_screenC
Capture screenshot and page source for the current Appium session, optionally waiting for app UI readiness.
Inputs: sessionId (required), prefix, stableMs, minWaitMs, +4 more.
appium.swipeC
[approval required][device mutation][risk:dangerous] Perform a touch swipe by coordinates.
Inputs: endX (required), endY (required), startX (required), startY (required), +3 more.
appium.tap_by_accessibility_idC
[approval required][device mutation][risk:dangerous] Tap by accessibility id.
Inputs: sessionId (required), accessibilityId (required), serverUrl.
appium.tap_by_resource_idC
[approval required][device mutation][risk:dangerous] Tap by Android resource id or Appium id locator.
Inputs: sessionId (required), resourceId (required), serverUrl.
appium.tap_by_textA
[approval required][device mutation][risk:dangerous] Tap a visible element by text with exact-first matching before contains fallback.
Inputs: text (required), sessionId (required), matchMode, serverUrl, +1 more.
appium.tap_coordinatesA
[approval required][device mutation][risk:dangerous] Tap screen coordinates. Use only when semantic locators are unavailable.
Inputs: x (required), y (required), sessionId (required), serverUrl.
appium.type_textC
[approval required][device mutation][risk:dangerous] Type text into an element located by accessibility id, id, xpath, text, or native selector.
Inputs: text (required), locator (required), sessionId (required), mode, +2 more.
appium.wait_for_visibleC
Wait until a locator becomes visible.
Inputs: locator (required), sessionId (required), serverUrl, timeoutMs.
build.build_debug_apkA
[approval required][workspace write][network][risk:dangerous] Build a debug APK and return discovered APK artifact paths.
Inputs: kind.
build.build_release_candidateB
[approval required][workspace write][network][risk:dangerous] Build a release candidate APK. Release signing requirements are delegated to the target project.
Inputs: kind.
build.collect_build_logsB
List build log artifacts emitted by this MCP server.
Inputs: no named parameters.
build.detect_projectB
Detect Flutter, React Native, or native Android project type.
Inputs: no named parameters.
build.install_dependenciesA
[approval required][workspace write][network][risk:dangerous] Install dependencies for the detected or specified mobile project type.
Inputs: kind.
build.run_lintA
[approval required][workspace write][network][risk:dangerous] Run lint/static analysis for Flutter, React Native, or Android.
Inputs: kind.
build.run_unit_testsA
[approval required][workspace write][network][risk:dangerous] Run unit tests for Flutter, React Native, or Android.
Inputs: kind.
ci.collect_artifact_manifestA
Create a JSON manifest of files under the MCP artifacts directory.
Inputs: no named parameters.
ci.comment_prA
[approval required][workspace write][network][risk:dangerous] Create a GitHub PR comment through gh. Uses current PR when prNumber is omitted.
Inputs: body, bodyPath, prNumber.
ci.create_github_annotationsA
[workspace write][risk:write] Emit GitHub Actions warning/error annotations from findings.
Inputs: findings (required), level, title.
ci.write_github_step_summaryB
[workspace write][risk:write] Append Markdown to GitHub Actions step summary or a workspace fallback file.
Inputs: markdown, sourcePath.
code.apply_patchA
[approval required][workspace write][risk:dangerous] Apply a unified diff after validating all touched paths stay inside workspaceRoot and are not forbidden.
Inputs: patch (required).
code.commit_changesA
[approval required][workspace write][risk:dangerous] Commit changes only while on an allowed feature/ai branch. Optionally stage specific non-secret paths.
Inputs: message (required), paths.
code.create_branchA
[approval required][workspace write][risk:dangerous] Create and checkout a guarded feature branch. Branch must match allowedBranchPattern.
Inputs: branchName (required).
code.git_diffC
Return git diff for workspaceRoot.
Inputs: staged.
code.open_prB
[approval required][workspace write][risk:dangerous] Open a pull request with GitHub CLI from the current allowed feature branch.
Inputs: body (required), title (required), base, draft.
code.read_fileA
Read a non-secret file inside workspaceRoot.
Inputs: path (required), maxBytes.
code.search_codeB
Search workspaceRoot. Uses ripgrep when available and falls back to a built-in scanner.
Inputs: query (required), glob, maxResults.
device.capture_screenshotC
Capture a PNG screenshot from an Android device into artifacts.
Inputs: prefix, serial.
device.clear_app_dataB
[approval required][device mutation][risk:dangerous] Clear app data for an Android package.
Inputs: packageName (required), serial.
device.grant_permissionsB
[approval required][device mutation][risk:dangerous] Grant one or more Android runtime permissions to a package.
Inputs: packageName (required), permissions (required), serial.
device.install_appA
[approval required][device mutation][risk:dangerous] Install or replace an APK on an Android device.
Inputs: apkPath (required), serial.
device.list_devicesA
List Android devices via adb devices -l.
Inputs: no named parameters.
device.pull_logsB
Pull Android logcat into artifacts. Optionally filter by package pid when available.
Inputs: serial, clearAfter, outputPath, packageName.
device.start_emulatorA
[approval required][device mutation][risk:dangerous] Start an Android emulator by AVD name. Returns after launching or optional boot wait.
Inputs: avdName (required), timeoutMs, waitForBoot.
device.stop_emulatorA
[approval required][device mutation][risk:dangerous] Stop an Android emulator through adb emu kill.
Inputs: serial.
device.uninstall_appB
[approval required][device mutation][risk:dangerous] Uninstall an Android package from a device.
Inputs: packageName (required), serial.
env.compatibility_matrixB
Return supported host/platform requirements for this MCP package.
Inputs: no named parameters.
env.ensure_appiumA
[approval required][workspace write][network][risk:network] Check Appium readiness, optionally install a driver and start a detached Appium server.
Inputs: port, useNpx, address, serverUrl, +6 more.
env.preflightB
Check host/project readiness for Android, iOS, Flutter, React Native, CI, or all environments.
Inputs: target.
flow.analyze_from_codeC
Infer mobile screens, routes, transitions, and visible text candidates from source code.
Inputs: maxFiles, includeTests.
flow.clear_memoryB
[approval required][workspace write][risk:dangerous] Clear flow memory under artifactsDir. This does not modify app source code.
Inputs: confirm (required).
flow.generate_test_scenariosC
Generate candidate mobile E2E scenarios from static source-flow analysis for an AI agent to execute/refine.
Inputs: goal, maxFiles, includeTests, maxScenarios, +1 more.
flow.plan_replayC
Match the current screen against recorded checkpoints and return Appium actions needed to reach a target checkpoint.
Inputs: source, testName, serverUrl, sessionId, +3 more.
flow.read_memoryB
Read recorded flow checkpoints, runs, and code-flow analyses.
Inputs: no named parameters.
flow.record_checkpointC
[workspace write][risk:write] Record a runtime screen checkpoint from Appium source/session and optional action needed to reach the next checkpoint.
Inputs: name (required), testName (required), order, prefix, +7 more.
flow.record_test_runA
[workspace write][risk:write] Record the ordered checkpoint ids for a test run. The latest passed run becomes the default replay path.
Inputs: status (required), testName (required), checkpointIds (required), runId, +3 more.
flow.replay_to_checkpointB
[approval required][device mutation][risk:dangerous] Auto-advance an Appium session from a previously seen screen to the latest or requested checkpoint.
Inputs: sessionId (required), dryRun, delayMs, testName, +3 more.
flow.run_scriptB
[approval required][device mutation][risk:dangerous] Run a high-level JSON flow DSL over an Appium session: waitText, tapText, type, assertText, observe, collectEvidence, back, swipe, checkpoint.
Inputs: steps (required), sessionId (required), prefix, delayMs, +3 more.
ios.boot_simulatorA
[approval required][device mutation][risk:dangerous] Boot an iOS simulator and optionally wait until boot completes.
Inputs: device (required), timeoutMs, waitForBoot.
ios.build_appC
[device mutation][risk:device] Build an iOS simulator app with xcodebuild into MCP artifacts.
Inputs: scheme (required), sdk, project, workspace, +5 more.
ios.capture_screenshotB
Capture an iOS simulator screenshot into artifacts.
Inputs: device, prefix.
ios.collect_logsC
Collect recent simulator logs into artifacts.
Inputs: last, device, prefix, predicate.
ios.install_appB
[approval required][device mutation][risk:dangerous] Install an .app bundle on an iOS simulator.
Inputs: appPath (required), device.
ios.launch_appA
[approval required][device mutation][risk:dangerous] Launch an installed iOS simulator app by bundle id.
Inputs: bundleId (required), device, terminateRunning.
ios.list_simulatorsA
List available iOS simulators via xcrun simctl.
Inputs: no named parameters.
ios.shutdown_simulatorB
[approval required][device mutation][risk:dangerous] Shutdown an iOS simulator.
Inputs: device (required).
loop.generate_reportC
[workspace write][risk:write] Generate a Markdown report from recorded iterations.
Inputs: title, summary, finalStatus.
loop.read_iterationsB
Read recorded loop iterations.
Inputs: no named parameters.
loop.record_iterationB
[workspace write][risk:write] Append one build-test-verify loop iteration as JSONL evidence.
Inputs: goal (required), iteration (required), test_result (required), fix, +6 more.
orchestrator.run_android_validation_loopC
[approval required][device mutation][risk:dangerous] Run build -> install -> Appium scripted test -> verification -> evidence -> loop record for Android.
Inputs: goal (required), kind, serial, apkPath, +18 more.
orchestrator.run_ios_validation_loopC
[approval required][device mutation][risk:dangerous] Run iOS simulator build -> install/launch -> Appium XCUITest scripted test -> verification -> evidence -> loop record.
Inputs: goal (required), sdk, kind, device, +33 more.
policy.list_toolsC
List effective tool policy metadata for MCP clients and approval gates.
Inputs: toolName, riskLevel, requiresApproval, includeDescriptions.
security.compare_scansB
Re-run the deterministic source scan and compare it with a baseline report after fixes.
Inputs: baselinePath (required), paths, maxFiles.
security.generate_test_planA
Generate a deterministic mobile security test plan from a source-scan report for an AI or engineer to execute.
Inputs: reportPath (required).
security.release_gateB
Evaluate a source-scan report against a severity threshold before release or merge.
Inputs: reportPath (required), failAtOrAbove.
security.scan_sourceA
Scan mobile source and platform configuration for deterministic security signals without running target code.
Inputs: paths, maxFiles.
verify.assert_accessibility_labelsC
Assert clickable or input-like nodes have a text, label, name, content-desc, or resource-id.
Inputs: serverUrl, sessionId, sourcePath.
verify.assert_api_responseA
[network][risk:network] Call an API and assert status and optional body substrings.
Inputs: url (required), body, method, headers, +3 more.
verify.assert_appium_session_healthyB
Assert the Appium session and page source are reachable, distinguishing automation failures from app crashes.
Inputs: sessionId (required), serverUrl.
verify.assert_no_crash_in_logcatC
Assert logcat or a saved log file has no crash signatures.
Inputs: serial, logPath, packageName.
verify.assert_screen_contains_textC
Assert current Appium page source contains expected text.
Inputs: text (required), sessionId (required), serverUrl.
verify.assert_screenshot_diffC
Compare two PNG screenshots and assert the pixel diff ratio is at or below maxDiffRatio.
Inputs: actualPath (required), baselinePath (required), threshold, maxDiffRatio.
verify.assert_sqlite_queryB
Run a read-only sqlite query and assert exact output or expected substring.
Inputs: query (required), databasePath (required), expectedOutput, outputContains.
verify.collect_evidenceC
Collect screenshot, page source, and logcat evidence where available.
Inputs: prefix, serial, serverUrl, sessionId, +1 more.
verify.hash_artifactB
Compute SHA-256 for a workspace artifact or evidence file.
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 82 tools
Multiple tools have overlapping boundaries, especially around verification and evidence collection: verify.assert_screen_contains_text and verify.assert_navigation_reached both assert page-source text, while appium.observe_screen, verify.collect_evidence, and device.capture_screenshot all capture screen/evidence data. The many tap variants and several record/report/generate tools also make misselection likely without very careful description reading.
Tool names largely follow a consistent snake_case verb-first pattern with namespace prefixes, such as list_devices, build_debug_apk, and assert_visible. Minor deviations like code.git_diff and env.compatibility_matrix are noun-phrase names, and verbs like write/create/run are used somewhat interchangeably, but the overall convention is recognizable.
At 82 tools, the surface is extremely overgrown regardless of the server's broad mobile validation scope. Even accounting for Android, iOS, Appium, build, verification, flow memory, security, and CI, the count far exceeds what an agent can navigate efficiently. Many tools could be consolidated or exposed as parameterized subcommands.
The tool set covers the core mobile validation lifecycle well: build, install, launch, automate via Appium, verify, collect evidence, record flows, run security gates, and report to CI. Minor gaps exist, such as no direct Android app launch/stop utility, no iOS uninstall or clear-data operation, and limited Appium gesture coverage beyond coordinate swipes.
Maintenance
Related MCP Connectors
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Mobile sandboxes for AI agents: each agent gets its own cloud Android phone or iOS simulator over MCP, reads the screen, taps, types and installs your app. Android $0.01/min, iOS $0.03/min, parked phones free.
Scan Android and iOS apps for security issues: findings, MASVS mapping and pentest reports.
Set up & manage mobile CI/CD on Bitrise: build, test, distribute iOS, Android, Flutter, RN apps.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI-powered mobile app testing and automation through Appium, using Azure OpenAI to intelligently navigate mobile applications and generate test cases.-

MCP Appiumofficial
AlicenseAqualityAmaintenanceEnables AI assistants to automate mobile app testing and development for iOS and Android through natural language interactions. Supports intelligent element identification, session management, automated test generation, and comprehensive device interactions including clicks, swipes, screenshots, and app management.3211,306 npm520Apache 2.0- AlicenseBqualityBmaintenanceEnables AI assistants to write and run mobile UI tests on Android and iOS simulators via natural language, supporting native and WebView apps without Appium.38MIT
- AlicenseNot gradedqualityCmaintenanceEnables local, air-gapped automation of Android and iOS devices and emulators, letting AI agents inspect UI hierarchies, tap, swipe, type, manage apps, capture screenshots, and pull device logs and crash reports. Bundles banking-grade safeguards such as automatic PII and secret redaction, PCI-DSS-style log sanitization, and configurable screenshot-blocking DLP policies.Apache 2.0