Sandbox
@AppGram/bridge4simulator

MCP server for iOS Simulator control

bridge4simulator is an MCP server that connects an agent to the iOS Simulator. It lets the assistant inspect the screen, send touches and text, open apps, and run macros through a local bridge.

80 stars4 forksUpdated 8mo ago
Demo of bridge4simulator iOS Simulator MCP using Apple Maps to find train route autonomously
NFxAI79 views • 8 months ago

Videos about this repo

Who it's for

Builders who want their agent to control and inspect an iOS Simulator during app work or testing.

What it delivers

You can have an MCP client operate the iOS Simulator without manually clicking around.

What it does

Device management

Lists, boots, shuts down, and checks simulator devices with tools like `device_list`, `device_boot`, `device_shutdown`, and `status`.

Touch and text input

Sends taps, swipes, and typed text through `tap`, `swipe`, and `type_text`.

Screen capture

Takes screenshots and records video with `screenshot`, `record_start`, and `record_stop`.

App lifecycle control

Installs, launches, and terminates apps with `app_install`, `app_launch`, and `app_terminate`.

UI inspection

Uses accessibility and OCR tools like `ui_describe`, `ui_find`, `ui_search`, `ui_summary`, `ui_point`, and `ui_ocr`.

Automation macros

Runs saved sequences with `macro_play` and lists them with `macro_list`.

How to get it

  1. 1Brew
    brew tap AppGram/tap
      brew install bridge4simulator
      bridge4simulator --version
  2. 2Installer
    curl -fsSL https://github.com/AppGram/bridge4simulator/releases/latest/download/install.sh | bash

README

bridge4simulator MCP Server

MCP Server for iOS Simulator Control

Bridge for Simulator Showcase

Watch full video on YouTube

An MCP (Model Context Protocol) server that enables AI assistants to control iOS Simulator. Seamlessly integrates with Claude Desktop, Cursor, Claude Code, and other MCP-compatible clients.

Be sure to drop a ⭐️ if you find this project useful.


Quick Install

Brew:

  brew tap AppGram/tap
  brew install bridge4simulator
  bridge4simulator --version

Installer:

curl -fsSL https://github.com/AppGram/bridge4simulator/releases/latest/download/install.sh | bash

Under the hood, MCP relies on a custom-built bridge. For inquiries about commercial use of the tool powering this CLI, be free to contact us

Configuration

First run, in terminal: bridge4simulator mcp --http

Cursor IDE

Go to Settings > MCP and add:

Then add config

    "bridge4simulator": {
       "url": "http://localhost:8080/mcp"
    },

Or in Claude Desktop config:

{
  "mcpServers": {
    "bridge4simulator": {
      "command": "/usr/local/bin/bridge4simulator",
      "args": ["mcp", "--enable-tools=screenshot"]
    }
  }
}

Claude Desktop doesn't support url for local development MCPs.

Claude Code CLI

Add to ~/.claude/settings.json or project .mcp.json:

{
  "mcpServers": {
    "ios-simulator": {
      "command": "/usr/local/bin/bridge4simulator",
      "args": ["mcp", "--enable-tools=screenshot"]
    }
  }
}

Demo

This demo highlights autonomous navigation and the internal reasoning process behind task execution. Under the hood, MCP uses a powerful CLI tool that enables instant OCR and UI extraction while keeping token consumption minimal for rapid problem solving.

Apple Calendar DemoApple Maps Demo

iOS Simulator Demo
Task was to create an event on specific date. Click to watch.

Demo
Task is to find train route from Rome to Padova. Click to watch.


Available Tools (21)

CategoryToolsDescription
Devicedevice_list, device_boot, device_shutdown, statusManage simulator devices
Inputtap, swipe, type_textTouch gestures and text input
Capturescreenshot, record_start, record_stopScreen capture and recording
Appsapp_install, app_launch, app_terminateApplication lifecycle
Navigationopen_urlOpen URLs and deep links
UIui_describe, ui_find, ui_search, ui_summary, ui_point, ui_ocrAccessibility tree and OCR
Macrosmacro_play, macro_listAutomation sequences

Example Workflows

Once configured, ask your AI assistant:

UI Interaction:

"Find train route between Rome and Florance inside running app"

Screenshot & Analysis:

"Take a screenshot of the iOS Simulator and describe what's on screen"

Navigation:

"Scroll down the list and find the settings option"

App Testing:

"Launch the app com.example.myapp and take a screenshot"


Requirements

  • Xcode Command Line Tools
  • iOS Simulator (via Xcode)

Manual Download

PlatformDownload
Apple Silicon (M1/M2/M3/M4/M5)bridge4simulator-darwin-arm64.tar.gz
Intel Macsbridge4simulator-darwin-amd64.tar.gz

Running the Server

# Start MCP server (JSON-RPC over stdio)
bridge4simulator mcp

The server reads JSON-RPC 2.0 requests from stdin and writes responses to stdout.


Support


Version 1.0.0 | AppGram

Files in the repo

Repository payload2 top-level entries
  • bridge4simulator-showcase.gif
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k