Logo de IPhone MCP

IPhone MCP

Organização
blitzdotdev

The MCP Server the lets AI use an iPhone

Publicado porblitzdotdev
RepositórioiPhone-mcp
IdiomaTypeScript
Forks
16
Estrelas
92
Ferramentas disponíveis
10
Tipo de transportestdio
Categorias
LicençaMIT
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    IPhone MCP disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 10 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    92 estrelas e 16 forks no repositório vinculado.

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

Instalação

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

Ferramentas disponíveis

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

Use o MCP de IPhone MCP com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar IPhone MCP, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione IPhone MCP como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de IPhone MCP.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "iphone-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@blitzdev/iphone-mcp"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de IPhone MCP, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de IPhone MCP.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar IPhone MCP para me ajudar nesta tarefa?
IPhone MCP
Claro. Já li.
Veja o que encontrei usando IPhone MCP.

Perguntas frequentes

Para que serve o servidor MCP IPhone MCP?

IPhone MCP é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP IPhone MCP com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar IPhone MCP com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP IPhone MCP com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com IPhone MCP conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP IPhone MCP ao TypingMind?

IPhone MCP funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP IPhone MCP oferece no TypingMind?

IPhone MCP disponibiliza 10 ferramentas MCP que podem ser ativadas na página Plugins do TypingMind e usadas no chat ou atribuídas a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP IPhone MCP?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se IPhone MCP exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇