Skip to content
AddHunt
MCP servers

Ghost in the Droid

Open-source framework that lets AI agents run real phones

Works with Android 5.0+, iPhone, Android EmulatorOpen source

  • Open source
  • Licence: MIT

In short

Ghost in the Droid is an open-source Python framework and MCP server that lets AI agents see and operate real Android phones and iPhones. It is meant for developers building mobile automation, agent workflows or phone farms without rooting devices or relying on a cloud service.

What you get

  • 66 MCP tools for taps, swipes, typing, screenshots and OCR
  • Controls Android over USB or Wi-Fi ADB without root
  • iPhone support through WebDriverAgent
  • Screen reading via UI trees, OCR or a live browser stream
  • Skill Hub with 117 skills and human-in-the-loop control
  • Cloud or on-device models, including Ollama, vLLM and llama.cpp

The details

Ghost in the Droid connects an AI agent to a physical phone so it can look at the screen and act on it. Android devices from version 5.0 up are driven through the Android debug bridge over USB or Wi-Fi, and iPhones through WebDriverAgent. The phone does not need to be rooted and no app is installed on it.

Agent tooling

The project includes an MCP server exposing 66 tools: gestures, text entry, clipboard access, screenshots, OCR, app launching, text-to-speech, the camera and skill execution. Coding agents such as Claude Code, Codex, Antigravity and Opencode add it with one command, while Claude Desktop, Cursor, Windsurf and VS Code Copilot use a JSON config entry. LangChain and LlamaIndex are supported too, and a Python API covers scripted use.

How the agent sees

Screen content can be read from the Android UIAutomator hierarchy, the iOS accessibility tree, OCR, or a live video stream shown in a browser. Elements are located by their text, id or coordinates.

Skills and models

Release 1.6 introduced a Skill Hub holding 117 skills along with human-in-the-loop checkpoints. The model can be hosted (Anthropic API, OpenAI, OpenRouter) or local (Ollama, vLLM), or run on the phone itself with llama.cpp, MediaPipe or MLX. Setups range from a single handset to a phone farm, and the code is published under the MIT license.

Alternatives to Ghost in the Droid

All alternatives

Questions

Does Ghost in the Droid need root access or a cloud service?

No. Android phones are controlled through ADB over USB or Wi-Fi without rooting, nothing is installed on the device, and the framework does not depend on a cloud service.

Which AI clients can drive the phone?

The site gives setup steps for Claude Code, Codex, Antigravity, Opencode, Claude Desktop, Cursor, Windsurf and VS Code Copilot, and the framework also works with LangChain and LlamaIndex.

Does it work with iPhones?

Yes. iPhones are controlled through WebDriverAgent, and their screens are read through the XCTest accessibility tree.

More like this