local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Integrates with Facebook's IDB tool to communicate with and control iOS simulators, enabling the MCP server to perform UI automation tasks.
Provides tools for interacting with iOS simulators, including getting simulator information, controlling UI interactions (tapping, swiping, text input), and inspecting UI elements for accessibility testing and automation.
Enables operation on macOS systems where iOS simulators run, providing simulator access and control capabilities specific to the macOS environment.
iOS 模拟器 MCP 服务器
用于与 iOS 模拟器交互的模型上下文协议 (MCP) 服务器。此服务器允许您通过获取 iOS 模拟器信息、控制 UI 交互以及检查 UI 元素来与它们交互。
https://github.com/user-attachments/assets/453ebe7b-cc93-4ac2-b08d-0f8ac8339ad3
特征
- 获取当前启动的iOS模拟器的ID
- 与模拟器 UI 交互:
- 描述屏幕上的所有无障碍元素
- 点击屏幕坐标
- 输入文本
- 在坐标之间滑动
- 获取特定坐标处的 UI 元素的信息
- 截取模拟器屏幕的屏幕截图
- 使用环境变量过滤特定工具
配置
环境变量
IOS_SIMULATOR_MCP_FILTERED_TOOLS
:以逗号分隔的工具名称列表,用于过滤已注册的工具。例如:screenshot,record_video,stop_recording
💡 用例:代理模式下的 QA 步骤
此 MCP 可在代理模式下有效使用,作为实现功能后立即执行的质量保证步骤,确保 UI 一致性和正确行为。
如何使用
功能实现后:
- 在 Cursor 中激活代理模式。
- 使用以下提示快速验证和记录 UI 交互。
示例提示
- 验证 UI 元素:Copy
- 确认文本输入:Copy
- 检查点击响应:Copy
- 验证滑动操作:Copy
- 详细元素检查:Copy
- 截屏:Copy
- 录制视频:Copy
- 停止录制:Copy
先决条件
安装
选项 1:使用 NPX(推荐)
- 编辑您的 Cursor MCP 配置:Copy
- 将 iOS 模拟器服务器添加到您的配置中:Copy
- 重新启动光标。
选项 2:本地开发
- 克隆此存储库:Copy
- 安装依赖项:Copy
- 构建项目:Copy
- 编辑您的 Cursor MCP 配置:Copy
- 将 iOS 模拟器服务器添加到您的配置中:将Copy
"/path/to/your"
替换为项目目录的实际路径。 - 重新启动光标。
执照
麻省理工学院
You must be authenticated.
通过提供检查 UI 元素、控制 UI 交互以及通过自然语言命令管理模拟器的工具,实现与 iOS 模拟器的交互。