Automation Insights

Give ChatGPT access to a mobile through Mobilerun MCP

Priyanov 24, 20264 min read
Share
Give ChatGPT access to a mobile through Mobilerun MCP

For a long time, people were able to a lot of stuff on ChatGPT, but when it came to using a phone or using an app, chatgpt had limitations.

The agent has a lot of context and knnowledge, what it does not have is a phone.

That's the gap, Codex is OpenAI's coding agent. You sign in with your ChatGPT account and run it in the CLI, your IDE or the ChatGPT desktop app. Mobilerun's MCP server gives that agent a cloud phone. It can list devices, capture a screen, inspect the UI and run a task.

How the pieces connect

You type a prompt in Codex. Codex calls Mobilerun's hosted MCP server. The server talks to your Mobilerun account and the phone does the work.

The server lives at https://cloud.mobilerun.ai/api/mcp. It's remote HTTP. You don't install a local MCP process, and you don't plug in a cable.

What you'll need

  • A ChatGPT account, with Codex installed (CLI, IDE extension or the ChatGPT desktop app)
  • A Mobilerun account at cloud.mobilerun.ai
  • A phone in that account: a cloud Android or iPhone, or your own connected Android or iPhone

The Free plan is enough to try this. It includes 60 phone credits a month (60 Android minutes or 20 iPhone minutes) and 500 AI credits ($5).

Connect Codex to Mobilerun

Set up a phone in the Mobilerun dashboard first. Install Codex if you haven't. Register the remote MCP server in your terminal:

1codex mcp add mobilerun --url https://cloud.mobilerun.ai/api/mcp

Or add this entry to ~/.codex/config.toml:

1[mcp_servers.mobilerun]
2url = "https://cloud.mobilerun.ai/api/mcp"

Then sign in:

1codex mcp login mobilerun

Your browser opens, sign in with your Mobilerun account. That's OAuth, you don't need to paste an API key into the config.

You can also add the same server in the ChatGPT desktop app. Open Settings, then MCP servers, then Add server. Choose Streamable HTTP and paste https://cloud.mobilerun.ai/api/mcp. OpenAI stores that in the shared config, so the CLI and IDE pick it up too. If the server needs OAuth, select Authenticate and complete sign-in.

In the ChatGPT desktop app, type /mcp in the composer. You should see mobilerun in the connected servers. Review tool permissions before you approve actions.

Try it: three prompts

Once the server is connected, start Codex and try these.

1. See what's on the phone

This is the first task in the Codex docs:

List my Mobilerun devices

2. Let the agent run a task on the device

Ask the agent to run a prompt:

1Run a task on Mobilerun to open the Settings app and take a screenshot

What happens: Codex can send a run_task job to the phone, then poll get_task_status and pull a shot with get_task_media_screenshot. You see Settings open, without tapping it yourself.

A tighter follow-up, if you want an answer and not just a picture:

Open Settings and tell me the Android version

3. Inspect the apps already on the phone


List the apps on my ready device and take a screenshot of the home screen.

What happens: Codex uses list_apps_on_device and get_device_screenshot. You get a package list plus a visual of the home screen. That's useful when you're checking a build, or confirming the app you care about is actually installed.

If you don't have a phone yet, you can ask Codex to create one. create_device is one of the MCP tools. Creating a device can bill phone credits, so approve that call only when you mean to.

What the agent can do on the phone

Every action is its own tool, named after what it does. Which tools you see depends on the server's policy profile and your account permissions.

The full profile has 222 tools. A readonly profile exposes 106. A no-commerce profile exposes 59, and those tools don't buy anything.

For day-to-day work in Codex, these families matter most:

  • Devices: list_devices, get_device, get_device_screenshot, get_device_ui_state, list_apps_on_device, create_device, terminate_device
  • Device control: device_action_tap, manage_device_apps_install, manage_device_files_upload, configure_device_set_location, manage_device_reboot
  • Tasks: run_task, get_task_status, list_tasks, stop_task, get_task_media_screenshot

Some tools create paid resources, such as devices, phone numbers, mailboxes and proxies. Charges go to the account you signed in with. If payment is needed, the response includes a checkoutUrl. Open it, pay, then check the resource.

Your agent acts with the full authority of that account. Approve a pending permission only after you've confirmed it. Don't approve just because the model asked.

A Few things

A few limits, stated plainly:

  • It is not free of billing. Phone time uses phone credits. Agent runs use AI credits. Creating devices or other paid resources can charge your account. Approve those calls only when you mean to.
  • You still have to watch the first runs. Review each tool call before you approve it.
  • Cloud Android is virtual. A dedicated Cloud iOS phone is a real physical iPhone in a Mobilerun data center. On-demand iOS is virtual. You can't stop and resume Cloud iOS yet. A stopped Cloud Android phone keeps its apps and data, and uses no phone credits..

Want the agent to drive a local phone over ADB or Portal as well? The Codex docs also point to the mobile-harness skill. MCP is the hosted path. The harness is the Python path, for local and cloud devices.

The takeaway

ChatGPT can reason about your mobile app. Codex still needs a phone to see it. Point it at Mobilerun's MCP server, and sign in.

Create an account at cloud.mobilerun.ai. The Codex setup lives in the docs.

Also Read