IPhone MCPのロゴ

IPhone MCP

組織
blitzdotdev

The MCP Server the lets AI use an iPhone

公開者blitzdotdev
リポジトリiPhone-mcp
言語TypeScript
フォーク
16
スター
92
利用可能なツール
10
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    IPhone MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 10個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには92件のスターと16件のフォークがあります。

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

インストール

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

利用可能なツール

  • 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.

IPhone MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度IPhone MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

IPhone MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. IPhone MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "iphone-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@blitzdev/iphone-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてIPhone MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. IPhone MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
IPhone MCPを使ってこのタスクを手伝ってもらえますか?
IPhone MCP
はい、読みました。
IPhone MCPで調べた結果をお伝えします。

よくある質問

IPhone MCP MCPサーバーは何に使いますか?

IPhone MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでIPhone MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでIPhone MCPを利用できます。

TypingMindでIPhone MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。IPhone MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

IPhone MCP MCPをTypingMindに接続するにはどうすればよいですか?

IPhone MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでIPhone MCP MCPのどのようなツールを利用できますか?

IPhone MCPは10個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

IPhone MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。IPhone MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇