ScreenSync MCP guide

Is It Safe to Let AI Control Your Phone? An MCP Checklist

Learn when it is safe to let AI control your phone with this MCP security checklist, so your agent can test real devices without overreaching.

Illustration of a phone and laptop linked through a purple security shield, with checklist panels and a magnifier

Yes, it is safe to let AI control your phone if you treat the agent like a new contractor: a test device, a narrow task, a private token and a way to cut it off. It is not safe to hand an agent your everyday phone, a default password and an "always allow" setting, then walk away. This checklist explains what each permission really grants and how to lock down a Model Context Protocol (MCP) setup such as ScreenSync MCP before, during and after a session.

What "AI control" actually means: four separate permissions

"Control" is not one switch. With a screen MCP server, an agent's reach depends on which layers you turn on, and each layer has its own off switch.

Layer What the agent can do How you cut it off
Screen capture (MediaProjection) See frames the app sends; no input Pause or stop capture; Android asks for consent each session
Phone control (ADB) Tap, swipe, type, press keys, launch apps, open URLs, read the UI tree and logcat Unplug, turn off wireless debugging, revoke authorizations
Browser (MV3 extension) Read and act in your real tab; risky actions wait for you The Web access toggle or Alt+Shift+S
Desktop (os_* tools) Real mouse clicks and keystrokes anywhere on the computer Off by default; leave it off

Capture is the lower-risk layer. Android's MediaProjection API asks for consent in a system dialog, the app keeps a capture notification up while it runs, and capture can only watch. It cannot tap.

Control is where the risk lives. ScreenSync's control_tap, control_type, control_key and control_launch_app run through ADB from the hub on your computer, and ADB input can do anything your finger can. The hub narrows the surface: it strips shell metacharacters from typed text, accepts only an allow-list of keys, validates package names and opens only http(s) URLs. An allow-listed power or home press is still a real key press, though. For the background on why none of this needs root, see how an AI agent controls an Android phone without root.

The risks that actually matter

The realistic failure modes are mundane:

  • Wrong action. The agent misreads the screen and taps "Delete" instead of "Details", or types into the wrong field.
  • Wrong device. With two phones on ADB, a tap lands on the one you did not mean.
  • Prompt injection. Everything on screen is input to the model. A notification, chat message or web page can contain text that reads like an instruction, and an agent holding control tools may follow it.
  • Network exposure. The hub listens on port 3000 on all interfaces by default and checks a bearer token. The default token, screensync-local-dev, is printed in the docs, so anyone on your network who knows it can call the control API.
  • Data leaving your machine. Frames stay on your network, but every screenshot an agent reads goes to that agent's model provider as part of the conversation.
  • Leftovers. Frames sit in the hub's data folder, and ADB pairings stay valid after you finish.

The MCP security best practices give similar advice for local servers: use the stdio transport where you can, and restrict access to any HTTP transport, for example with an authorization token.

Before you connect: the setup checklist

  1. Use a test device or test accounts. A spare phone with no banking, email or password manager apps removes most of the downside. On a daily phone, sign in with test accounts only.
  2. Replace the default token. Generate a random one and start the hub with it:
# A 48-character random token (Node 18+ is already installed for the hub)
node -e "console.log(require('crypto').randomBytes(24).toString('hex'))"

# macOS / Linux
SCREEN_SYNC_TOKEN="<your-token>" sh start-hub.sh
# Windows PowerShell
$env:SCREEN_SYNC_TOKEN = "<your-token>"; .\start-hub.bat

Use the same value in the app (Settings → Hub, or scan the QR again), in the extension and in your MCP client. The ScreenSync setup guide lists the hub's main environment variables.

  1. Keep the token out of git. A project .mcp.json is meant to be committed, so add the server at user scope instead:
claude mcp add --env SCREEN_SYNC_TOKEN=<your-token> --scope user screensync -- node "<HUB_DIR>/screensync-hub.js"
  1. Run the hub only on networks you trust. Phone-to-hub traffic is plain HTTP inside your LAN, protected by the token rather than TLS, so anyone who can watch traffic on that network can read frames and the token. Use a network you control, not hotel, café or busy shared Wi-Fi, and open port 3000 in your firewall for private networks only.
  2. Leave the pairing defaults alone. The /pair page, which displays the token, answers only on the hub computer itself and stops serving it once a device has paired and the hub has been up for 10 minutes. Do not set SCREEN_SYNC_ALLOW_LAN_PAIR=true or SCREEN_SYNC_PAIR_WINDOW_MINUTES=0 on a shared network.
  3. Pin the device. With more than one phone or emulator attached, set SCREEN_SYNC_ADB_TARGET to the right serial so taps can only reach the intended phone. control_status reports the model and Android version it found.
  4. Approve ADB deliberately. Android asks you to accept the computer's RSA key before USB debugging works, as Android's adb documentation describes. Accept it only for your own computer, and on shared Wi-Fi skip the "always allow on this network" box for wireless debugging.

Put a human gate on the control tools

ScreenSync's phone control tools do not ask before each tap: the bearer token decides who may call them, not what they do. So put the gate in your MCP client. Claude Code supports allow, ask and deny rules, and its permissions documentation confirms that ask and deny rules accept tool-name globs, and allow rules accept them after a literal mcp__<server>__ prefix. Add this to .claude/settings.json or your user settings:

{
  "permissions": {
    "allow": ["mcp__screensync__get_*"],
    "ask": ["mcp__screensync__control_*"],
    "deny": ["mcp__screensync__os_*"]
  }
}

Every control_* call now prompts you, and os_mouse_click, os_type and os_hotkey disappear from the agent's tool list. The allow line lets read-only tools such as get_latest_screenshot, get_ui_hierarchy and get_logcat run without prompts; drop it if you want to approve each screenshot or log dump before it goes to your provider. Prompts only appear in a mode that asks, so do not run these sessions in bypassPermissions mode. Other clients have their own approval prompts. Whatever you use, never choose "always allow" for a tool that taps or types.

The OS tools are also off at the hub: they work only when SCREENSYNC_ALLOW_OS_CONTROL=1 is set or the host-level OS-control switch is on. Anyone holding the hub token can flip that switch through the hub's HTTP API, which is one more reason to replace the default token and keep the deny rule.

During a session

  • Close what you do not want sent. Close banking, mail and chat apps first. Some sensitive apps set FLAG_SECURE, which Android's guidance on securing sensitive activities says blocks screenshots. Do not rely on it: it hides pixels, and the UI hierarchy is read through a different channel.
  • Know what redaction covers. The app's "Redact before sending" setting pixelates frames on the phone before they are stored or uploaded. control_screenshot, compare_frames and record_screen capture through ADB instead, so that setting does not apply to them.
  • Give narrow tasks. "Open my app's settings screen and check the toggle labels" is safer than "sort out my notifications". Do not point an agent that holds control tools at messages or web pages from strangers.
  • Watch it work. Each phone tool call appears on the app's AI activity timeline. Keep the phone in view and end the session the moment it does something you did not ask for.
  • In the browser, approve one action at a time. The ScreenSync browser extension holds risky actions on sites you have not trusted until you approve them, and a request nobody answers is declined after a minute. The agent cannot approve its own request. When it asks for site access, prefer "Allow once" (15 minutes) over "Always allow this site".

After the session: revoke and clean up

  1. Stop the hub: close its terminal and quit your MCP client, because the hub process the client launches can keep serving port 3000 and running ADB on its own. Then pause or stop screen capture on the phone.
  2. Turn off wireless debugging, or forget your computer under Paired devices; the guide to Android wireless debugging for an MCP server covers that setup. Revoking debugging authorizations in Developer options removes every paired computer at once.
  3. Delete frames from the hub's data folder (or wherever SCREEN_SYNC_DATA_DIR points) and clear the app's capture history if you captured anything sensitive.
  4. If you used the optional Google Drive fallback, delete its folder in your Drive.
  5. Remember the copy you cannot delete locally: screenshots an agent read are held under your model provider's retention terms. The ScreenSync data policy maps every place data can live.

What this setup does not protect against

Be clear about the limits. ADB input has no undo, and nothing in the hub can tell a harmless tap from a harmful one. The token keeps other devices out; it does not restrain an agent you connected yourself. Plain HTTP on a hostile network exposes frames and the token. And no local design changes what a model provider receives once an agent requests a screenshot.

None of that makes AI phone control unsafe by default. It makes it a tool whose blast radius you choose, and a test phone, a private token, an ask-before-tap rule and a revoke routine keep that radius small.

Next steps

  • Generate a token, start the hub with it and add the server at user scope with the commands above.
  • Add the ask and deny rules to your Claude Code settings, then start with a read-only task using get_latest_screenshot and get_ui_hierarchy.
  • Run one supervised control task on a test phone, then do the revoke-and-clean-up routine so it becomes a habit.

Next steps

FAQ

Questions, answered

Can an AI agent see my passwords if it controls my phone?

It can see whatever is on screen when it captures a frame, and that image goes to the agent's model provider. Password fields are usually masked and secure windows often capture as black, but treat neither as a guarantee. Use test accounts, close password managers and banking apps first, and never ask an agent to type a real credential.

Does letting an AI control my Android phone require root?

No. ScreenSync MCP captures the screen with Android's MediaProjection API after you consent, and sends taps, swipes and text through ADB over USB or wireless debugging. Neither route needs root or modifies the system. The trade-off is that ADB input can do anything you can, so keep tasks narrow and require approval for control tools in your client.

Can someone else on my Wi-Fi control my phone through the hub?

Only if they have the hub's bearer token, which every control route checks. The default token is public, so replace it before you use any shared network. Traffic between phone and hub is plain HTTP on the LAN, which means someone watching an untrusted network could read frames and the token. Run the hub only on a network you control.

How do I stop an AI agent immediately if it does something wrong?

Cut the layer it is using. Unplug the USB cable or switch off wireless debugging to end phone control, and pause capture from the app's notification. Quit your MCP client to stop every tool, since control calls run in the process the client launched, not just in the hub's terminal. In the browser, flip the Web access toggle or press Alt+Shift+S.

Is ScreenSync MCP safe to use on work or client devices?

It can be, with care. Frames travel from the phone to a hub you run, never to EpsolDev servers, but screenshots an agent reads go to your AI provider under its terms, so confirm your organization allows that for the apps involved. Prefer dedicated test devices, a non-default token, ask-before-control rules and a cleanup routine after every session.

Written by

ScreenSync MCP team

The ScreenSync MCP team at EpsolDev builds the Android app, the desktop MCP hub and the browser extension that let AI agents see and control a real phone. These guides come out of that work.