Ghost in the Droid
Lets your AI agent drive a real Android phone or iPhone with 62 MCP tools: read the screen, tap, swipe and type.
413 stars on GitHubby Ghost in the DroidLicense MITUpdated 3 months 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 android-agent -- uvx ghost-in-the-droid
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Open Reddit on my Pixel and read me the top three posts.
Book a table using the phone and tell me when it is done.
What it is
Ghost in the Droid is an open-source framework that gives an AI agent control of a real phone. Android is driven over ADB, and iPhone through Appium and WebDriverAgent. It also offers reusable skills, a web dashboard and a choice of cloud or local AI models.
What it can do
- 62 MCP tools for phone control
- Tap, swipe, type, clipboard and screenshots
- Android ADB shell and intents
- iPhone control through WebDriverAgent
- Reusable YAML and Python skills for apps
- Live phone screen streaming
- Skill Hub:
android-agent skill install tiktok
When to use
- βΊWhen you want an AI agent to operate apps on a real Android phone
- βΊWhen you want to repeat a known phone task cheaply with a saved skill instead of using a model
- βΊWhen you run several phones as a farm with a job queue
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.agent-spec-mobile-react-nativeHelps your agent build mobile apps for iPhone and Android with React Native, including screens, navigation and native modules.appium-skillHelps your agent create automation scripts for Android and iOS mobile apps. Allows testing on real devices or emulators.Frequently asked questions
Is it free and open source?
Yes. The README says MIT, forever.
Which AI models can I use?
Claude Code with your subscription, the Anthropic API, OpenRouter, Ollama, vLLM, or models running on the phone itself.
Which MCP clients work?
Claude Code, Codex, Antigravity, Cursor and Opencode, plus LangChain, LlamaIndex, a CLI, a web dashboard and a REST API.
Do I need to install an app on the phone?
No. A fresh Android install touches nothing on the phone. An optional Portal companion app makes UI reads faster.
Is iPhone support on by default?
No. It is opt-in with GITD_ENABLE_IOS=1, and it needs a Mac.
Do my screenshots leave my network?
With a local or on-device model they do not. With a cloud model, prompts go to that provider.
If it does not work
- βΊRun uvx ghost-in-the-droid doctor for a checklist with fix hints, such as adb missing from PATH.
- βΊMake sure adb devices lists your phone and USB debugging is on.
- βΊFor iPhone, see docs/SETUP_IOS.md for Appium and WebDriverAgent setup.
5 new skills a week. 1 minute to read.