phantom-touch

phantom-touch

An MCP server for iOS simulator automation with reliable clipboard-based text input that works with React Native.

Category
Visit Server

README

👻 phantom-touch

An MCP server for iOS simulator automation — with clipboard-based text input that works with React Native.

phantom-touch gives AI agents full control over iOS simulators: screenshots, element inspection, gestures, app management, and most importantly — reliable text input into React Native forms.

Quick Start

Claude Desktop / Cursor

Add to your MCP configuration:

{
  "mcpServers": {
    "phantom-touch": {
      "command": "npx",
      "args": ["-y", "phantom-touch"]
    }
  }
}

That's it. No cloning, no building — just npx.

The Problem

Every existing iOS MCP tool fails at filling React Native TextInput components because:

  • HID keyboard events don't trigger onChangeText
  • WebDriverAgent setValue gets overwritten by React state

The Solution

phantom-touch uses a clipboard + paste strategy:

  1. simctl pbcopy → set simulator clipboard
  2. idb tap → focus the field
  3. Cmd+V → paste triggers onChangeText

16 MCP Tools

Module Tools
Simulator pt_list_simulators, pt_boot_simulator, pt_shutdown_simulator
App pt_launch_app, pt_terminate_app, pt_list_apps, pt_open_url
Screen pt_screenshot, pt_list_elements, pt_get_screen_size
Gesture pt_tap, pt_swipe
Input pt_type_text, pt_press_button, pt_set_clipboard, pt_get_clipboard

Prerequisites

  • macOS with Xcode installed
  • iOS Simulator
  • IDB (iOS Development Bridge): brew install idb-companion
  • Node.js 18+

Usage Examples

Once configured, ask your AI agent:

  • "Take a screenshot of the simulator"
  • "List all UI elements on screen"
  • "Tap the Create Account button at (200, 500)"
  • "Type 'hello@example.com' into the email field at (200, 450)"
  • "Open the deep link myapp://login"

Text Input Strategies

paste (default, recommended)

Uses clipboard + Cmd+V. Works with React Native controlled TextInput.

pt_type_text(text: "Hello", x: 200, y: 400, strategy: "paste")

keyboard

Uses HID keyboard events. Faster but may fail with React Native.

pt_type_text(text: "Hello", x: 200, y: 400, strategy: "keyboard")

Development

git clone https://github.com/hieudtr8/phantom-touch.git
cd phantom-touch
npm install
npm run build
npm run dev   # Run in dev mode with tsx

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured