/ Каталог / Песочница / Mobile MCP
● Сообщество mobile-next ⚡ Сразу

Mobile MCP

автор mobile-next · mobile-next/mobile-mcp

One MCP interface to drive iOS and Android devices, simulators, and emulators — no separate XCUITest/Espresso knowledge.

Mobile MCP abstracts platform-specific mobile automation behind a single tool surface. Claude can tap, swipe, type, screenshot, and assert on iOS Simulators, Android Emulators, or real devices via USB/Wi-Fi. Useful for app QA, user-flow screenshotting, and debugging with natural-language steps.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

mobile-mcp.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "mobile-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mobilenext/mobile-mcp@latest"
      ]
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "mobile-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mobilenext/mobile-mcp@latest"
      ]
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "mobile-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mobilenext/mobile-mcp@latest"
      ]
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mobile-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mobilenext/mobile-mcp@latest"
      ]
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "mobile-mcp",
      "command": "npx",
      "args": [
        "-y",
        "@mobilenext/mobile-mcp@latest"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "mobile-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@mobilenext/mobile-mcp@latest"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

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

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: Mobile MCP

Smoke-test your app on iOS + Android from one prompt

👤 Mobile QA, devs without a dedicated QA team ⏱ ~20 min intermediate

Когда использовать: You just cut a build and want to know if the sign-up flow still works on both platforms.

Предварительные требования
  • Simulator bootedxcrun simctl boot "iPhone 16" and emulator -avd Pixel_7
  • App installed — Drag IPA/APK into the simulator or use install_app tool
Поток
  1. Start session
    Use mobile-mcp. List all available devices.✓ Скопировано
    → iOS simulator + Android emulator listed
  2. Run the flow
    On both devices in parallel: open my app, tap "Sign Up", enter [email protected] / password123, tap Continue. Screenshot each step.✓ Скопировано
    → Dual-device screenshot sequence
  3. Assert
    On each device, is the "Verify your email" screen visible? If not, report what you see.✓ Скопировано
    → Per-platform pass/fail with evidence

Итог: Pass/fail report with screenshots for both platforms in 2 minutes.

Подводные камни
  • Test account gets locked by anti-spam — Use per-build throwaway emails; rotate test accounts
Сочетать с: filesystem

Generate App Store screenshots across 5 device sizes

👤 Indie devs submitting to the App Store ⏱ ~25 min intermediate

Когда использовать: You need 6.5", 6.7", 5.5" screenshots and don't want to do it manually.

Предварительные требования
  • Simulators for each required size — Create via xcrun simctl with appropriate device types
Поток
  1. Build matrix
    Boot iPhone 15 Pro Max, iPhone 15, iPhone SE simulators. Install my app on each.✓ Скопировано
    → All three devices ready with app installed
  2. Capture flow
    On each device, navigate to the 5 key screens (onboarding, feed, detail, settings, upgrade). Screenshot each at full resolution.✓ Скопировано
    → Screenshots saved per-device with naming convention

Итог: App Store-ready screenshots in all required sizes, in one run.

Подводные камни
  • Screenshots include simulator status bar — Use --status-bar-style=overridden or post-process with crop
Сочетать с: filesystem

Комбинации

Сочетайте с другими MCP — эффект x10

mobile-mcp + filesystem

Save screenshots into versioned QA folders

Save every screenshot under /qa/$(date)/ with the test name.✓ Скопировано
mobile-mcp + xcodebuild

Build, install, and test in one flow

Build the iOS app via xcodebuild, install it via mobile-mcp, run the smoke test.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
list_devices none Always first — know what's available free
launch_app device_id, bundle_id Open your app on the device free
tap device_id, selector|coords Interact with a button/control free
type_text device_id, text: str Fill a text field (must be focused first) free
get_view_hierarchy device_id Figure out what's on screen free
screenshot device_id, path?: str Visual verification free

Стоимость и лимиты

Во что обходится

Квота API
Local
Токенов на вызов
View hierarchy can be 10k+ tokens; screenshots are base64
Деньги
Free
Совет
Prefer selector-based tapping over full view-hierarchy dumps to save tokens

Безопасность

Права, секреты, радиус поражения

Минимальные скоупы: device access (physical USB requires trust dialog)
Хранение учётных данных: None
Исходящий трафик: None from MCP; screenshots flow to LLM provider if shared
Никогда не давайте: production device access with PII

Устранение неполадок

Частые ошибки и исправления

No devices listed

Boot a simulator first: xcrun simctl boot / emulator -avd X

Проверить: `xcrun simctl list | grep Booted`
tap_at_coords misses

Run get_view_hierarchy and use selector-based tap — coords break across screen sizes

Real device not trusted

On iOS: Settings → General → Device Management → trust. On Android: enable USB debugging.

Альтернативы

Mobile MCP в сравнении

АльтернативаКогда использоватьКомпромисс
XcodeBuildMCPYou need iOS-only build + test, not cross-platform UI automationNo Android; heavier on build tooling
AppiumYou want a full CI-grade mobile testing frameworkWay more setup; not MCP-native

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills