npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lazy_mobile_mcp

v1.0.3

Published

Local MCP server for Android/iOS device automation and performance telemetry (ADB, simctl, devicectl, WDA)

Readme

lazy-mobile-mcp

Local Model Context Protocol (MCP) server for Android and iOS mobile automation with performance telemetry.
Control real devices and simulators using screenshot, tap, swipe, input_text, launch_app, and collect baseline metrics (cpu, memory, launch time) with session history in SQLite.

Keywords: MCP server, mobile automation, Android ADB automation, iOS simulator automation, WebDriverAgent, app performance telemetry.

Why This Project

  • Build a local MCP bridge for AI clients over stdio.
  • Automate Android via ADB and iOS via simctl / devicectl / WDA.
  • Keep operations traceable with trace_id in responses and logs.
  • Persist sessions, samples, and artifacts in SQLite for reproducibility.

Features

  • stdio MCP transport for local AI tooling.
  • Single active device model (select_device) with optional per-call device_id.
  • Android adapter via ADB CLI.
  • iOS adapter via Xcode tools with macOS guard and graceful degradation.
  • WDA endpoint auto-discovery for iOS interactive actions.
  • JSON logging and unified error contract.
  • SQLite persistence for sessions, perf_samples, artifacts, audit_logs.

Tool Index

  • mobile.list_devices
  • mobile.select_device
  • mobile.get_capabilities
  • mobile.screenshot
  • mobile.tap
  • mobile.swipe
  • mobile.input_text
  • mobile.launch_app
  • mobile.stop_app
  • mobile.start_perf_session
  • mobile.stop_perf_session
  • mobile.get_perf_samples

Architecture

  • TypeScript MCP server + worker (tool contracts, validation, policy, trace ID)
  • Android adapter (adb)
  • iOS adapter (simctl, devicectl, WDA)
  • SQLite storage (artifacts/mobile.db)

Prerequisites

  • Node.js 20+
  • Android: adb in PATH
  • iOS (optional): macOS + xcrun (simctl/devicectl)
  • For iOS interactive actions (tap/swipe/input): reachable WebDriverAgent endpoint

Install

npm install

Install From npm

npm install lazy_mobile_mcp

Quick Start (Codex)

Requires codex CLI in PATH.

Published package:

npx -y lazy_mobile_mcp@latest setup-codex

Verify registration:

codex mcp get lazy-mobile-mcp

Then open a new Codex session and call mobile.list_devices.

Current local checkout:

node bin/lazy-mobile-mcp.js setup-codex --local --name lazy-mobile-mcp-local

Codex One-Command Setup (Advanced)

Optional overrides:

npx -y lazy_mobile_mcp@latest setup-codex \
  --name lazy-mobile-mcp \
  --sqlite-path "$HOME/.codex/mcp-data/lazy-mobile/mobile.db" \
  --adb-bin adb \
  --wda-base-url http://127.0.0.1:8100

Local checkout with the same overrides:

node bin/lazy-mobile-mcp.js setup-codex \
  --local \
  --name lazy-mobile-mcp-local \
  --sqlite-path "$HOME/.codex/mcp-data/lazy-mobile/mobile.db" \
  --adb-bin adb

Run with npx:

npx -y lazy_mobile_mcp@latest

Global install:

npm install -g lazy_mobile_mcp
lazy-mobile-mcp

Run

Development:

npm run dev

Production:

npm run build
npm start

Configuration

  • SQLITE_PATH (default artifacts/mobile.db)
  • DEVICE_ALLOWLIST (comma-separated)
  • LOG_LEVEL (debug|info|warn|error)
  • ADB_BIN (default adb)
  • WDA_BASE_URL (optional override for iOS WDA endpoint)

If WDA_BASE_URL is not set, the adapter probes common local endpoints (127.0.0.1 / localhost, ports 8100/8101/8200/8201 + local listening ports).

iOS Capability Notes

  • Simulator: screenshot + launch/stop + WDA interactive actions.
  • Physical device: launch/stop via devicectl; screenshot and interactive actions via WDA.
  • Non-macOS host: iOS tools return ERR_IOS_UNAVAILABLE_ON_HOST.

Testing

npm test

Recommended local MCP smoke:

node dist/cli.js --help
node dist/cli.js setup-codex --help