Skip to main content
Glama

Mobile Pixel MCP

A lightweight, visual-first Model Context Protocol (MCP) server for mobile device automation. Enables AI models to control and interact with mobile devices through screenshots and coordinate-based interactions.

Quick Start

Add this to your MCP client configuration (e.g., Claude Desktop, Cursor):

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

You can optionally pass arguments to specify a platform or device:

"args": ["-y", "mobile-pixel-mcp@latest", "--platform", "ios"]

Related MCP server: mobile-mcp

Prerequisites

Start the server after ensuring your environment is ready:

Android

  • Android Debug Bridge (ADB) installed and in PATH

  • USB debugging enabled on device, or emulator running

  • Device connected and authorized (adb devices shows your device)

iOS

  • IDB (iOS Development Bridge) installed and in PATH

  • Xcode and Xcode Command Line Tools (xcrun simctl support)

  • Simulator running or physical device connected

Features

  • Visual-First: Uses screenshots + coordinates (OCR/Computer Vision ready)

  • Automatic OCR: find_text and tap_text tools included

  • Telemetry Bridge: Read app logs via MCP

  • Smart Launch: Context-aware app launching (resumes if running, cold start if not)

  • Cross-platform support (Android & iOS)

Available Tools

Tool

Description

Parameters

get_screen

Capture current device screen

None

tap

Tap at coordinates

x, y

swipe

Swipe gesture

x1, y1, x2, y2, duration_ms

type_text

Input text into focused element

text

home

Press Home button

None

launch_app

Launch/Resume an app

app_id

check_app_status

Check if app is running

app_id

find_text

Find text coordinates (OCR)

text

tap_text

Find text and tap center (OCR)

text

check_app_log

Tail recent app logs

tag, filter_text

configure_device

Switch device/platform dynamically

platform, device_id, app_id

install_app

Install app from local path

path

uninstall_app

Uninstall app

app_id

reset_app

Reset app data/state

app_id

Configuration

The server supports persistent configuration to avoid specifying arguments on every restart. It looks for mobile-pixel.config.json in the current working directory. The server will automatically create this file with default settings if it doesn't exist.

Dynamic Switching

You can use the configure_device tool to switch platforms (e.g., from Android to iOS) or target devices without restarting the MCP server. This updates the mobile-pixel.config.json file automatically.

Manual Configuration (mobile-pixel.config.json)

{
  "platform": "android",
  "deviceId": "emulator-5554",
  "appId": "com.example.app",
  "mainActivity": ".MainActivity"
}

Local Development & Installation

If you want to run from source or contribute:

  1. Clone: git clone <repo>

  2. Install: npm install

  3. Build: npm run build

  4. Run:

    # Android
    npm start
    # iOS
    npm start -- --platform=ios
  5. Test: npm test

Troubleshooting

"ADB/IDB is not available"

Ensure the respective tools (adb for Android, idb/xcrun for iOS) are installed and in your system PATH.

License

Apache-2.0

Available Tools

14 tools
check_app_logB

Tail recent app logs containing a specific tag (telemetry bridge)

Inputs: tag, filter_text.

check_app_statusC

Check if an application is running

Inputs: app_id.

configure_deviceC

Update the device configuration dynamically without restarting

Inputs: platform (required), app_id, device_id.

find_textC

Find text on the screen and return its coordinates

Inputs: text (required).

get_screenB

Capture the current device screen

Inputs: no named parameters.

homeB

Press the Home button

Inputs: no named parameters.

install_appC

Install an application from a local file path

Inputs: path (required).

launch_appC

Launch an application and return a screenshot

Inputs: app_id.

reset_appB

Reset the application state (clear data/cache) without uninstalling

Inputs: app_id.

swipeC

Swipe from (x1, y1) to (x2, y2)

Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +1 more.

tapC

Tap at the specified coordinates (x, y)

Inputs: x (required), y (required).

tap_textC

Tap on the text found on the screen

Inputs: text (required).

type_textB

Type text into the focused element

Inputs: text (required).

uninstall_appB

Uninstall an application by its ID

Inputs: app_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools target a clearly distinct action (tap, swipe, type_text, install_app, check_app_log). The only mild overlap is tap_text versus the find_text + tap combination, but the descriptions make the convenience wrapper's purpose clear, so an agent can choose correctly.

    Naming Consistency4/5

    The set predominantly follows a verb_noun convention (configure_device, launch_app, install_app, check_app_status, find_text). A few bare verbs (tap, swipe, home) deviate slightly but are unambiguous and idiomatic for a device-control domain.

    Tool Count5/5

    14 tools is well within the sweet spot for a mobile automation server, covering configuration, input, screen capture, and app lifecycle without redundancy. Each tool appears to earn its place.

    Completeness4/5

    Coverage spans device config, input gestures, screen capture, text discovery, and full app lifecycle (install/uninstall/reset/status/log). Minor gaps exist, such as no Back/Recents navigation keys and no UI element hierarchy or wait-for-idle primitive, but agents can work around these via tap/swipe and get_screen.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables agents and LLMs to interact with native iOS and Android applications and devices via structured accessibility snapshots or coordinate-based taps, supporting simulators, emulators, and real devices.
      39
      55,827 npm
      Apache 2.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to automate Android and iOS devices, including emulators and physical devices, by capturing screenshots, reading UI accessibility trees, performing touch and text input, and managing app lifecycle and logs.
      18
      4
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to visually perceive and directly control Android devices via ADB and screen-control tooling, including screenshots, taps, swipes, typing, app management, UI inspection, file transfer, shell commands, and audio/video streaming.
      801 npm
      MIT