Cover image
Try Now
2025-04-06

用于与iOS模拟器进行交互的MCP服务器

3 years

Works with Finder

3

Github Watches

6

Github Forks

180

Github Stars

iOS Simulator MCP Server

NPM Version

A Model Context Protocol (MCP) server for interacting with iOS simulators. This server allows you to interact with iOS simulators by getting information about them, controlling UI interactions, and inspecting UI elements.

https://github.com/user-attachments/assets/453ebe7b-cc93-4ac2-b08d-0f8ac8339ad3

Features

  • Get the ID of the currently booted iOS simulator
  • Interact with the simulator UI:
    • Describe all accessibility elements on screen
    • Tap on screen coordinates
    • Input text
    • Swipe between coordinates
    • Get information about UI elements at specific coordinates
    • Take screenshots of the simulator screen
  • Filter specific tools using environment variables

Configuration

Environment Variables

  • IOS_SIMULATOR_MCP_FILTERED_TOOLS: A comma-separated list of tool names to filter out from being registered. For example: screenshot,record_video,stop_recording

💡 Use Case: QA Step in Agent Mode

This MCP can be used effectively in agent mode as a Quality Assurance step immediately after implementing features, ensuring UI consistency and correct behavior.

How to Use

After a feature implementation:

  1. Activate agent mode in Cursor.
  2. Use the prompts below to quickly validate and document UI interactions.

Example Prompts

  • Verify UI Elements:

    Verify all accessibility elements on the current screen
    
  • Confirm Text Input:

    Enter "QA Test" into the text input field and confirm the input is correct
    
  • Check Tap Response:

    Tap on coordinates x=250, y=400 and verify the expected element is triggered
    
  • Validate Swipe Action:

    Swipe from x=150, y=600 to x=150, y=100 and confirm correct behavior
    
  • Detailed Element Check:

    Describe the UI element at position x=300, y=350 to ensure proper labeling and functionality
    
  • Take Screenshot:

    Take a screenshot of the current simulator screen and save it to my_screenshot.png
    
  • Record Video:

    Start recording a video of the simulator screen (saves to ~/Downloads/simulator_recording_$DATE.mp4 by default)
    
  • Stop Recording:

    Stop the current simulator screen recording
    

Prerequisites

  • Node.js
  • macOS (as iOS simulators are only available on macOS)
  • Xcode and iOS simulators installed
  • Facebook IDB tool (see install guide)

Installation

Option 1: Using NPX (Recommended)

  1. Edit your Cursor MCP configuration:

    cursor ~/.cursor/mcp.json
    
  2. Add the iOS simulator server to your configuration:

    {
      "mcpServers": {
        "ios-simulator": {
          "command": "npx",
          "args": ["-y", "ios-simulator-mcp"]
        }
      }
    }
    
  3. Restart Cursor.

Option 2: Local Development

  1. Clone this repository:

    git clone https://github.com/joshuayoes/ios-simulator-mcp
    cd ios-simulator-mcp
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    
  4. Edit your Cursor MCP configuration:

    cursor ~/.cursor/mcp.json
    
  5. Add the iOS simulator server to your configuration:

    {
      "mcpServers": {
        "ios-simulator": {
          "command": "node",
          "args": ["/path/to/your/ios-simulator-mcp/build/index.js"]
        }
      }
    }
    

    Replace "/path/to/your" with the actual path to your project directory.

  6. Restart Cursor.

License

MIT

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

    Reviews

    3 (1)
    Avatar
    user_N6WkAbwk
    2025-04-17

    As a dedicated user of ios-simulator-mcp, I find this tool extremely valuable for iOS development. The seamless integration and comprehensive simulation features save me tons of time during the development and testing process. Kudos to joshuayoes for creating such an effective and user-friendly application. Highly recommend checking it out!