You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

ios-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ios-mcp-server

MCP server for iOS Simulator control with native touch injection and UI tree reading

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

iOS MCP Server

npm version npm downloads License: MIT

MCP server for controlling iOS Simulators. Gives AI assistants the ability to see, interact with, and debug iOS apps — taking screenshots, tapping elements, reading the UI tree, and automating testing workflows.

Built with native touch injection and native UI tree reading for accurate, reliable automation that doesn't interfere with your machine.

npm Package | GitHub | Issues

Why This Server

Most iOS Simulator MCP servers work by sending mouse clicks to the Simulator window through macOS, then reading the Simulator's window frame through the macOS Accessibility API. This means:

  • Your mouse gets hijacked every time the AI taps something
  • The Simulator window must stay in the foreground — you can't use your Mac while tests run
  • The UI tree returns Simulator chrome (window buttons, toolbar) mixed with actual app elements
  • macOS Accessibility permissions are required for your terminal
  • Touch coordinates are fragile — they depend on window position and scale

This server takes a different approach:

  • Native touch injection via IndigoHID — sends touch events directly to the Simulator's HID system. Sub-pixel accuracy, no mouse movement, works with the Simulator in the background.
  • Native UI tree via AXPTranslation — reads the actual iOS accessibility tree through CoreSimulator, not the macOS window. Returns only app elements with correct device-point coordinates.
  • No macOS Accessibility permissions needed — everything goes through Apple's Simulator frameworks.
  • No window focus required — the Simulator can be minimized or behind other windows.

Features

  • 31 tools for complete iOS Simulator control
  • Native touch injection — tap, swipe, long press, double tap, multi-tap via IndigoHID (compiled from source on first use)
  • Native UI tree — real iOS accessibility tree via AXPTranslation (no Simulator chrome, no macOS AX permissions)
  • Screenshot capture with intelligent compression (Sharp-based, max 1280px)
  • Element targeting — find and tap elements by identifier, label, or value
  • App lifecycle — install apps, launch, terminate, uninstall
  • Log integration — filter by bundle ID, log level, or timestamp
  • Device management — list simulators, boot/shutdown, get device info
  • Compound actionstap_and_wait combines tap + settle + UI tree in one round trip
  • iOS-specific tools — push notifications, permissions, URL schemes, status bar overrides
  • Multi-device support — target specific simulators by UDID
  • Zero app modifications — works with any iOS app, no SDK integration needed

Prerequisites

  • macOS (required for iOS Simulator)
  • Xcode with command line tools (xcode-select --install)
  • Node.js 18+
  • A booted iOS Simulator

That's it. No Accessibility permissions, no special configuration.

Setup

Claude Code
claude mcp add --scope user ios -- npx -y ios-mcp-server

This registers the server globally so it's available in all projects. Use --scope project instead to limit it to the current project.

Claude Desktop

Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "ios": {
      "command": "npx",
      "args": ["-y", "ios-mcp-server"]
    }
  }
}
VS Code

Add to your VS Code settings (.vscode/settings.json):

{
  "mcp": {
    "servers": {
      "ios": {
        "command": "npx",
        "args": ["-y", "ios-mcp-server"]
      }
    }
  }
}
Cursor

Add to your Cursor MCP config (~/.cursor/mcp.json):

{
  "mcpServers": {
    "ios": {
      "command": "npx",
      "args": ["-y", "ios-mcp-server"]
    }
  }
}
Windsurf

Add to your Windsurf MCP config (~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "ios": {
      "command": "npx",
      "args": ["-y", "ios-mcp-server"]
    }
  }
}
Project config (.mcp.json)

Add to your project's .mcp.json (checked into version control so your team gets it too):

{
  "mcpServers": {
    "ios": {
      "command": "npx",
      "args": ["-y", "ios-mcp-server"]
    }
  }
}
Build from source
git clone https://github.com/martingeidobler/ios-mcp-server.git
cd ios-mcp-server
npm install
npm run build
claude mcp add --scope user ios -- node /path/to/ios-mcp-server/dist/index.js

Available Tools

Device Management

ToolDescription
list_devicesList available iOS Simulators and their state
list_simulatorsList available simulator device types (iPhone, iPad models)
boot_simulatorBoot a simulator by name or UDID (waits up to 60s)

Screenshot & UI Analysis

ToolDescription
screenshotTake screenshot for visual analysis. Optional save_path to save to disk
get_ui_treeGet UI element hierarchy with bounds, labels, identifiers, and state

Interaction

ToolDescription
tapTap at screen coordinates (device points)
tap_elementTap element by identifier, label, or value
tap_and_waitTap element, wait for UI to settle, return new UI tree — single round trip
long_pressLong press at coordinates (context menus, drag handles)
double_tapDouble tap at coordinates (zoom in, double-tap interactions)
multi_tapTap N times at coordinates with configurable interval
tap_sequenceExecute a sequence of steps: tap, long press, swipe, type, key press, and pause
type_textType text into focused input
press_keyPress key (home, lock, enter, tab, delete, arrows, volume, shake, rotate)
swipeSwipe gesture between coordinates
scroll_to_elementScroll until element is visible
wait_for_elementWait for element to appear (with timeout)

App Management

ToolDescription
launch_appLaunch app by bundle ID
terminate_appTerminate a running app
install_appInstall .app bundle
uninstall_appUninstall app by bundle ID
get_current_appGet foreground app info
simctl_runRun a command inside the Simulator

Diagnostics

ToolDescription
get_logsGet log output, filterable by bundle ID, log level, and time
clear_logsSet log baseline (call before reproducing a bug for clean output)
get_device_infoGet name, model, iOS version, screen size
pull_filePull a file from an app's container

iOS-Specific Utilities

ToolDescription
open_urlOpen a URL or deep link in the Simulator
send_pushSend a push notification to an app
set_permissionGrant, revoke, or reset app permissions
set_status_barOverride status bar display (time, battery, signal)

Example Workflows

Bug documentation

"Clear the logs, launch com.example.app, navigate to the settings screen, tap Save, then show me the logs and a screenshot"

Claude will: clear_logslaunch_apptap_elementget_logs(bundle_id="com.example.app", level="error")screenshot(save_path="./bugs/settings-crash.png")

UI testing

"Navigate through the login flow and verify each screen matches the designs"

Claude will use screenshot + get_ui_tree to see and understand each screen, tap_element/type_text to interact, and its vision capabilities to compare against mockups or descriptions.

Smoke testing

"Install the app, launch it, and tap through the main screens to check nothing crashes"

Claude will: install_applaunch_app → navigate with tap_elementget_logs(level="error") to check for errors after each screen.

Deep linking

"Open the deep link myapp://profile/123 and verify the profile screen loads"

Claude will: open_url(url="myapp://profile/123")get_ui_tree to verify the profile screen elements → screenshot for visual confirmation.

Push notification testing

"Send a push notification to the app and verify the notification appears"

Claude will: send_push(bundle_id="com.example.app", title="Hello", body="Test notification")screenshot to see the notification.

Demos & Prompting Guide

  • PROMPTING.md — best practices, performance tips, and common pitfalls

How It Works

The server communicates over stdio using the Model Context Protocol. Under the hood it uses three mechanisms:

  • xcrun simctl — device management, app lifecycle, screenshots, logs, and simulator commands
  • Native simtouch binary — compiled from Objective-C on first use, sends touch events directly to the Simulator's HID system via IndigoHID/CoreSimulator private frameworks. No mouse involvement.
  • Native simtree binary — compiled from Objective-C on first use, reads the iOS app's accessibility tree via AXPTranslation/CoreSimulator. Returns real iOS element data, not macOS Simulator window chrome.

Both native binaries are compiled automatically on first use and cached. The source files (native/simtouch.m, native/simtree.m) ship with the package; only Xcode command line tools are needed.

Architecture

MCP Client (Claude Code, Desktop, VS Code, etc.)
    ↕ stdio (MCP protocol)
iOS MCP Server (Node.js)
    ↕               ↕                  ↕
xcrun simctl     simtouch            simtree
    ↕               ↕                  ↕
iOS Simulator    IndigoHID          AXPTranslation
                 (CoreSimulator)    (CoreSimulator)

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

MIT - see LICENSE.

Keywords

mcp

FAQs

Package last updated on 19 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts