iOS Simulator MCP
Drives the iOS Simulator on the user's machine: lists and boots simulators, captures screenshots for visual inspection, dumps the UI accessibility hierarchy, performs taps, long presses, swipes and text entry, presses hardware buttons and shakes, installs/launches/terminates apps and opens deep-link URLs, and sets or clears simulated GPS coordinates.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
iOS Simulator MCP
An MCP (Model Context Protocol) server that provides tools to interact with the iOS Simulator. Take screenshots, inspect UI hierarchy, tap, swipe, type, set GPS location, and more.
Works with any MCP-compatible client, including Claude Code, Claude Desktop, and others.
Quick Start
# 1. Install prerequisites
xcode-select --install
brew tap facebook/fb
brew install idb-companion uv pipx
pipx ensurepath
pipx install fb-idb --python python3.11
# 2. Clone and install the MCP
git clone https://github.com/whitesmith/ios-simulator-mcp.git ~/ios-simulator-mcp
cd ~/ios-simulator-mcp
uv sync
# 3. Add to Claude Code settings (see Configuration section below)
claude mcp add ios-simulator \
-- uv run --directory ~/ios-simulator-mcp ios-simulator-mcp
# 4. Restart Claude CodeRelated MCP server: preflight-ios-mcp
Architecture
This MCP uses two underlying tools:
Tool | Source | Used For |
| Built into Xcode | Simulator management, screenshots, location, URLs |
| Facebook IDB | UI interactions (tap, swipe, type), UI hierarchy, app management |
Prerequisites
1. Xcode Command Line Tools
xcode-select --install2. Facebook IDB (iOS Development Bridge)
IDB is required for UI interactions (tap, swipe, type, UI hierarchy). It has two components that must both be installed:
a) idb-companion (the backend service)
brew tap facebook/fb
brew install idb-companionb) idb CLI (the command-line interface)
The idb command comes from the fb-idb Python package. Install it globally with pipx:
# Install pipx if you don't have it
brew install pipx
pipx ensurepath
# Install fb-idb globally (use Python 3.11 for compatibility)
pipx install fb-idb --python python3.11Note: The
fb-idbpackage has compatibility issues with Python 3.14. Use Python 3.11 or 3.12.
Verify IDB installation
# Check idb-companion
which idb_companion
# Should output: /opt/homebrew/bin/idb_companion
# Check idb CLI
which idb
# Should output: ~/.local/bin/idb
# Test connectivity
idb list-targets
# Should list all available simulators3. uv (Python package manager)
brew install uvInstallation
Clone the repository and install dependencies:
git clone https://github.com/whitesmith/ios-simulator-mcp.git ~/ios-simulator-mcp
cd ~/ios-simulator-mcp
uv syncConfiguration
Claude Code
The quickest way is using the CLI:
claude mcp add ios-simulator -- uv run --directory /Users/yourname/ios-simulator-mcp ios-simulator-mcpOr manually add to ~/.claude/settings.json (global) or .mcp.json in your project root (project-specific):
{
"mcpServers": {
"ios-simulator": {
"command": "uv",
"args": ["run", "--directory", "/Users/yourname/ios-simulator-mcp", "ios-simulator-mcp"]
}
}
}Replace /Users/yourname/ios-simulator-mcp with the absolute path where you cloned the repository.
Note: Use an absolute path (e.g.,
/Users/yourname/ios-simulator-mcp), not~, since JSON values are not processed by a shell.
Then restart Claude Code or run /mcp to reload MCP servers.
Claude Desktop
Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"ios-simulator": {
"command": "uv",
"args": ["run", "--directory", "/Users/yourname/ios-simulator-mcp", "ios-simulator-mcp"]
}
}
}Then restart Claude Desktop.
Available Tools
Simulator Management
Tool | Description |
| List all available simulators with state and UDID |
| Boot a simulator (auto-selects if none specified) |
| Get info about connected simulator |
Screenshots & UI Inspection
Tool | Description |
| Capture screenshot (returns image for visual inspection) |
| Get UI element tree with positions and labels |
User Interactions
Tool | Description |
| Tap at x,y coordinates |
| Long press at coordinates |
| Swipe from one point to another |
| Type text into focused field |
| Tap on field then type |
| Press hardware button (home, lock, siri, volume) |
| Trigger shake gesture |
App Management
Tool | Description |
| Launch app by bundle ID |
| Kill running app |
| Install .app bundle |
| Uninstall app by bundle ID |
| Open URL (great for deep links) |
Location
Tool | Description |
| Set GPS coordinates |
| Clear simulated location |
Utility
Tool | Description |
| Wait for specified seconds |
Usage Examples
Once configured, your MCP client can use these tools automatically. Here are some examples with Claude Code:
Visual verification after implementing a feature
Claude: Let me check how the new balance screen looks.
[Uses screenshot tool]
Claude: I can see the balance card is displaying correctly with the $50.00
amount. However, the "Add Funds" button appears to be cut off on the right edge.
Let me fix the padding...Testing a flow
Claude: I'll test the login flow.
[Uses launch_app with bundle_id "com.example.myapp"]
[Uses screenshot to see current state]
[Uses get_ui_hierarchy to find the email field coordinates]
[Uses tap_and_type to enter email]
[Uses tap to press login button]
[Uses wait for 2 seconds]
[Uses screenshot to verify login succeeded]Testing location-based features
Claude: Let me test the pickup location feature in San Francisco.
[Uses set_location with lat=37.7749, lng=-122.4194]
[Uses screenshot to verify map updated]Troubleshooting
MCP tools not appearing in Claude Code
Check that the MCP is configured in
~/.claude/settings.jsonor.mcp.jsonRestart Claude Code or run
/mcpto reload serversCheck for errors in the MCP server startup
"idb: command not found"
This is the most common issue. The fb-idb Python package must be installed globally, not just in the MCP's virtual environment:
# Install pipx if needed
brew install pipx
pipx ensurepath
# Install fb-idb globally with Python 3.11 (3.14 has compatibility issues)
pipx install fb-idb --python python3.11
# Verify
which idb # Should show ~/.local/bin/idb"No simulator connected"
The MCP will auto-connect to a booted simulator. If none is booted, use:
boot_simulator with device_name="iPhone 15 Pro"Or boot one manually:
xcrun simctl boot "iPhone 16"IDB connection issues
Restart the idb companion:
idb kill
idb_companion --udid <simulator-udid>Or connect manually:
idb connect <simulator-udid>UI hierarchy returns empty
Make sure the simulator has an app open. The accessibility tree may be empty on the home screen or system dialogs.
Screenshots fail
Ensure the simulator is fully booted and visible. Test with:
xcrun simctl io booted screenshot /tmp/test.pngPython version issues with fb-idb
If you see errors like RuntimeError: There is no current event loop, you're likely using Python 3.14 which has asyncio changes incompatible with fb-idb. Reinstall with an older Python:
pipx uninstall fb-idb
pipx install fb-idb --python python3.11Development
cd ~/ios-simulator-mcp
uv sync
uv run ios-simulator-mcp # runs the server directly (for testing)How It Works
When the MCP client calls a tool:
Simulator management (
list_simulators,boot_simulator) usesxcrun simctlScreenshots use
xcrun simctl io <udid> screenshotUI interactions (
tap,swipe,type_text) useidb uicommandsUI hierarchy uses
idb ui describe-allto get the accessibility treeApp management (
launch_app,terminate_app) usesidbcommandsLocation uses
xcrun simctl location
The MCP automatically connects to an already-booted simulator, or boots the latest iPhone if none is running.
Limitations
macOS only - iOS Simulator only runs on macOS
Simulator only - Does not support physical iOS devices (idb does, but this MCP is configured for simulators)
UI hierarchy on app screens - The accessibility tree may be empty or limited on the home screen, system dialogs, or apps without accessibility labels
Coordinate-based interactions - Taps and swipes use absolute coordinates; you'll need to use
get_ui_hierarchyto find element positionsNo gesture recording - Complex multi-touch gestures are not supported
Screenshot size - Screenshots are compressed to JPEG and capped at ~2MB for efficient transmission
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, run, and inspect iOS apps in disposable hosted Simulators from cloud coding agents.
Create App Store screenshots, icons, ASO copy, localization, and revisions via hosted MCP.
Open a React Native app in a simulated phone: read the screen, tap, type, set device state.
Cloud iPhone Simulators for AI agents: build the Xcode project, read the screen, tap by label, test.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI to control iOS simulators through the MCP protocol. Supports device management, UI automation, and network interception including screenshot capture, text input, and HTTP request mocking.-
- AlicenseNot gradedqualityDmaintenanceComprehensive MCP server for iOS Simulator automation, enabling AI agents to control simulators via tap, swipe, type, accessibility inspection, app debugging, and device management.67 npm2MIT
- AlicenseAqualityBmaintenanceEnables driving an iOS Simulator from a model: taking screenshots, reading the UI tree, tapping, swiping, typing, managing app lifecycle and device state such as appearance, permissions, location, and notifications, without code signing or a physical device.2539 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables mirroring and controlling the iOS Simulator from MCP clients, providing a live viewer, agent cursor tracking, and token-efficient UI snapshots for automation.263 PyPI2Apache 2.0