How to control a real cloud Android phone from Claude, Cursor or any AI agent with mobile-mcp
Short answer: mobile-mcp drives whatever shows up in adb devices, so if a cloud phone shows up there, Claude, Cursor or any other MCP client can tap, type and read it. On cloudf.one that means renting a developer phone (the USD $5 / 24 hour test counts), switching on the WireGuard tunnel we give you, running adb connect 10.77.0.1:PORT, and adding the standard mobile-mcp block to your client config. About fifteen minutes the first time.
The point of doing it this way is the phone. mobile-mcp is one of the most-used MCP servers for driving Android and iOS devices (npm counted 185,203 downloads of @mobilenext/mobile-mcp between 12 October and 10 November 2026), and most people run it against an emulator on their laptop. An emulator is fine for clicking through your own UI. It is not fine when the thing you care about is what a real Samsung on a real Singapore SIM sees: the Play Store region, local pricing, carrier detection, an app that refuses to start on anything virtual.
I run the phones. Here is the whole path, including the parts that will not work.
What do you need before you start?
Five things on your side:
- an MCP client: Claude Desktop, Claude Code, Cursor, or anything else that speaks MCP
- Node.js v20 or newer (mobile-mcp’s own stated requirement)
- Android platform tools, so
adbis on your PATH - the WireGuard app
- a cloudf.one account with a paid rental on a developer phone
You do not need Android Studio, an emulator image, or a USB cable.
How do I get a cloud phone that adb can reach?
adb is not open on the bare internet. Our ingress is HTTP and websockets only, so the adb connect cloudf.one:PORT line STF shows you in its remote-debug tab will never connect from outside. adb goes through a WireGuard tunnel, and only on our developer phones: a small pool of real Samsung phones on Singapore carrier SIMs where any paid rental gets a private tunnel to its own phone’s adb, self-serve.
- Register and rent a phone from the plans page. The $5 for 24 hours is enough to try everything in this post.
- Open cloudf.one/account/adb-tunnel.
- If your phone shows turn on and download config, it is a developer phone. If it says not a developer phone, press move me onto a developer phone. I swap the rental over by hand and the time you have left carries over.
That swap is manual on purpose. It means there can be a wait while I get to it, which is the honest trade for not handing adb to every phone in the rack.
How do I connect adb over the WireGuard tunnel?
Press turn on and download config, import the file into WireGuard and switch it on. The tunnel reaches your phone’s adb port and nothing else, not the other phones, not the rest of our network.
Then authorise your adb key. If ~/.android/adbkey.pub does not exist yet, run adb devices once; adb creates the key pair the first time it starts. Open your phone from the dashboard, add that public key under settings, keys, and start remote debug. You get a line like adb connect cloudf.one:7913. Keep the port and swap the host:
adb connect 10.77.0.1:7913
adb devices # 10.77.0.1:7913 device
adb -s 10.77.0.1:7913 shell getprop ro.product.model
If you would rather script it, the remote-debug step is also on the API: POST /api/v1/user/devices/{serial}/remoteConnect after taking the control lock. The developer docs have the full call.
How do I check the phone is ready before adding mobile-mcp?
adb devices should print 10.77.0.1:PORT followed by device. Two other states are worth knowing:
unauthorizedmeans the key you added in settings is not the one adb is using. Check the path ofadbkey.puband re-add it.offline, or nothing listed at all, usually means the WireGuard tunnel is down. Toggle it and runadb connectagain.
Do this check by hand before you bring an agent into it. When a model reports “no devices found” you have no idea which layer broke. When you see device yourself, you know everything below mobile-mcp is fine.
If you also want to watch the screen while the agent works, scrcpy -s 10.77.0.1:7913 uses the same port. The scrcpy guide covers it.
How do I add mobile-mcp to Claude Desktop, Claude Code or Cursor?
mobile-mcp has a one-line installer that finds the MCP clients on your machine and asks which to configure:
npx @mobilenext/mobile-mcp@latest install
If you prefer to set it up by hand, this is the standard config from the mobile-mcp README, and it is what you paste into Claude Desktop’s MCP config file:
{
"mcpServers": {
"mobile-mcp": {
"command": "npx",
"args": ["-y", "@mobilenext/mobile-mcp@latest"]
}
}
}
For Claude Code, the README has a plugin, installed from inside Claude Code:
/plugin marketplace add mobile-next/mobile-mcp
/plugin install mobile-mcp@mobile-mcp
or just the server, from your shell:
claude mcp add mobile-mcp -- npx -y @mobilenext/mobile-mcp@latest
For Cursor: Cursor Settings, then MCP, then Add new MCP Server. Pick the command type and use npx -y @mobilenext/mobile-mcp@latest.
mobile-mcp sends anonymous usage telemetry by default. If you want it off, add "env": { "MOBILEMCP_DISABLE_TELEMETRY": "1" } to the same block.
Nothing in that config mentions cloudf.one, the tunnel or an IP address, and that is correct. mobile-mcp asks adb what is attached. The tunnel already made our phone look attached. Restart your client so it picks up the new server, then ask it to:
list available devices
You should get 10.77.0.1:7913 back (with your port). If you have a USB phone or an emulator running too, they will show up as well, so name the cloud phone by its address in your prompts.
What can I ask the agent to do?
Anything you would do with your thumb, within the rental rules further down. mobile-mcp reads the screen’s accessibility tree first and only falls back to screenshots and coordinates when it has to, which keeps runs faster and cheaper on tokens than screenshot-only agents.
A few prompts, written as hypothetical examples of the kind of job these phones fit:
On device 10.77.0.1:7913, open the Play Store, search for "Grab",
and tell me the price, rating and listing language exactly as shown.
Install ./build/app-release.apk on 10.77.0.1:7913, launch it,
go through onboarding with the test account in test-account.txt,
and screenshot every screen. Stop and tell me if anything crashes.
Open Chrome on 10.77.0.1:7913, load https://staging.example.com/pricing
and tell me which currency and prices the page shows.
Collect the last few minutes of device logs for com.example.app
on 10.77.0.1:7913 and summarise any errors.
The first and third are the reason to use a real Singapore phone at all. An emulator on your laptop answers those questions for wherever your laptop is. This phone answers them from a Singapore carrier connection.
The model runs on your machine with your own API key. The phone only does what it is told. If the agent loses the plot halfway through a long task, that is the model, not the phone, and shorter prompts with one goal each fail far less often than one paragraph asking for six things.
What will not work on a rented phone?
These are deliberate, enforced on a timer, and they apply to the agent exactly as they apply to you:
- You cannot uninstall apps over adb or from the phone’s own screen; the device policy blocks it, so
mobile_uninstall_appwill fail. Installing works, and so does installing over an older copy. If you need something gone, the phone control API can remove apps you installed yourself. - Some settings are put back every few minutes: Wi-Fi off, stay-awake off, Developer options hidden. An agent that “fixes” one will see it revert. USB debugging is forced back on, so you cannot lock yourself out of adb by accident.
- SMS, calls and any use of the phone number are off, under any circumstances. Do not point an agent at an OTP flow on the phone’s own number.
- Camera and microphone are off.
- Sideloading from the phone itself is blocked. Install through adb, mobile-mcp’s install tool, or our install API.
- Never let an agent set a PIN, pattern or fingerprint. It locks us out of the handset and I cannot recover it remotely.
Wi-Fi being off is the product, not a bug. The phone is on its SIM, which is the Singapore mobile IP you are paying for. If you want traffic to leave somewhere else, your own VPN or proxy app on the phone is allowed.
One opinion, since people ask: I would not use an agent for anything you would be annoyed to see done twice. Agents retry. On a flow that charges money or posts something, have it stop and ask before the final tap.
What usually goes wrong, and how do I fix it?
The agent says it found no devices. Run adb devices in a terminal. If the phone is not there, the problem is the tunnel or the key, not mobile-mcp. If the phone is there and the agent still sees nothing, restart the MCP client; it starts mobile-mcp once and may have started before you connected.
Appium stopped working after I tried mobile-mcp. mobile-mcp is built on mobilecli, and on Android mobilecli keeps a small server running on the device that holds the only UiAutomation connection. Appium and uiautomator dump cannot run alongside it. Run mobilecli daemon stop, or wait; it exits by itself after 30 minutes idle. Pick one tool per session. If you want Appium, the Appium guide covers the same tunnel.
The element list comes back empty on some screens. On our phones, Settings screens in particular don’t expose their elements to our own UI dump, and I would expect the same here. Tell the agent to take a screenshot and work from coordinates for that step.
Taps feel slow. Every action crosses the tunnel to Singapore and back, and the further you are from Singapore the more that adds up over a fifty-step flow. mobile-mcp has a batch tool that runs several actions in one call, and asking the agent to use it helps.
The tunnel dropped. When the rental ends the tunnel drops within a minute, and the phone is wiped before anyone else gets it. If your rental is still active, toggle WireGuard and adb connect again.
What I have not done is run every one of mobile-mcp’s tools against our phones. The ones above I am sure about because they come straight from how the phones are locked. If something else misbehaves, tell me which tool and I will tell you whether it is us.
FAQ
Does this work without a developer phone?
Not with mobile-mcp, because it needs adb, and adb is only open on developer phones. Every rental does get the phone control API instead: screenshots, taps, swipes, typing, keys, apps, files, notifications and a fresh mobile IP over plain HTTPS with an access token. An agent that can make HTTP calls can drive a phone that way with no tunnel at all.
Is the phone rooted? Do I get a shell?
No root. Over adb on a developer phone you get what adb normally gives on an unrooted phone, inside the rental policy above. The REST control API has no raw shell at all, on purpose.
How much does it cost?
The paid test is USD $5 for 24 hours, a week is $16.67, and 30 days is $50. Every option is one dedicated phone. Full table on the pricing section.
Can I run several phones from one agent?
Each developer-phone rental gets its own tunnel, so each shows up in adb devices with its own port, and mobile-mcp lists all of them. Name the device in every prompt or the agent will guess. For five or more phones built to order, there is a fleet quote form.
Will apps know it’s a cloud phone and not my own?
It is a physical Samsung handset on a Singapore carrier SIM, not an emulator, so there is no emulator layer for an app to find. What an app can still notice is that USB debugging is on, because that is how we manage the phone and it stays on. If you test an app that refuses to run with debugging enabled, it will refuse here too. Real device vs emulator detection goes into the rest.
What happens to my data when the rental ends?
The tunnel drops within a minute and the phone is wiped before the next customer gets it. Pull anything you need off first.
If something in this guide does not work on your setup, email hello@cloudf.one or message @xavierfok on Telegram with what you are automating. I will tell you straight whether it works on our phones.