Thumbly 讓 MCP 智能體透過 Mac 操作實體 iPhone
Thumbly: connect an MCP agent to a real iPhone from your Mac
Thumbly 是一款免費開源的 Mac 應用程式,讓 MCP 智能體查看及操作實體 iPhone,0.1.0 版本現已推出。它支援截圖、點按、滑動及文字輸入等操作,iPhone 透過 USB 連接 Mac,完成首次 USB 配對後亦可使用 Wi-Fi。每個新客戶端須在 Mac 應用程式獲批,並可查看活動紀錄或暫停 AI 存取;連線不經雲端中繼,但雲端智能體可能收到返回 MCP 客戶端的截圖。
I'm the maker of Thumbly, a free, open-source Mac app that lets MCP agents see and operate a real iPhone. Version 0.1.0 is available now.
The short demo below shows Claude Code using it.
What the agent can do
Thumbly exposes native screenshots, taps, swipes, long presses, text entry, hardware buttons, app launching and device information. A Python SDK is also available for scripts.
The phone connects to your Mac over USB, or Wi-Fi after the first USB pairing. The service talks to Apple's CoreDevice services through pymobiledevice3. No jailbreak is required.
Where control lives
There are three parts to the flow:
MCP client → Thumbly service on the Mac → iPhone
↑
Thumbly Mac app
approve · inspect · pause
Each new client waits for approval in the Mac app. You can inspect the activity log and use Pause to stop AI access. This is client approval; it does not mean the owner confirms each individual tap.
The device connection runs through your Mac without a cloud relay. Your choice of agent still matters: a cloud-backed agent can receive the screenshots returned to its MCP client.
Try it with Claude Code
You'll need macOS 14 or later, an iPhone running iOS 17.4 or later, a USB data cable, and Apple's Command Line Tools.
- Install Thumbly using the instructions on the project site. The installer builds the Mac app and sets up the Python service.
- Connect and unlock the iPhone, then tap Trust.
- Enable Developer Mode under Settings → Privacy & Security and restart the phone. The initial developer disk image setup can take a few minutes.
- Add the local MCP endpoint to Claude Code:
claude mcp add --transport http thumbly http://127.0.0.1:8771/mcp
- In Claude Code, open
/mcp, select Thumbly and authenticate. Approve that client in the Mac app's Access screen. - Start with a small task you can verify, such as opening Notes and writing a test note. Watch the activity log as the agent works.
Other MCP clients can connect too. Claude.ai and ChatGPT require the separate remote-access setup documented in the repository.
For contributors
The repository contains the SwiftUI Mac app, Python service, Python SDK and documentation. The Mac app and SDK use Apache-2.0; the device service uses GPL-3.0 because it links to pymobiledevice3.
There is also a simulated-device mode for development without an iPhone:
thumbly serve --simulate
This is an early release. Feedback on pairing, client authentication and workflows that fail is particularly useful. When reporting a problem, include your macOS and iOS versions, USB or Wi-Fi, and the steps that reproduced it.
What phone workflow would you try first?
Disclosure: this article was prepared with AI assistance using Thumbly's public documentation.
來源:DEV Community · dev.to