agent-device
Lets your AI agent open, inspect and control mobile, web, TV and desktop apps on devices and simulators to verify its changes.
5.3k stars on GitHubby CallstackLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add agent-device -- npx -y agent-device mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Run the onboarding screen on the iOS simulator and attach screenshots.
Reproduce this crash and capture the logs that lead up to it.
What it is
agent-device is an open-source tool that gives coding agents a way to use a running app. Agents read accessibility snapshots, tap and fill fields through refs, and save screenshots, video and logs as evidence. It covers iOS, Android, HarmonyOS, TV, web, macOS and Linux, and works as a CLI, an MCP server or a Node.js API.
What it can do
agent-device open: start a session in an appagent-device snapshot -i: read the screen as an accessibility treeagent-device pressandfill: tap elements and fill fieldsagent-device screenshot: save a screenshot as evidenceagent-device doctor: check the setupagent-device mcp: start the MCP server
When to use
- βΊWhen you want your agent to run the app it just changed and check that it works.
- βΊWhen you need to reproduce a crash and capture the logs.
- βΊWhen you want to record a working flow as a script to replay in CI.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
mobile-automationLets your agent control an Android or iOS phone, emulator or simulator to open apps, tap, type, take screenshots and check what is on screen.appium-skillHelps your agent create automation scripts for Android and iOS mobile apps. Allows testing on real devices or emulators.dynamicExplains how iOS apps are inspected at runtime on a test device, including certificate pinning and keychain checks.Frequently asked questions
Is it free and open source?
Yes. The readme calls it open source and shows a license file.
Which platforms are supported?
iOS, Android, HarmonyOS, tvOS, Android TV, Fire OS, Vega OS, web, macOS and Linux. Support depth varies by target.
Does it work with React Native, Expo and Flutter?
Yes, along with native iOS and Android apps, on supported targets.
Can it run in CI?
Yes. Save a run as an .ad script, replay it in CI and keep screenshots and logs as artifacts. It can also export strict Maestro YAML.
Can it use cloud devices?
Yes. The readme lists BrowserStack, AWS Device Farm, TestMu AI and Limrun.
How do I see what a target supports?
Run agent-device capabilities --platform followed by the platform name.
If it does not work
- βΊRun agent-device doctor yourself before handing the CLI to an agent.
- βΊCheck Node.js is 22.12 or newer, or 24 or newer for web automation.
- βΊRefs are only valid in the latest output, so take a new snapshot if an action fails on a stale ref.
5 new skills a week. 1 minute to read.