Logo vun MCP Server for iOS Simulator

MCP Server for iOS Simulator

Communautéit
atom2ueki

Model Context Protocol (MCP) implementation for iOS simulators

Editeuratom2ueki
Repositorymcp-server-ios-simulator
SproochTypeScript
Forks
4
Stären
44
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    MCP Server for iOS Simulator stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    44 Stären an 4 Forks aus dem verlinkte Repository.

📱 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.

📋 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

📋 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:

bash
npx -y @smithery/cli install @atom2ueki/mcp-server-ios-simulator --client claude

Manual Installation

bash
# 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.

bash
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:

typescript
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

bash
# 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

  1. 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:
    json
    {
      "mcpServers": {
        "simulator": {
          "command": "node",
          "args": [
            "/path/to/your/mcp-server-ios-simulator/dist/index.js"
          ]
        }
      }
    }
    • Replace /path/to/your with the actual path to where you've installed this repository
    • Save the settings and restart Claude Desktop
  2. Use the provided tools to control iOS simulators directly from Claude Desktop:

    Direct UDID Approach (Recommended):

    1. First, ask Claude to list available simulators:

      "Show me all available iOS simulators"
    2. Then use the UDID to boot a specific simulator:

      "Boot the iOS simulator with UDID 5272EA61-5796-4372-86FE-3B33831D5CC1"
    3. 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

bash
# 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

Installatioun

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

MCP Server for iOS Simulator MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal MCP Server for iOS Simulator verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

MCP Server for iOS Simulator als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu MCP Server for iOS Simulator an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "mcp-server-ios-simulator": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-ios-simulator"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu MCP Server for iOS Simulator. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu MCP Server for iOS Simulator.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat MCP Server for iOS Simulator?
MCP Server for iOS Simulator
Jo. Ech hunn et gelies.
Dat hunn ech mat MCP Server for iOS Simulator fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server MCP Server for iOS Simulator benotzt?

MCP Server for iOS Simulator ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech MCP Server for iOS Simulator MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir MCP Server for iOS Simulator mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat MCP Server for iOS Simulator MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann MCP Server for iOS Simulator verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech MCP Server for iOS Simulator MCP mat TypingMind?

MCP Server for iOS Simulator leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt MCP Server for iOS Simulator MCP an TypingMind zur Verfügung?

MCP Server for iOS Simulator stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir MCP Server for iOS Simulator MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann MCP Server for iOS Simulator eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇