longarm turns an Android phone or tablet into a local automation endpoint for developers, QA testers, and AI agents. Run the built-in HTTP API or streamable HTTP MCP server on your device, then control a real Android screen from another computer on the same network.
Use longarm to automate app flows, test on physical Android devices, collect screenshots, operate a phone from a desktop tool, or connect an MCP-compatible agent to a real mobile screen instead of relying on emulator-only workflows.
ANDROID AUTOMATION OVER HTTP
- Start a local HTTP API server on your Android phone or tablet
- Send tap, swipe, long-press, pinch, rotate, and two-finger swipe commands
- Target exact screen coordinates for repeatable automation
- Launch any installed app by package name, or fire a custom Android intent (open a URL, deep link, or activity)
- Capture PNG screenshots from the current screen
- Query screen width, height, and density for reliable scripts
- Show a floating overlay with optional live coordinates
BATCH TASKS: SAVE AND REPLAY MULTI-STEP FLOWS
Chain taps, swipes, screenshots, app launches, and intents into a single named batch task instead of firing one-off commands. Add delays, repeat steps or whole tasks, and use loop blocks (count, range, foreach, or while) with variables to drive the same steps over different values. Build and run batch tasks right from the Batch tab, or create, update, and trigger them remotely over the same REST API and MCP server — so an agent can script an entire flow in one call instead of many round-trips.
MCP SERVER FOR AI AGENTS
longarm includes a streamable HTTP MCP server so compatible AI agents and developer tools can call Android control tools directly. Agents can inspect screen information, tap, long-press, open installed apps, launch Android intents, save and run batch tasks, and, with Plus, use advanced gestures such as swipes, pinches, two-finger swipes, and rotation.
REST API DOCS READY FOR SCRIPTS AND AGENTS
longarm includes over 20 documented endpoints for practical Android automation, including app and intent launching and full batch-task CRUD and execution. The Docs tab shows live parameters and lets you copy the full API as Markdown, ready to paste into a script, test harness, desktop tool, or AI agent prompt.
DETAILED LIVE LOGS FOR REST AND MCP
The History tab shows incoming REST requests and MCP tool calls with methods, status codes, filters, and expandable params and results. Keep recent logs visible even while the server is offline, and inspect what a script or agent actually sent without exposing stored bearer tokens in plain text.
BATCH RUN HISTORY AND SCREENSHOT RESULTS
Every batch run is recorded with a run ID, status, progress, messages, and captured screenshots. Review finished, failed, aborted, or still-running workflows directly on the device, then export screenshot evidence when you need proof for QA, debugging, or automation reports.
NO ROOT, LOCAL NETWORK CONTROL
longarm runs on your LAN and does not require root. Configure HTTP and MCP bind addresses and ports, require a bearer token, keep the screen awake, and auto-start the server on launch.
FOR DEVELOPERS, TESTERS, AND AI AGENTS
Use longarm when you need:
- Android automation and remote control from another machine
- Real-device testing without a heavy automation stack
- Scriptable taps, swipes, gestures, and screenshots
- REST API and MCP server access for mobile automation
- LAN-only control of a physical phone or tablet
longarm uses Android Accessibility Services to perform gestures and screenshots only in response to your remote commands. It is designed for controlled Android automation workflows on devices you manage.