/ الدليل / الملعب / 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 مصفوفة من كائنات الخادم بدلاً من خريطة.

~/.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