Agent Device logo

Agent Device

Controls and verifies apps across mobile, web, TV, and desktop targets through CLI, MCP, or a typed Node.js API.

Install Agent Device

Run the project’s own setup commands, in order.

Setup steps from the project

agent-device installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g agent-device@latest
    

Overview

agent-device gives coding agents a device control layer for inspecting, interacting with, debugging, and verifying apps on simulators, emulators, physical devices, and remote device environments. It exposes the same execution path through a CLI, an official stdio MCP server, and a typed Node.js client. Accessibility snapshots, refs, selectors, screenshots, logs, traces, performance data, and replay scripts support both exploratory work and repeatable validation. Reach for it when an agent needs to run an app, reproduce a problem, validate a change, or collect reviewable evidence.

Use cases

  • Verify app changes on iOS simulators and Android emulators
  • Reproduce crashes and capture diagnostic evidence
  • Profile React Native rendering performance
  • Save UI workflows for replay in CI
  • Validate pull requests on physical devices

Key features

  • Accessibility snapshots with refs and selectors
  • Cross-platform app control
  • Screenshots, video, logs, traces, and crash data
  • React Native profiling and performance samples
  • Replay scripts and Maestro YAML export
  • CLI, stdio MCP, and typed Node.js access

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

67/67 checks healthy over the last 79d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5.6kStargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Directory activity14 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Device works

What agent-device does

agent-device lets coding agents operate applications on iOS, Android, HarmonyOS, tvOS, Android TV, Fire TV, Amazon Vega OS TV, web, macOS, and Linux. Targets can be simulators, emulators, physical devices, or remote device environments. The agent can inspect the accessibility tree, identify controls with refs and selectors, perform UI actions, and collect artifacts from the running app.

It is suited to development and QA workflows that need more than source-code inspection. Typical tasks include checking an onboarding flow on multiple platforms, reproducing a crash, profiling React Native rendering, validating a pull request on a physical device, or saving a successful exploration for CI.

How it works

Device state is organized into sessions. An agent opens an app, captures an accessibility snapshot, and acts on the returned refs or selectors. Actions include pressing controls, filling fields, scrolling, making gestures, waiting for UI state, asserting conditions, and handling alerts. Settling an interaction can return a diff with updated refs; refs from older output should not be reused.

The CLI and MCP server follow the same command path. Running agent-device mcp starts the official stdio MCP server and exposes installed commands as structured tools. Node.js applications can instead call createAgentDeviceClient() for typed access to the same operations, including app control, snapshots, interactions, and session management.

For diagnosis and review, the server can capture screenshots, video, logs, traces, network data, performance samples, crash information, and React profiles. Working steps can be saved as .ad replay scripts for local execution or CI, and exported as strict Maestro YAML when needed.

Setup and configuration

Install the CLI globally with the npm @latest tag, then check the environment before giving it to an agent:

Terminal
npm install -g agent-device@latest
agent-device doctor
agent-device help workflow

The minimum Node.js version is 22.12. Web automation requires Node.js 24 or newer. To configure an MCP-capable client, register the stdio command:

config.json
{
  "mcpServers": {
    "agent-device": {
      "command": "agent-device",
      "args": ["mcp"]
    }
  }
}

The CLI can also be used directly, without MCP. Remote workflows can use a remote proxy or connect to device clouds including BrowserStack, AWS Device Farm, TestMu AI, and Limrun.

Tools and capabilities

  • Inspect accessibility snapshots and interact using refs or selectors.
  • Open and close app sessions across supported platforms.
  • Press controls, fill fields, scroll, gesture, wait, assert, and handle alerts.
  • Capture screenshots, video, logs, traces, network data, and crash details.
  • Profile React Native renders and collect performance samples.
  • Save .ad replay scripts and export Maestro YAML.
  • Expose CLI commands through stdio MCP or a typed Node.js client.

Limitations and notes

Accessibility snapshots are the primary source of UI state, so clear labels, roles, and test IDs improve agent reliability. Screenshots and video remain useful as evidence or when accessibility data is insufficient. Refs are valid only in the latest command output and may change after a settled interaction.

Command and evidence support varies by target. Local use covers simulators, emulators, physical devices, macOS, and Linux; CI and cloud workflows require the relevant device or remote setup. The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agent Device

agent-device is an MCP server that connects coding agents to apps on iOS, Android, HarmonyOS, TV, web, macOS, and Linux devices or simulators. Its main tools expose app sessions, accessibility snapshots, UI interactions, screenshots, diagnostics, profiling, and replay workflows through the same commands as its CLI.

Install the CLI with `npm install -g agent-device@latest`, then configure the client to run `agent-device mcp`. Run `agent-device doctor` first to check the environment. Node.js 22.12 or newer is required, while web automation requires Node.js 24 or newer.

Yes, agent-device works with Cursor through its stdio MCP server. Add an MCP server entry whose command is `agent-device` and whose argument is `mcp`, or use the CLI directly from an agent workflow.

Yes, agent-device supports remote workflows through a remote proxy and device clouds. The documented cloud options include BrowserStack, AWS Device Farm, TestMu AI, and Limrun, alongside local simulators, emulators, and physical devices.

agent-device requires Node.js 22.12 or newer for the CLI and MCP server. Web automation requires Node.js 24 or newer.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgent Device AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agent-device?style=directory)](https://allmcps.com/mcp/agent-device)
HTML Embed
<a href="https://allmcps.com/mcp/agent-device"><img src="https://allmcps.com/api/badge/agent-device?style=directory" alt="Agent Device on AllMCPs" /></a>