Agent Device logo

Agent Device

Automates and verifies mobile, web, TV, and desktop apps through CLI, MCP tools, 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 commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

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

Overview

agent-device gives coding agents structured access to mobile, web, TV, and desktop apps running on local, physical, simulated, or remote devices. Its CLI and built-in stdio MCP server support accessibility snapshots, UI actions, screenshots, debugging data, profiling, replay scripts, and session control. Reach for it when an agent needs to verify application changes, reproduce failures, collect evidence, or run repeatable workflows across iOS, Android, HarmonyOS, macOS, Linux, and supported TV platforms.

Use cases

  • Verify app changes on iOS simulators and Android emulators
  • Reproduce crashes and capture diagnostic evidence
  • Profile React Native renders for slow interactions
  • Save exploratory flows and run them in CI

Key features

  • Accessibility snapshots with refs and selectors
  • UI interaction and app session control
  • Screenshots, video, logs, traces, and network capture
  • React Native performance profiling
  • Replay scripts and Maestro YAML export
  • Local, CI, and remote device execution

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.

47/47 checks healthy over the last 58d

Adoption & maintenance

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

GitHub stars5.4kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Device works

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:

Terminal
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:

config.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.

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 AI coding agents to mobile, web, TV, and desktop apps on local or remote devices and simulators. Its main tools expose app inspection, UI interaction, screenshots, logs, video, traces, network data, performance profiling, replay, and session control through the agent-device command set.

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

Yes, agent-device works with Cursor through its MCP setup. The official server uses stdio and is configured with the `agent-device` command and the `mcp` argument.

agent-device supports iOS, Android, and HarmonyOS devices and simulators, plus tvOS, Android TV, Fire TV, Amazon Vega OS TV, web, macOS, and Linux. Targets can be local or accessed through remote device infrastructure.

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>