Integrates with Facebook's fb-idb (iOS Development Bridge) to provide enhanced iOS Simulator gesture control (tap, swipe with duration) and UI tree inspection capabilities.
Provides browser automation capabilities including launching Chrome/Chromium, navigation, screenshot capture, DOM manipulation and inspection, element interaction (click, type), JavaScript execution, and React Native Metro bundler integration.
Enables control of iOS Simulators including capturing screenshots, device management, gestures (tap, swipe), text input, URL navigation, UI inspection via accessibility tree, and simulator reset functionality.
Provides quick shortcuts for React Native Metro bundler development including opening the Metro UI, extracting logs, and triggering reload actions.
Uses Puppeteer for browser automation to enable page navigation, DOM interaction, screenshot capture, JavaScript execution, and element querying in Chrome/Chromium browsers.
Integrates with Xcode's iOS Simulator tools via xcrun simctl for device management, screenshots, and simulator control operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Connecttake a screenshot of the iOS simulator"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@plaintest/mcp-connect
A Model Context Protocol (MCP) server that enables AI assistants to control iOS Simulators and automate browsers. Combines the power of xcrun simctl, fb-idb, and Puppeteer into a single unified server.
Features
iOS Simulator Tools
Screenshots: Capture screenshots in various formats (PNG, JPEG, TIFF, BMP, GIF)
Device Management: List simulators, get info about booted devices
Gestures: Tap, swipe with duration control (requires fb-idb)
Input: Type text into focused fields, press system buttons
Navigation: Open URLs and deep links
UI Inspection: Get accessibility tree (requires fb-idb)
Reset: Erase simulator to factory settings
Browser Automation Tools
Launch & Control: Launch Chrome/Chromium, navigate to URLs
Screenshots: Capture full page or element-specific screenshots
DOM Interaction: Click elements, type text, query elements
Inspection: Get DOM tree, element info, page info
JavaScript: Execute arbitrary JavaScript in page context
Metro Bundler: Quick shortcuts for React Native development
Prerequisites
macOS with Xcode and iOS Simulator
Node.js >= 18
Chrome/Chromium for browser automation
fb-idb (optional, for enhanced iOS gestures)
Installation
Option 1: Quick Install (Recommended)
Run the installer for your MCP client:
Restart your editor and the tools will be available.
Option 2: Global Install
Install globally to have mcp-connect available as a command:
Then configure your MCP client manually:
Option 3: Manual Configuration
If you prefer not to install globally, configure your MCP client to use npx:
Config file locations:
Claude Code: Uses
claude mcp addcommand (automatic with install)Cursor:
~/.cursor/mcp.jsonWindsurf:
~/.codeium/windsurf/mcp_config.jsonCline:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonCopilot:
~/Library/Application Support/Code/User/settings.json(undergithub.copilot.chat.experimental.mcp.servers)
CLI Commands
Tool Filtering
By default, mcp-connect auto-detects which tools to enable based on your system:
iOS Simulator tools: enabled if Xcode/xcrun is installed
Browser tools: enabled if Chrome/Chromium is found
This reduces context usage and prevents confusion by only exposing relevant tools.
Override Auto-detection
To manually control which tools are enabled, use the --only flag:
To use filtering with an MCP client, update your config:
Available Tools
iOS Simulator Tools (10)
Tool | Description |
| Capture screenshot with format/mask options |
| List all simulators (booted or all) |
| Get info about currently booted simulator |
| Tap at coordinates (x, y) |
| Swipe from (x1, y1) to (x2, y2) with duration |
| Type text into focused input field |
| Press system button (home, lock, siri, volume) |
| Open URL or deep link in simulator |
| Reset simulator to factory settings |
| Get accessibility tree (requires fb-idb) |
Browser Automation Tools (14)
Tool | Description |
| Launch Chrome/Chromium instance |
| Navigate to URL |
| Capture page or element screenshot |
| Click element by CSS selector |
| Type into input field |
| Get URL, title, viewport info |
| Get HTML structure with depth control |
| Execute JS in page context |
| Find elements by CSS selector |
| Get element position, styles, content |
| Close browser and cleanup |
| Open React Native Metro bundler UI |
| Extract logs from Metro UI |
| Trigger Metro reload |
Examples
Take iOS Simulator Screenshot
Navigate and Interact with Browser
iOS Gesture Automation
Setup for Tap/Swipe Gestures
For tap_screen and swipe to work reliably, install fb-idb:
Without fb-idb:
Tap falls back to AppleScript (less reliable)
Swipe is not available
Troubleshooting
Chrome not found
Install Google Chrome or set a custom path:
The server looks for Chrome at standard macOS locations
Chromium and Chrome Canary are also supported
Simulator not detected
Open Xcode > Open Developer Tool > Simulator
Boot a simulator
Verify:
xcrun simctl list devices booted
fb-idb not working
Permission denied for gestures
Grant Accessibility permissions:
System Settings > Privacy & Security > Accessibility
Add Terminal (or your shell app)
Restart your editor
Development
License
MIT License - see LICENSE for details.
Author
George Al-Haddad - Plaintest