Labsco
atom2ueki logo

MCP Server for iOS Simulator

โ˜… 41

from atom2ueki

Programmatically control iOS simulators via stdio transport. Requires macOS with Xcode and installed iOS simulators.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

๐Ÿ“ฑ MCP Server for iOS Simulator

smithery badge

A server that implements the Model Context Protocol (MCP) for iOS simulators, built on top of appium-ios-simulator and utilizing the MCP TypeScript SDK.

Server for iOS Simulator MCP server

๐Ÿ“‹ Overview

This project provides a bridge between iOS simulators and the Model Context Protocol, allowing for standardized communication with iOS simulator instances. It enables programmatic control of iOS simulators while leveraging the MCP protocol for consistent interfaces across different environments. The server utilizes stdio as its transport mechanism, making it ideal for integration with Claude Desktop and other MCP-compatible clients.

๐ŸŽฌ Demo

iOS Simulator Demo

Demo showing how to boot an iOS simulator using Claude AI Desktop

๐Ÿ—๏ธ Architecture

The server consists of three main components:

  1. ๐Ÿ”„ Simulator Management Layer - Handles iOS simulator lifecycle and interactions
  2. ๐Ÿ”Œ MCP Protocol Implementation - Implements the Model Context Protocol using the TypeScript SDK with stdio transport
  3. ๐Ÿ“Š Logger Component - Provides file-based logging without interfering with the stdio transport
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  MCP Protocol   โ”‚     โ”‚     Stdio       โ”‚     โ”‚    Simulator    โ”‚
โ”‚  Implementation โ”‚โ—„โ”€โ”€โ”€โ”€โ”ค    Transport    โ”‚โ—„โ”€โ”€โ”€โ”€โ”ค   Management    โ”‚
โ”‚                 โ”‚     โ”‚                 โ”‚     โ”‚      Layer      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ–ฒ                                                โ–ฒ
        โ”‚                                                โ”‚
        โ–ผ                                                โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   MCP Client    โ”‚                             โ”‚  iOS Simulator  โ”‚
โ”‚  (e.g. Claude)  โ”‚                             โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โœจ Features

  • ๐Ÿš€ Start, stop, and manage iOS simulator instances
  • ๐Ÿ”Œ Boot and shutdown simulators
  • ๐Ÿ“ฒ Install and launch applications on simulators
  • ๐Ÿ“ธ Take screenshots of simulator screens
  • ๐Ÿ‘† Perform taps on coordinates
  • ๐Ÿ”„ Support for multiple concurrent simulator sessions
  • ๐Ÿ“ Comprehensive file-based logging without console output
  • ๐Ÿ›ก๏ธ Error-resilient operation

๐Ÿ‘จโ€๐Ÿ’ป Development

๐Ÿ“ Project Structure

src/
โ”œโ”€โ”€ simulator/       # Simulator management layer
โ”œโ”€โ”€ mcp/             # MCP protocol implementation
โ”œโ”€โ”€ bridge/          # Bridge component
โ”œโ”€โ”€ utils/           # Utility functions including logger
โ”œโ”€โ”€ config.ts        # Configuration handling
โ””โ”€โ”€ index.ts         # Entry point

๐Ÿ”จ Building the Project

# Install development dependencies
npm install

# Run TypeScript compiler
npm run build

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments