MCP Server for iOS Simulator

MCP Server for iOS Simulator

mcp-server-simulator-ios-idb•byinditextech

A Model Context Protocol server that lets LLMs control iOS simulators through natural language commands.

License: Apache-2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Creates and manages simulator sessions and boots, shuts down, and monitors simulator states.
  • •Installs and manages iOS applications, including launching, terminating, and uninstalling apps.
  • •Interacts with the simulator UI through tap, swipe, button press, text input, and screenshots.
  • •Supports location simulation, media injection, URL scheme handling, contact management, and keychain operations.

BEST FOR

  • •Developers and QA engineers automating iOS simulator workflows with natural language commands.
  • •LLM-driven UI testing on iOS simulators, including taps, swipes, text input, and screenshots.

ABOUT MCP-SERVER-SIMULATOR-IOS-IDB

MCP Server for iOS Simulator is cataloged as an MCP server attributed to inditextech. A Model Context Protocol server that lets LLMs control iOS simulators through natural language commands. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache-2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Server for iOS Simulator are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server be used as a standalone library in my own project?

Yes, the package can be used as a library, and importing deep component modules avoids starting the MCP server on import.

What are the system requirements to run this server?

It requires macOS, Node.js v20.0.0 or higher, Homebrew, and Xcode with iOS simulators installed.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ea97e3fd893d · 采集于 2026-11-13 09:36:02 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

📱 MCP Server for iOS Simulator

MCP Server

A Model Context Protocol (MCP) server that enables LLMs to interact with iOS simulators through natural language commands.

ℹ️ Overview

This MCP server provides a bridge between Large Language Models (LLMs) and iOS simulators, offering comprehensive control through natural language commands. Here's what it can do:

For detailed usage, see the Installation guide and Supported Commands sections. You can use this server either through direct MCP integration or as a standalone library.

Check out the Architecture section to understand how the components work together to enable natural language control of iOS simulators. For the full execution flow, component contracts, and the session model, see ARCHITECTURE.md. Guidance for agents and contributors working on this repository is in AGENTS.md.

demo

🎮 Simulator Control

  • Create and manage simulator sessions
  • Boot, shutdown, and monitor simulator states
  • List available and running simulators
  • Focus simulator windows

📱 Application Management

  • Install and manage iOS applications
  • Launch, terminate, and uninstall apps
  • Monitor app states and verify installations
  • Handle app permissions and configurations

🖱️ UI Interaction & Testing

  • Interact with the simulator UI
  • Execute tap, swipe, and button press actions
  • Input text and key sequences
  • Access accessibility elements for UI testing
  • Record videos of UI interactions

🛠️ Development & Debugging

  • Capture screenshots and system logs
  • Debug applications in real-time
  • Monitor and analyze crash logs
  • Install dynamic libraries and manage app data

⚡ Advanced Features

  • Additional functionality includes:
    • Location simulation
    • Media injection
    • URL scheme handling
    • Contact database management
    • Keychain operations

For detailed usage, see the Installation guide and Supported Commands sections. You can use this server either through direct MCP integration or as a standalone library.

Check out the Architecture section to understand how the components work together to enable natural language control of iOS simulators.

📋 Requirements

  • macOS: Required for iOS simulator support
  • Node.js: v20.0.0 or higher
  • Homebrew: Required for installing dependencies
  • XCode: With iOS simulators installed

🚀 Installation

The easiest way to install this server is through Cline:

  1. Simply ask Cline:
Add this mcp to cline https://github.com/InditexTech/mcp-server-simulator-ios-idb
  1. Cline will handle the installation process automatically, including dependency management and configuration.

Alternatively, you can install it manually:

# Clone the repository
git clone https://github.com/InditexTech/mcp-server-simulator-ios-idb.git
cd mcp-server-simulator-ios-idb

# Create and activate Python virtual environment
python3 -m venv venv
source venv/bin/activate  # On Unix/macOS

# Install dependencies
npm install

# Build the project
npm run build

# Start the project
npm start

# Run tests
npm test

The installation process will automatically:

  1. Check if you're running macOS
  2. Install idb-companion via Homebrew
  3. Install fb-idb via pip in the virtual environment

Note: Make sure to keep the virtual environment activated while using the server. If you close your terminal and come back later, you'll need to reactivate the virtual environment with the source venv/bin/activate command before running npm start.

🔌 MCP Integration

To use this server with Claude or other LLM assistants:

  1. Add the server to your MCP settings in Claude Desktop:
{
  "mcpServers": {
    "ios-simulator": {
      "command": "node",
      "args": ["/path/to/mcp-server-simulator-ios-idb/dist/index.js"],
      "env": {}
    }
  }
}
  1. The LLM can now use natural language commands to control iOS simulators:
create a simulator session with iPhone 14
install app /path/to/my-app.ipa
launch app com.example.myapp
tap at 100, 200
take a screenshot

📚 Usage as a Library

You can also use this package as a library in your own projects:

🔰 Basic Usage

⚠️ Import side effects: importing the package entry point ('mcp-server-simulator-ios-idb' / dist/index.js) runs the server startup code at module load: it overrides console output, creates a logs/ directory, registers SIGINT/SIGTERM/exception handlers, and starts the MCP stdio server unconditionally. There is currently no opt-out. This applies to any import of the package root — named imports do not opt out of the bootstrap. To use the parser/orchestrator/manager without transport and signal side effects, import the compiled component modules by deep path as shown below (dist/...); note that importing dist/mcp/mcp-server.js also bootstraps the MCP server singleton, so avoid that path for library use. The package only declares "main" (no exports map), so deep paths resolve normally.

// Deep imports of compiled component modules: these do NOT trigger the
// package root startup (no MCP stdio server, no signal handlers).
import { MCPOrchestrator } from 'mcp-server-simulator-ios-idb/dist/orchestrator/MCPOrchestrator.js';
import { NLParser } from 'mcp-server-simulator-ios-idb/dist/parser/NLParser.js';
import { IDBManager } from 'mcp-server-simulator-ios-idb/dist/idb/IDBManager.js';

async function main() {
  // Compose the components (equivalent to createMCPServer internals)
  const idbManager = new IDBManager();
  const parser = new NLParser();
  const orchestrator = new MCPOrchestrator(parser, idbManager);

  // Process natural language commands

  // Create a simulator session
  const sessionResult = await orchestrator.processInstruction('create session');
  console.log(`Session created: ${sessionResult.data}`);

  // Interact with the simulator
  await orchestrator.processInstruction('tap at 100, 200');

  // Capture a screenshot
  const screenshotResult = await orchestrator.processInstruction('take screenshot');
  console.log(`Screenshot saved at: ${screenshotResult.data}`);
}

main().catch(console.error);

ℹ️ The MCP server itself (currently defined in src/mcp/mcp-server.ts, not re-exported from the package entry point) is only meaningful when running the actual server process via npm start / an MCP client config; its createMCPServer() factory simply composes the same three components shown above.

🚀 Advanced Usage

You can also use the individual components directly via deep imports:

import { IDBManager } from 'mcp-server-simulator-ios-idb/dist/idb/IDBManager.js';

// Create instance and use it directly
const idbManager = new IDBManager();

const sessionId = await idbManager.createSimulatorSession({
  deviceName: 'iPhone 12',
  platformVersion: '15.0'
});

await idbManager.tap(sessionId, 100, 200);

🏗️ Project Structure

mcp-server-simulator-ios-idb/
├── src/                      # Source code
│   ├── adapters/             # Adapter components
│   ├── idb/                  # IDB manager implementation
│   ├── mcp/                  # MCP server implementation
│   ├── orchestrator/         # Command orchestrator
│   ├── parser/              # Natural language parser
│   └── index.ts             # Main entry point
├── scripts/                 # Installation scripts
├── package.json            # Project configuration
└── tsconfig.json          # TypeScript configuration

🎯 Supported Commands

The NLParser supports the following natural language commands:

🎮 Simulator Management

CommandDescriptionExample
Create sessionCreates a new simulator session"create session", "create simulator iPhone 12"
Terminate sessionTerminates the current session"terminate session", "close simulator"
List simulatorsLists available simulators"list simulators", "show simulators"
List booted simulatorsLists running simulators"list booted simulators", "show running simulators"
Boot simulatorBoots a simulator by UDID"boot simulator 5A321B8F-4D85-4267-9F79-2F5C91D142C2"
Shutdown simulatorShuts down a simulator"shutdown simulator 5A321B8F-4D85-4267-9F79-2F5C91D142C2"
Focus simulatorBrings simulator window to front"focus simulator", "bring simulator to front"
List simulator sessionsLists active simulator sessions"list simulator sessions", "show active sessions"

📱 App Management

CommandDescriptionExample
Install appInstalls an app on the simulator"install app /path/to/app.ipa"
Launch appLaunches an app on the simulator"launch app com.example.app"
Terminate appTerminates a running app"terminate app com.example.app"
Uninstall appUninstalls an app"uninstall app com.example.app"
List appsLists installed applications"list apps", "show installed apps"
Check if app installedChecks if an app is installed"is app com.example.app installed"

🖱️ UI Interaction

CommandDescriptionExample
TapTaps at specific coordinates"tap at 100, 200"
SwipePerforms a swipe gesture"swipe from 100, 200 to 300, 400"
Press buttonPresses a device button"press button HOME", "press button SIRI"
Input textTypes text"input text Hello World"
Press keyPresses a key by code"press key 4"
Press key sequencePresses a sequence of keys"press key sequence 4 5 6"

♿ Accessibility

CommandDescriptionExample
Describe elementsLists all accessibility elements (not implemented yet)"describe all elements", "show accessibility elements"
Describe pointDescribes element at coordinates (not implemented yet)"describe point 100, 200", "what's at 150, 300"

📸 Capture and Logs

CommandDescriptionExample
Take screenshotCaptures a screenshot"take screenshot", "capture screen"
Record videoRecords screen activity (not implemented yet)"record video /path/output.mp4"
Stop recordingStops video recording (not implemented yet)"stop recording", "stop video recording"
Get logsRetrieves system or app logs"get logs", "get logs for com.example.app"

🐛 Debug

CommandDescriptionExample
Start debugStarts a debug session (not implemented yet)"debug app com.example.app", "start debug com.example.app"
Stop debugStops a debug session (not implemented yet)"stop debug", "terminate debug session"
Debug statusGets debug session status"debug status", "show debug info"

💥 Crash Logs

CommandDescriptionExample
List crash logsLists available crash logs"list crash logs", "show crash logs"
Show crash logShows content of a crash log"show crash log crash_2023-01-01"
Delete crash logsDeletes crash logs of an app, or all of them when asked explicitly"delete crash logs for com.example.app", "delete all crash logs"

🔧 Additional Commands

CommandDescriptionExample
Install dylibInstalls a dynamic library"install dylib /path/to/library.dylib"
Open URLOpens a URL in the simulator"open url https://example.com"
Clear keychainClears the simulator's keychain"clear keychain"
Set locationSets the simulator's location"set location 37.7749, -122.4194"
Add mediaAdds media to the camera roll"add media /path/to/image.jpg"
Approve permissionsApproves app permissions"approve permissions com.example.app photos camera"
Update contactsUpdates contacts database"update contacts /path/to/contacts.sqlite"

The interface supports all commands available in the idb CLI tool, providing a comprehensive set of operations for iOS simulator automation.

🔍 Architecture

The server consists of three main components:

  1. IDBManager: Low-level component that interacts directly with iOS simulators through idb.
  2. NLParser: Component that interprets natural language instructions and converts them into structured commands.
  3. MCPOrchestrator: Central component that coordinates interactions between the parser and the IDBManager.

These components are connected through adapters:

  • ParserToOrchestrator: Converts parser results into orchestrator commands.
  • OrchestratorToIDB: Translates orchestrator commands into IDBManager calls.

The complete execution flow (MCP stdio → orchestrator → parser/registry → adapters → IDBManager → idb / xcrun simctl), component contracts, the session model (activeSessionId vs sessionId → UDID), and a checklist for adding new commands are documented in ARCHITECTURE.md.

🔌 MCP Integration

To use this server with the Model Context Protocol:

  1. Add the server to your MCP settings:
{
  "mcpServers": {
    "ios-simulator": {
      "command": "node",
      "args": ["/path/to/mcp-server-simulator-ios-idb/dist/index.js"],
      "env": {}
    }
  }
}
  1. Connect to the server in your LLM application:
const result = await useMcpTool({
  serverName: "ios-simulator",
  toolName: "process-instruction",
  arguments: {
    instruction: "create simulator session"
  }
});

🙏 Acknowledgments

This project would not be possible without facebook/idb, which provides the underlying iOS simulator control capabilities. We extend our sincere gratitude to the Facebook/Meta team and all contributors to the idb project for creating and maintaining such a powerful and reliable tool.

📄 License

This tool is available as open source under the terms of the Apache-2.0.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Server for iOS Simulator from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-simulator-ios-idb)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools