MCP Server for iOS Simulator
Programmatically control iOS simulators via stdio transport. Requires macOS with Xcode and installed iOS simulators.
π± MCP Server for iOS Simulator
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.
π 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

Demo showing how to boot an iOS simulator using Claude AI Desktop
ποΈ Architecture
The server consists of three main components:
- π Simulator Management Layer - Handles iOS simulator lifecycle and interactions
- π MCP Protocol Implementation - Implements the Model Context Protocol using the TypeScript SDK with stdio transport
- π 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
π Prerequisites
- π’ Node.js (v16 or later)
- π macOS (required for iOS simulators)
- π οΈ Xcode with iOS simulators installed
- π TypeScript 4.5+
π§ Installation
Installing via Smithery
To install iOS Simulator Control Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @atom2ueki/mcp-server-ios-simulator --client claude
Manual Installation
# Clone the repository
git clone https://github.com/atom2ueki/mcp-server-ios-simulator.git
cd mcp-server-ios-simulator
# Install dependencies
npm install
π³ Docker
A Dockerfile is provided so the server can be packaged for the Glama MCP directory and other container hosts.
docker build -t mcp-server-ios-simulator .
docker run --rm -i mcp-server-ios-simulator
Note: iOS simulators only run on macOS, so a Linux container can host the MCP process and respond on stdio but cannot drive a real simulator. The container is intended for portability checks and remote MCP environments that bridge to a macOS host.
βοΈ Configuration
Configuration is handled through the src/config.ts file:
const config = {
simulator: {
defaultDevice: process.env.SIMULATOR_DEFAULT_DEVICE || 'iPhone 16',
defaultOS: process.env.SIMULATOR_DEFAULT_OS || '18.2',
timeout: parseInt(process.env.SIMULATOR_TIMEOUT || '30000', 10),
}
};
You can customize these settings by setting environment variables:
SIMULATOR_DEFAULT_DEVICE=iPhone 16
SIMULATOR_DEFAULT_OS=18.2
SIMULATOR_TIMEOUT=30000
π Usage
π¨ Building and Starting the Server
# Build the project
npm run build
# Start the server
npm start
π§° MCP Tools
The server provides two distinct approaches for controlling iOS simulators:
π± Direct Simulator Management (Recommended)
These tools work directly with simulator UDIDs and don't require maintaining sessions:
- π
list-available-simulators- List all available simulators with their UDIDs - βΆοΈ
boot-simulator-by-udid- Boot a simulator directly using its UDID - βΉοΈ
shutdown-simulator-by-udid- Shutdown a simulator directly using its UDID - π
list-booted-simulators- List all currently booted simulators
Use this approach when: You just want to boot, use, and shut down simulators directly.
π± Session-Based Management (Advanced)
These tools use a session layer that tracks simulators with custom session IDs:
- π
list-simulator-sessions- List all active simulator sessions - β
create-simulator-session- Create a new simulator session - β
terminate-simulator-session- Terminate a session (shuts down simulator and cleans up) - π
create-and-boot-simulator- Create a new simulator session and boot it - βΆοΈ
boot-simulator- Boot a simulator for an existing session - βΉοΈ
shutdown-simulator- Shutdown a simulator for an existing session
Use this approach when: You need to track simulator metadata, reference simulators by custom IDs, or use the more advanced management features.
π² Application Management
- π₯
install-app- Install an application on a simulator - π
launch-app- Launch an application on a simulator - π
terminate-app- Terminate a running application on a simulator
π±οΈ Interaction Tools
- π·
take-screenshot- Take a screenshot of the simulator screen - π
tap-coordinate- Perform a tap at the specified coordinates
π€ Example Usage with Claude Desktop
-
Configure Claude Desktop to use this server as an MCP tool:
- Open Claude Desktop
- Go to Settings > Advanced
- Add the following configuration to the "MCP Servers" section:
{ "mcpServers": { "simulator": { "command": "node", "args": [ "/path/to/your/mcp-server-ios-simulator/dist/index.js" ] } } }- Replace
/path/to/yourwith the actual path to where you've installed this repository - Save the settings and restart Claude Desktop
-
Use the provided tools to control iOS simulators directly from Claude Desktop:
Direct UDID Approach (Recommended):
-
First, ask Claude to list available simulators:
"Show me all available iOS simulators" -
Then use the UDID to boot a specific simulator:
"Boot the iOS simulator with UDID 5272EA61-5796-4372-86FE-3B33831D5CC1" -
When finished, shut it down using the same UDID:
"Shut down the simulator with UDID 5272EA61-5796-4372-86FE-3B33831D5CC1"
The direct UDID approach is simpler and more reliable for most use cases.
Session-Based Approach (Advanced): Only use this approach if you need the advanced features of session tracking:
"Create a new simulator session for iPhone 16 Pro with iOS 18.2" "Boot the simulator for session abc-123" "Take a screenshot of the simulator for session abc-123" "Terminate the simulator session abc-123" -
π¨βπ» 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
- π± appium-ios-simulator for providing the iOS simulator interaction capabilities
- π Model Context Protocol for the protocol specification and TypeScript SDK
Verwandte Server
Alpha Vantage MCP Server
SponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
FastMCP
A TypeScript framework for building MCP servers with client session handling.
Python MCP Server for Code Graph Extraction
Extracts and analyzes Python code structures, focusing on import/export relationships.
MCP Image Placeholder Server
Generates placeholder images from various providers like placehold.co and lorem-picsum.
GoThreatScope
Go-based SBOM, vulnerability, and secret scanner with MCP support.
mcp-doctor
Diagnose, secure, and benchmark your MCP servers
DocuMind MCP Server
An MCP server for analyzing documentation quality using advanced neural processing.
markmap-http-mcp
An MCP server for converting Markdown to interactive mind maps with export support (PNG/JPG/SVG). Server runs as HTTP service.
Sailor
Generate and render Mermaid diagrams as images using LLMs.
VSCode MCP
Enables AI agents and assistants to interact with VSCode through the Model Context Protocol.
Clangaroo
Provides fast C++ code intelligence for LLMs using the clangd language server.