
iPhone MCP
io.github.DamienDrash由 GitHub 账号 DamienDrash 发布v0.9.0更新于 Nov 19, 2026
See and control a real iPhone over USB or Wi-Fi: screenshots, UI tree, taps, swipes, typing, apps.
发布方自己的服务:PhoneMCP: AI-powered texts
概览
让助手通过 USB 或 Wi-Fi 查看并操控真实 iPhone:截图、UI 树、点击、滑动、输入、启动应用和打开深链。
- 可以做什么
- 启动和停止手机上的 WebDriverAgent,查看连接、屏幕尺寸、锁定状态和前台应用
- 截取按 iOS 点缩放的屏幕截图,读取带文字和中心点的可见 UI 树
- 点击、双击、长按、按文字点击、滑动、滚动、双指缩放、输入文字,以及按 Home 或音量键
- 等待文字出现或消失,而不必猜测延时
- 按名称或 bundle ID 列出、启动和关闭应用,并打开网址或深链
- 锁定或唤醒屏幕,并开关保持屏幕常亮
- 适用场景
- 适合让助手操作真机而非模拟器的场景:走查应用各页面、测试注册流程并逐步截图,或读取手机屏幕上的内容。
- 运行要求
- 以 uvx 运行的本地 Python 进程;需要一台开启开发者模式和 UI 自动化的真实 iPhone,并已通过数据线信任配对。WebDriverAgent 需用 Apple ID 构建并签名,这需要装有 Xcode 的 Mac,或在 Linux 和 Windows 上使用已签名的预构建应用。可选变量包括 IPHONE_MCP_MODE、IPHONE_MCP_UDID 和 IPHONE_MCP_WDA_URL。
安装
在 SourceWeft 中
- 打开 控制台中的 iPhone MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[CI] [PyPI] [Python] [MCP] [Platforms] [License: GPL v3] [Sponsor]
An MCP server that gives Claude Code, OpenAI Codex and any other MCP client
eyes and hands on a real, physical iPhone – over a cable or Wi-Fi.
Quick start · Tools · Wi-Fi · Linux & Windows · Reliability · Safety · Troubleshooting · Sponsor ❤
✨ Highlights
🚀 Quick start
You need: uv, an iPhone with an Apple ID, and a Mac with Xcode (for Linux / Windows see below).
1 · Prepare the iPhone (once)
- Connect it by cable, unlock it and tap Trust.
- Settings → Privacy & Security → Developer Mode → on (the phone restarts).
- Settings → Developer → Enable UI Automation → on.
2 · Build WebDriverAgent (once, and again after Xcode updates)
3 · Add it to your agent
Claude Code
OpenAI Codex
~/.codex/config.toml
Claude Desktop, Cursor, VS Code & other MCP clients
From a git checkout
4 · Ask, for example:
“Start the iPhone agent, open Settings and tell me which Wi-Fi I'm on.”
“Open the App Store, search for ‘Duolingo’ and show me the rating – don't install anything.”
“Test the sign-up flow of my TestFlight build and screenshot every step.”
🧠 How it works
WebDriverAgent is the XCUITest-based agent that Appium also uses. It runs as a test runner on the iPhone and exposes the UI over HTTP. iphone-mcp:
- builds or installs it,
- starts it with
xcodebuildor with pymobiledevice3's XCUITest service, - keeps one connection alive across cable and Wi-Fi,
- turns it all into a handful of tools a model can use well.
🧰 Tools
📶 Wi-Fi
- Connect the iPhone by cable once. In Xcode open Window → Devices and Simulators, select the iPhone and tick Connect via network.
- Put the iPhone and your Mac on the same Wi-Fi. The iPhone must be on Wi-Fi, not only on mobile data.
- Unplug.
uvx iphone-mcp doctorshould now sayconnected via Wi-Fi.
iphone-mcp uses the tunnel that Xcode itself keeps to the phone. That tunnel works the same over cable and Wi-Fi, so a flaky cable is not a problem once Wi-Fi is set up.
🔆 Screen lock
🐧 Linux & Windows
Everything except building WebDriverAgent works without a Mac. iphone-mcp starts WebDriverAgent through pymobiledevice3's XCUITest service and its root-free userspace tunnel (iOS 17.4+), over USB or Wi-Fi.
You can also leave WebDriverAgent running from a Mac and drive it from anywhere on the network:
Tested on
Help wanted: if you run iphone-mcp on iOS 17/18, Windows or Linux, please
open an issue with the output of iphone-mcp doctor and
iphone-mcp selftest, even if everything works.
⌨️ Command line
⚙️ Configuration
iphone-mcp writes files only to these places, never to your project:
🔁 Reliability
- Self-healing: if WebDriverAgent crashes or the cable drops mid-session, the next tool call restarts it and retries once. If that is impossible (for example because the iPhone is locked), the tool says why.
- Several agent windows, one iPhone: every iphone-mcp process joins the running WebDriverAgent session instead of replacing it, and none stops the agent while another still uses it.
- Cleans up: when the last iphone-mcp server exits, WebDriverAgent is stopped, so port 8100 is not left
open on the phone. An agent you started by hand with
iphone-mcp startkeeps running. - Check it yourself:
iphone-mcp selftestdrives the real phone through a harmless sequence and prints ✓/✗ per step.
📐 Versioning
iphone-mcp follows Semantic Versioning. The public interface is the set of MCP tools, their parameters and annotations, the CLI commands and the environment variables documented here.
- 0.9 is the release candidate for 1.0 (now): the interface is frozen; until 1.0 only fixes and documentation change. Earlier 0.x releases could still rename or merge tools (see the CHANGELOG).
- From 1.0 on: tools and parameters are only removed or renamed in a new major version. A tool that is going away is first marked deprecated in its description and the CHANGELOG, and keeps working for at least one minor release. New optional parameters and new tools come in minor releases.
- The interface is pinned by a snapshot test (
tests/api_contract.json), so no change slips through by accident.
🛡️ Safety
This gives an AI agent hands on your real phone, with your accounts, messages and payment methods.
- The server tells the agent to ask before anything with real-world effect: sending messages, purchases, payments, deleting data, changing account or security settings. Watch what it does anyway, and keep your client's tool approvals on.
- iphone-mcp never types passwords or passcodes.
- While WebDriverAgent runs, it listens on port 8100 on the iPhone without authentication. Use trusted networks only, and stop it when you're done (
iphone-mcp stop).
See SECURITY.md for how to report vulnerabilities.
🩺 Troubleshooting
Logs: ~/Library/Logs/iphone-mcp/wda.log (runtime) and build.log (setup).
🤝 Contributing
Issues and pull requests are welcome – see CONTRIBUTING.md. Run the checks with:
👤 Author
Built by Damien Frigewski – @DamienDrash.
💖 Support the project
iphone-mcp is free and open source, and it stays that way. If it saves you time, you can support its development through GitHub Sponsors. Monthly and one-time options are available, and every amount helps. Sponsors get nothing extra in the software; it's simply a thank-you that keeps the work going.
[Sponsor Damien Frigewski on GitHub]
A ⭐ on GitHub helps too – it makes iphone-mcp easier for others to find.
📄 License & credits
GPL-3.0-or-later. The GPL follows from pymobiledevice3, which iphone-mcp builds on.
WebDriverAgent (BSD-3-Clause, © Meta Platforms and Appium contributors) is downloaded and built or installed on your own machine; it is not redistributed here.
Not affiliated with Apple. iPhone, iOS and Xcode are trademarks of Apple Inc.
来源:README.md,提交 46e38ae
工具
0版本历史
1- v0.9.0最新Nov 19, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Phone-Mcp 集成
PhoneMCP: AI-powered texts
com.phone-mcp官方发布者
远程 MCP 端点,让助手通过用户自己的手机收发短信,并可自动获取验证码。

Zoom Phone MCP Server
由 GitHub 账号 zoom 发布
远程 Zoom Phone MCP 服务器,让助手管理站点、用户、通话套餐、电话号码、队列等电话系统配置。

Zoom Phone MCP
由 GitHub 账号 Servosity 发布
非官方的本地 MCP 服务器与命令行工具,封装 Zoom Phone 管理 API,并提供跨客户账号的 E911、呼叫路由和桌面话机审计。

ERIUS PHONE
由 GitHub 账号 Protremix 发布
让助手操控托管的 ERIUS PHONE Android 设备:读取屏幕、点击输入、启动应用、安装 APK 并获取崩溃日志。

China Phone MCP
由 GitHub 账号 bg7iuy 发布
一个远程 MCP 服务器,让助手根据中国手机号号段查询运营商、省份、城市和区号。