Skip to content
MCP server

phonectl-mcp MCP Server

MCP server that lets AI agents see and drive a real iPhone from a Mac, over USB or Wi-Fi. Several agents can share one phone. Nothing to install on the phone.

phonectl-mcp scores 48 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 4 tools. Filed under Uncategorized. GitHub shows 23 stars. Package registries report about 262 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by jiefeng-aiMITPython23 stars
Trust score
48Fair
Trust score 48 of 100, Fair

Fair trust

48 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 48 comes from

0 + 20 + 4 + 10 + 4 + 10 = 48. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "jiefeng-ai-phonectl-mcp": {      "command": "uvx",      "args": [        "phonectl-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools4Tool docs quality grade C

All capabilities
  • home, lock, volume-up, volume-down, mute, siri

  • A key or chord, such as enter or cmd+a

  • Text on screen with positions, as JSON. Much cheaper than an image

  • Types into the focused field by pasting, so the phone's input method cannot change it; submit with presskey('enter'). method="keys" types key by key, for fields that refuse pasting

About

An MCP server for screenshots, on-screen text, taps, swipes, typing, buttons, apps and the clipboard on an iPhone connected to your Mac. Nothing to install on the phone, no Xcode, no jailbreak. Several agents and scripts can use it at once: they take turns, and none taps on another's screen.

Requirements

  • A Mac with uv
  • An iPhone on iOS 27 or later, with Developer Mode on
  • A USB data cable for the first setup. After that, Wi-Fi works too

Tested on an iPhone 17 Pro with iOS 27.2 and macOS 27.

Install

uv tool install phonectl-mcp
phonectl install-service      # runs the server at login on http://127.0.0.1:47321/mcp
phonectl doctor               # checks cable, trust, Developer Mode, disk image and server
phonectl setup claude-code    # or: codex, gemini (the desktop app), deepseek-harness

Reload the agent as setup says, then ask it for a screenshot of the phone. setup adds the server and its token to the agent's MCP config, the phonectl-scripts skill, and, for Claude Code, Codex and Gemini, a hook that frees the phone when the agent's turn ends (Codex asks you to approve it once). It backs up each file it changes as <file>.phonectl.bak.

Or paste this to your coding agent:

Install phonectl-mcp by following https://github.com/jiefeng-ai/phonectl-mcp#install and connect yourself with phonectl setup. Run phonectl doctor until it passes. When I need to do something on the phone, tell me step by step and wait for me. Finally, tell me how to restart you so the phone tools load.

Add the server by hand. The agent gets the phone but not the skill, so scripts it writes will not know to yield the phone to other agents.

{
  "mcpServers": {
    "phone": {
      "url": "http://127.0.0.1:47321/mcp",
      "headers": { "Authorization": "Bearer <contents of ~/.config/phonectl/token>" }
    }
  }
}

Tools

Coordinates are iOS points, the same as the pixels of the returned screenshot.

ToolWhat it does
screenshotCaptures the screen
read_textText on screen with positions, as JSON. Much cheaper than an image
tap_text, wait_textTap text found on screen; wait until text appears or goes away
tap, long_press, swipeTouch. To scroll down, swipe upward
type_textTypes into the focused field by pasting, so the phone's input method cannot change it; submit with press_key('enter'). method="keys" types key by key, for fields that refuse pasting
press_keyA key or chord, such as enter or cmd+a
press_buttonhome, lock, volume-up, volume-down, mute, siri
launch_app, list_appsOpens apps (with url, hands the app a link to open), finds bundle ids
get_clipboard, set_clipboardThe phone's clipboard
statusThe server, the phone link, and who is using the phone

Tools that act on the phone return a screenshot taken afterwards (screenshot=False skips it). Taps are not confirmed, so check that screenshot.

Scripts. A fixed sequence of steps runs faster and cheaper as a script than as one model round trip per step. A script is one more MCP client of the same server (same URL, same token); never connect to the phone directly. Agents connected with phonectl setup get the full rules in the phonectl-scripts skill.

phonectl hold 30m keeps agents off the phone while you use it; phonectl hold off ends that.

How it works

The server drives the phone through Apple's developer services, using pymobiledevice3. Taps and keys take the same path as Xcode's device mirroring, which is why it needs iOS 27. read_text reads the screen on the Mac with Apple's Vision framework. The only thing put on the phone is Apple's developer disk image, which the server mounts by itself: no WebDriverAgent, no app, no jailbreak.

Troubleshooting

Run phonectl doctor first. It tells you which link is broken.

SymptomFix
No iPhone foundUse a data cable, unlock the phone, replug
"Mac is not trusted"Unlock the phone, replug, tap Trust
No Developer Mode switchRun phonectl doctor --fix; the switch appears under Settings › Privacy & Security
Disk image install failsThe server installs the developer disk image on first connect and downloads it from GitHub; check the network or proxy, then phonectl restart
Taps do nothingNeeds iOS 27+; keep the screen on and unlocked
Wi-Fi link dropsA locked phone leaves the network for up to minutes at a time. Unlock it and wait a few seconds
Clients cannot connectphonectl restart, then check ~/Library/Logs/phonectl.error.log. A 401 means the client's token differs from ~/.config/phonectl/token

Security

  • The server listens only on 127.0.0.1 and rejects requests without the token.
  • An agent can do anything your finger can: send messages, pay, delete. Keep its instructions narrow and watch the screen. Use at your own risk; automating third-party apps may break their terms.

Settings

VariableDefaultMeaning
PHONECTL_UDIDfirst connected iPhoneWhich phone to use when several are connected
PHONECTL_PORT47321HTTP port (127.0.0.1 only)
PHONECTL_TOKEN_FILE~/.config/phonectl/tokenWhere the token is kept
PHONECTL_SCALE3Pixels per point; 2 on iPhone SE, XR, 11. Only affects screenshot size
PHONECTL_OCR_LANGSzh-Hans,en-USread_text languages, in priority order
PHONECTL_SETTLE0.6Seconds to wait before the screenshot after an action; settle_ms overrides it per call
PHONECTL_TOUCH_IDLE30Idle seconds before the input stream closes (reopening takes ~0.6 s)
PHONECTL_KEY_IDLE5Seconds without a key before the virtual keyboard detaches, so the on-screen keyboard comes back
PHONECTL_CALL_TIMEOUT15Seconds to wait for the phone, on top of the gesture time
PHONECTL_IDLE90Seconds without a call after which a client that has not said it is done counts as done, if someone waits
PHONECTL_WAIT50Seconds a call waits in line before it ends with WAITING; keep it below the clients' own tool timeouts
PHONECTL_MAX_HOLD1800After holding the phone this long, a client lets a waiting one go first
PHONECTL_LOGWARNINGLog level (INFO for the service, which logs each call with its client); logs in ~/Library/Logs/phonectl*.log; a log over 10 MB moves to <file>.1, replacing the older one

Update and uninstall

uv tool upgrade phonectl-mcp && phonectl restart && phonectl update

What changed in each version: Releases.

To uninstall, run phonectl setup --remove <agent> for each agent you connected, then:

phonectl uninstall-service
uv tool uninstall phonectl-mcp
rm -r ~/.config/phonectl

License

MIT

Frequently asked questions

What is phonectl-mcp MCP Server?

MCP server that lets AI agents see and drive a real iPhone from a Mac, over USB or Wi-Fi. Several agents can share one phone. Nothing to install on the phone.

How do I install phonectl-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. phonectl-mcp MCP Server runs locally from the PyPI package phonectl-mcp with the command uvx phonectl-mcp.

Is phonectl-mcp MCP Server free and open source?

Yes. phonectl-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does phonectl-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for phonectl-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does phonectl-mcp MCP Server provide?

phonectl-mcp MCP Server provides 4 tools: press_button, press_key, read_text, and type_text. See the full tool list for descriptions and parameters.

How is phonectl-mcp MCP Server's trust score calculated?

phonectl-mcp MCP Server scores 48 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server