# agent-device [Health: Active]

**Category:** 🖥️ OS Automation  
**Repository:** https://github.com/callstack/agent-device  
**GitHub Stars:** 5503  
**Views:** 13  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agent-device

## Description
MCP server for mobile app automation: verify, control, and debug iOS, Android, TV, and desktop apps

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/callstack/agent-device), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g agent-device@latest
```

## Documentation

## What agent-device does

agent-device provides a device automation layer for coding agents. It can inspect and control applications on iOS, Android, and HarmonyOS simulators, emulators, and physical devices, along with tvOS, Android TV, Fire TV, Amazon Vega OS TV, web, macOS, and Linux targets. The same session model supports exploratory work, debugging, evidence collection, replay, and CI validation.

Agents can read accessibility snapshots instead of relying only on screenshots. Elements receive references and can also be addressed with selectors. The system can capture screenshots and video, collect logs, traces, network data, performance samples, crash details, and React Native profiles. Working interactions can be saved as `.ad` replay scripts, with strict Maestro YAML export available when required.

## How it works

The package exposes the same command set through three paths: the `agent-device` CLI, the official stdio MCP server started with `agent-device mcp`, and a typed Node.js client created with `createAgentDeviceClient()`. MCP tools follow the CLI execution path, while the Node.js API lets developers embed the operations in their own agents or orchestration code.

Sessions hold device state while an agent explores an app, performs actions, captures artifacts, and closes the session. Typical interactions include opening an app, taking a snapshot, pressing or filling a visible element, scrolling, gesturing, waiting for the interface to settle, asserting state, and handling alerts. Remote execution can use a proxy or supported device clouds, including BrowserStack, AWS Device Farm, TestMu AI, and Limrun.

References returned by snapshots are tied to the latest output. After a command with `--settle`, agents should use references from the resulting diff and take another snapshot when the diff lacks the needed element.

## Setup and configuration

Install the CLI globally with npm, then run the diagnostic command before handing it to an agent:

```bash
npm install -g agent-device@latest
agent-device doctor
```

Node.js 22.12 or newer is required. Web automation requires Node.js 24 or newer. The MCP configuration uses the installed executable and the `mcp` argument:

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

Use `agent-device help workflow` to find workflow guidance for debugging, replay, and profiling. Local use covers simulators, emulators, physical devices, macOS, and Linux; CI workflows can run replay scripts and preserve captured artifacts. Remote setups require the relevant proxy or device-cloud configuration.

## Tools and capabilities

- Inspect accessibility trees, interactive elements, refs, and selectors.
- Open apps and interact through presses, taps, field filling, scrolling, gestures, waits, assertions, and alert handling.
- Capture screenshots, video, logs, traces, network information, performance samples, crash details, and React profiles.
- Save exploratory workflows as `.ad` scripts and export Maestro YAML.
- Coordinate device access across parallel agent worktrees.
- Drive the same operations through CLI commands, MCP tools, or the typed Node.js API.

## Limitations and notes

Accessibility data is most reliable when applications expose clear labels, roles, and test IDs. Screenshots and video remain useful as evidence or when accessibility information is incomplete. Snapshot references can become invalid after the interface changes, so agents must follow the latest snapshot or settled diff. Device and evidence support varies by target, and remote execution depends on the selected proxy or device cloud.

_Full upstream README: https://allmcps.com/mcp/agent-device/readme_

