Logo van IPhone MCP

IPhone MCP

Organisatie
blitzdotdev

The MCP Server the lets AI use an iPhone

Uitgeverblitzdotdev
RepositoryiPhone-mcp
TaalTypeScript
Forks
16
Sterren
92
Beschikbare tools
10
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    IPhone MCP biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 10 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    92 sterren en 16 forks in de gekoppelde repository.

Website Discord npm

iPhone-mcp

MCP server that lets AI agents control real iPhones and iPhone simulators on MacOS. Works with Claude Code, Cursor, Codex, OpenCode, and any MCP-compatible AI agent.

Requirements

  • macOS
  • Xcode (install from App Store or xcode-select --install)
  • Node.js 18+
  • Homebrew

Installation

bash
npm install @blitzdev/iphone-mcp

Quick Start

Global (use in any project)

bash
npx @blitzdev/iphone-mcp --setup-all

This installs dependencies and configures @blitzdev/iphone-mcp for all your AI agents. It automatically sets up Claude Code, Cursor, Codex, OpenCode.

NOTE: For Cursor, you need to enable the blitz-iphone MCP server in Cursor Settings

Project-scoped (one project only)

bash
cd <your project>
npx @blitzdev/iphone-mcp --setup-here

This prompts you to choose which AI agents to configure (Claude Code, Cursor, Codex, OpenCode) and writes the config files into your project directory. @blitzdev/iphone-mcp will only be available when you open an agent inside that directory.

Then just ask

Open a new AI agent session and ask:

> scan the simulator screen and tell me what you see
> connect to my iPhone and test the login flow
> find bugs in my app — tap around, try edge cases, report anything weird

What can it do?

CapabilitySimulatorPhysical iPhone
Tap, swipe, type textYesYes
Press buttons (Home, Lock, Siri)YesYes
Scan UI elements with coordinatesYesYes
Take screenshotsYesYes
List & launch installed appsYesYes
Auto-detect devicesYesYes
Live screen viewer in browser--Yes

iPhones

Connect your iPhone via USB or make sure it's on the same Wi-Fi network (home/office networks work, public cafe Wi-Fi won't).

First-time setup — your iPhone needs:

  1. Developer Mode enabled (Settings > Privacy & Security > Developer Mode)
  2. Trust this computer when prompted on the phone

Then ask your agent:

> connect to my iPhone

The agent will build and install WebDriverAgent on your phone (takes 1-3 minutes the first time), then give you a URL like http://localhost:5152?udid=... — open it in your browser to see a live view of your phone screen.

Simulators

Boot any iPhone simulator, then ask your AI agent to interact with it. No extra setup needed beyond --setup-all or --setup-here.

> what apps are installed on the simulator?
> launch Safari and go to example.com
> take a screenshot

Example session

You:    test the checkout flow in my app
Agent:  Let me scan the simulator to see what's on screen.

        [calls scan_ui]

        I can see the home screen. Let me launch your app first.

        [calls launch_app with bundleId "com.myapp"]
        [calls get_screenshot]

        The app is open on the main screen. I see a "Shop" tab at the bottom.
        Let me tap it and walk through the checkout flow.

        [calls device_action: tap on "Shop" tab]
        [calls scan_ui]

        I see a list of products. Let me add one to cart...

MCP Tools reference

These are the tools your AI agent can call:

ToolWhat it does
get_execution_contextFind available simulators and iPhones
scan_uiFind tappable elements — buttons, links, text fields — with their coordinates
describe_screenFull UI element hierarchy (more detail than scan_ui)
device_actionTap, swipe, press buttons, type text, press keys
device_actionsRun multiple actions in sequence
get_screenshotSave a screenshot and return the file path
list_devicesList all simulators and physical devices
launch_appLaunch an app by bundle ID
list_appsList installed apps
setup_deviceBuild & install WebDriverAgent on a physical iPhone

Manual MCP configuration

If you'd rather configure things yourself:

Claude Code — add to ~/.claude.json (global) or .mcp.json (project):

json
{
  "mcpServers": {
    "blitz-iphone": {
      "command": "npx",
      "args": ["@blitzdev/iphone-mcp"]
    }
  }
}

Cursor — add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

json
{
  "mcpServers": {
    "blitz-iphone": {
      "command": "npx",
      "args": ["@blitzdev/iphone-mcp"]
    }
  }
}

Codex — add to ~/.codex/config.toml (global) or .codex/config.toml (project):

toml
[mcp_servers.blitz-iphone]
command = "npx"
args = ["@blitzdev/iphone-mcp"]

OpenCode — add to opencode.json in your project root:

json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "blitz-iphone": {
      "type": "local",
      "command": ["npx", "-y", "@blitzdev/iphone-mcp"],
      "enabled": true
    }
  }
}

Troubleshooting

"No booted simulator found" — Open Simulator.app or run xcrun simctl boot "iPhone 16" first.

Physical device not detected — Make sure Developer Mode is on, the phone is connected via USB, and you've tapped "Trust" on the phone.

WDA build fails — Open Xcode > Settings > Accounts and make sure an Apple ID is signed in. Xcode needs a signing identity to build WDA.

"Connection refused" errors — The idb companion may have crashed. Run npx @blitzdev/iphone-mcp --setup-all again to re-initialize.

License

MIT

Installatie

TypingMind
{
  "mcpServers": {
    "iphone-mcp": {
      "command": "npx",
      "args": [
        "@blitzdev/iphone-mcp"
      ]
    }
  }
}

Beschikbare tools

  • describe_screen

    Get the full UI element hierarchy of the current screen. Returns ALL element types (buttons, text, images, containers, etc.) that are currently visible on screen.

    Filters applied automatically:

    • Off-screen elements are excluded
    • Generic unlabeled container nodes are excluded

    For finding tappable elements specifically, prefer scan_ui instead.

  • device_action

    Execute a single device action on the iPhone.

    Actions available:

    • tap: Tap at coordinates { x, y, duration? }
    • swipe: Swipe gesture { fromX, fromY, toX, toY, duration?, delta? }
    • button: Press button { button: 'HOME'|'LOCK'|'SIDE_BUTTON'|'APPLE_PAY'|'SIRI', duration? }
    • input-text: Type text { text }
    • key: Press key { key: number (HID keycode) | string (character), duration? }
    • key-sequence: Press key sequence { keySequence: (number|string)[] }

    Use describe_after to see the screen state after the action.

  • device_actions

    Execute multiple device actions in sequence on the iPhone.

    Each action in the array should have:

    • action: 'tap' | 'swipe' | 'button' | 'input-text' | 'key' | 'key-sequence'
    • params: Action-specific parameters

    Use describe_after to see the screen state after all actions complete.

  • get_screenshot

    Capture a screenshot of the current iPhone screen. Returns the file path to a PNG image.

  • scan_ui

    Find interactive UI elements (buttons, links, text fields, switches, icons, etc.) on the current screen. Returns only tappable/interactive elements with their coordinates.

    Use the "query" parameter to search for a specific element by label (e.g. "Add to Cart", "Settings"). When a query is provided:

    • First searches visible interactive elements matching the query
    • If not found on-screen, searches off-screen elements and warns you to scroll
    • If no interactive match, falls back to all visible interactive elements

    Without a query, returns all visible interactive elements on screen.

    Region options optimize scan time:

    • "top-left" / "top-right" / "bottom-left" / "bottom-right": ~250ms
    • "top-half" / "bottom-half": ~500ms
    • "full": ~1s (entire screen)

    For the complete element tree (all types), use describe_screen instead.

  • list_devices

    List all available iPhones and simulators.

  • get_execution_context

    Get the current execution context — which iPhone(s) or simulators are available.

    Call this first to discover available devices. Returns:

    • target: 'simulator' — one simulator booted, use the returned udid
    • target: 'device' — one physical device connected, use the returned udid. Inform user about viewer_url for screen viewing.
    • target: 'ambiguous' — multiple devices found. Ask the user which one to use.
    • target: 'none' — no devices. Tell user to boot a simulator or connect an iPhone.

    Pass the returned udid to all subsequent tool calls.

  • setup_device

    Build, install, and launch WebDriverAgent on a physical iPhone. This is required before any other tool can interact with a physical device.

    Call this when get_execution_context shows a physical device with wdaRunning: false. The process takes 1-3 minutes (building WDA, installing on device, establishing connection).

    Prerequisites:

    • iPhone connected via USB and trusted
    • Developer Mode enabled on iPhone (Settings > Privacy & Security > Developer Mode)
    • Apple ID signed into Xcode (Xcode > Settings > Accounts)

    After setup completes, use the returned udid for all subsequent tool calls. Also inform the user about the viewer_url where they can see the device screen.

  • launch_app

    Launch an app on the iPhone by bundle ID.

  • list_apps

    List installed apps on the iPhone.

Gebruik IPhone MCP MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra IPhone MCP is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg IPhone MCP toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van IPhone MCP.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "iphone-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@blitzdev/iphone-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van IPhone MCP in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van IPhone MCP in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je IPhone MCP gebruiken om me hiermee te helpen?
IPhone MCP
Zeker. Ik heb het gelezen.
Dit vond ik met IPhone MCP.

Veelgestelde vragen

Waarvoor wordt de MCP-server IPhone MCP gebruikt?

IPhone MCP is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik IPhone MCP MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je IPhone MCP gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom IPhone MCP MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als IPhone MCP verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik IPhone MCP MCP met TypingMind?

IPhone MCP werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt IPhone MCP MCP in TypingMind?

IPhone MCP biedt 10 MCP-tools die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om IPhone MCP MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als IPhone MCP authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇