
blitzdotdev/iphone-mcp 是从 https://github.com/blitzdotdev/iphone-mcp. 导入的 MCP 服务器候选
概览
blitzdotdev/iphone-mcp 是从 https://github.com/blitzdotdev/iphone-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
让AI能使用 iPhone 的 iPhone MCP 服务器
iPhone-mcp
MCP服务器让AI代理控制MacOS上的真实iPhone和iPhone模拟器。 可兼容Claude代码、光标、Codex、OpenCode及任何兼容MCP的AI代理。
要求
- macOS
- Xcode(从 App Store 或
xcode-select --install安装) - Node.js 18+
- 自制内容
安装
快速启动
全球(用于任何项目)
它会为所有 AI 代理安装依赖并配置 @blitzdev/iphone-mcp。它会自动设置 Claude Code、Cursor、Codex、OpenCode。
注意:对于光标,你需要在光标设置中启用 blitz-iphone MCP 服务器
项目范围(仅一个项目)
这会提示你选择要配置哪些 AI 代理(Claude Code、Cursor、Codex、OpenCode),并将配置文件写入你的项目目录。@blitzdev/iphone-mcp 只有在你在该目录中打开代理时才会显示出来。
那就直接问吧
开启一个新的AI代理会话并询问:
它能做什么?
| 能力 | 模拟器 | 实体 iPhone |
|---|---|---|
| 点击、滑动、输入文字 | 是的 | 是的 |
| 按按钮(主页、锁、Siri) | 是的 | 是的 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
iPhone-mcp
MCP server that lets AI agents control real iPhones and iPhone simulators on MacOS. Works with Claude Code, Cursor, Codex, OpenCode, and any MCP-compatible AI agent.
Requirements
- macOS
- Xcode (install from App Store or
xcode-select --install) - Node.js 18+
- Homebrew
Installation
npm install @blitzdev/iphone-mcp
Quick Start
Global (use in any project)
npx @blitzdev/iphone-mcp --setup-all
This installs dependencies and configures @blitzdev/iphone-mcp for all your AI agents. It automatically sets up Claude Code, Cursor, Codex, OpenCode.
NOTE: For Cursor, you need to enable the blitz-iphone MCP server in Cursor Settings
Project-scoped (one project only)
cd
npx @blitzdev/iphone-mcp --setup-here
This prompts you to choose which AI agents to configure (Claude Code, Cursor, Codex, OpenCode) and writes the config files into your project directory. @blitzdev/iphone-mcp will only be available when you open an agent inside that directory.
Then just ask
Open a new AI agent session and ask:
> scan the simulator screen and tell me what you see
> connect to my iPhone and test the login flow
> find bugs in my app — tap around, try edge cases, report anything weird
What can it do?
| Capability | Simulator | Physical iPhone |
|---|---|---|
| Tap, swipe, type text | Yes | Yes |
| Press buttons (Home, Lock, Siri) | Yes | Yes |
| Scan UI elements with coordinates | Yes | Yes |
| Take screenshots | Yes | Yes |
| List & launch installed apps | Yes | Yes |
| Auto-detect devices | Yes | Yes |
| Live screen viewer in browser | – | Yes |
iPhones
Connect your iPhone via USB or make sure it’s on the same Wi-Fi network (home/office networks work, public cafe Wi-Fi won’t).
First-time setup — your iPhone needs:
安装
npx @blitzdev/iphone-mcp配置
{
"mcpServers": {
"blitz-iphone": {
"command": "npx",
"args": ["@blitzdev/iphone-mcp"]
}
}
}