Logo di lookin-mcp-ios

lookin-mcp-ios

Community
eval3

MCP Server for iOS UI inspection — lets any AI agent (Claude Code, Cursor, Codex, etc.) inspect live iOS app UI hierarchy, attributes, and screenshots via LookinServer, no Lookin.app required.

Autoreeval3
Repositorylookin-mcp
LinguaTypeScript
Fork
3
Stelle
25
Strumenti disponibili
5
Tipo di trasportostdio
Categorie
LicenzaApache-2.0
Link
  • Collega gli strumenti ai flussi di lavoro IA

    lookin-mcp-ios mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 5 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    25 stelle e 3 fork nel repository collegato.

lookin-mcp-ios

MCP Server for iOS UI inspection — lets any AI agent (Claude Code, Cursor, Codex, etc.) inspect live iOS app UI hierarchy, attributes, and screenshots via LookinServer, no Lookin.app required. It discovers LookinServer on ports 47190–47199.


Prerequisites

  • iOS App integrated with LookinServerMCP, running on simulator or device
  • Node.js 18+

iOS Integration

Add the following to your Podfile:

ruby
pod 'LookinServerMCP', :configurations => ['Debug']

Only included in Debug builds — safe to leave in your Podfile permanently.


How It Works

Device Support

The MCP Server supports both iOS simulators and physical devices:

iOS Simulator:

AI Agent (Claude Code / Cursor / Codex / ...)
    ↓ stdio (MCP protocol)
lookin-mcp-ios (Node.js)
    ↓ HTTP local port
LookinServer (embedded in iOS App)

Physical Device:

AI Agent (Claude Code / Cursor / Codex / ...)
    ↓ stdio (MCP protocol)
lookin-mcp-ios (Node.js)
    ↓ native usbmuxd socket (/var/run/usbmuxd)
    ↓ ephemeral local TCP proxy → discovered device port 47190–47199
LookinServer (embedded in iOS App)

Device Selection

  • Single device: Automatically connects when the app starts
  • Multiple devices: Prompts user to select device via lookin_connect_device tool
  • Device events: Automatically reconnects when a physical device is unplugged (falls back to simulator)

Installation

Claude Code

bash
claude mcp add --scope user lookin -- npx -y lookin-mcp-ios

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project root:

json
{
  "mcpServers": {
    "lookin": {
      "command": "npx",
      "args": ["-y", "lookin-mcp-ios"]
    }
  }
}

Codex

Add to ~/.codex/config.yaml:

yaml
mcp_servers:
  - name: lookin
    command: npx
    args:
      - -y
      - lookin-mcp-ios

Tools

lookin_list_devices

Lists all connectable iOS targets: USB physical devices and booted simulators.

Parameters: None

Response: JSON object containing:

  • activeTarget — currently connected target (type: "simulator" or "physical")
  • devices — array of available devices, each with:
    • udid — unique device identifier
    • name — device name (e.g. "iPhone 15 Pro")
    • type — device type ("simulator" or "physical")
  • hint — usage instructions

Example response:

json
{
  "activeTarget": { "type": "simulator" },
  "devices": [
    { "udid": "ABC123...", "name": "iPhone 16 Pro", "type": "simulator" },
    { "udid": "XYZ789...", "name": "John's iPhone", "type": "physical" }
  ],
  "hint": "Found 2 device(s). Use lookin_connect_device with a udid to connect."
}

lookin_connect_device

Switch the connection target to a physical device or simulator.

Parameters:

ParameterTypeRequiredDescription
targetstringYesDevice UDID (from lookin_list_devices) or "simulator" to use the default simulator

Response: Confirmation message and connection status


lookin_get_hierarchy

Returns the full UI view hierarchy tree of the running iOS app.

Parameters:

ParameterTypeRequiredDescription
includeSystemViewsbooleanNoReserved parameter, no filtering effect when connected directly to LookinServer
maxDepthnumberNoMaximum hierarchy depth. Returns all levels if omitted

Example response:

json
{"appName":"Demo","totalViews":12,"hierarchy":[{"oid":4393842688,"className":"UIWindow","frame":[0,0,390,844],"children":[{"oid":4393842944,"className":"MyViewController","frame":[0,0,390,844],"children":[]}]}]}

Node fields:

  • oid — unique view identifier, used as input for other tools
  • className — class name
  • frame — position and size [x, y, width, height]
  • hidden — only present when true
  • alpha — only present when not 1.0

lookin_get_attributes

Returns all UI attributes of a specified view.

Parameters:

ParameterTypeRequiredDescription
oidnumberYesView ID (from lookin_get_hierarchy)

Response: Attributes grouped by group → section → attribute, each containing:

  • identifier — attribute identifier
  • setterSelector — setter method name, e.g. setBackgroundColor:
  • attrType — value type enum
  • value — current value

attrType values:

ValueType
14BOOL
12float
13double
5NSInteger
20CGRect
17CGPoint
19CGSize
22UIEdgeInsets
23UIColor (RGBA array, 0~1)
25enum int
26enum long
24NSString

lookin_get_screenshot

Captures a screenshot of a specified view from the live iOS app rendering.

Parameters:

ParameterTypeRequiredDescription
oidnumberNoView ID. If omitted, automatically uses the root window for a full-screen screenshot

Response: MCP image content in PNG format, viewable directly by the AI agent.


Typical Workflow

1. lookin_list_devices           → list available iOS targets (simulators and physical devices)
2. lookin_connect_device(target) → select the target device (if multiple devices available)
3. lookin_get_hierarchy          → get the view tree and find the target view's oid
4. lookin_get_attributes(oid)    → inspect all attributes of that view
5. lookin_get_screenshot(oid)    → capture a screenshot to see the current UI state

If only one device is available, steps 1-2 are handled automatically at startup.

Installazione

TypingMind
{
  "mcpServers": {
    "lookin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lookin-mcp-ios"
      ]
    }
  }
}

Strumenti disponibili

  • lookin_get_hierarchy

    Get the UI view hierarchy tree of the current iOS app. Each node contains oid, className, frame([x,y,w,h]), hidden/alpha only appear for non-default values. oid can be passed to other lookin_* tools to query attributes or screenshots. Note: when directly connected to LookinServer, all views are returned (system views are not distinguished), includeSystemViews parameter has no filtering effect.

  • lookin_get_attributes

    Query all UI attributes of a specified view node, including color, font, frame, alpha, hidden, constraints, etc. First use lookin_get_hierarchy to get the oid of the target view. Returned attributes are classified by group (AttributeGroup) and section (Section), each attribute contains:

    • identifier: attribute identifier
    • setterSelector: setter method name to modify this attribute, pass to lookin_modify_attribute
    • attrType: value type enum (14=BOOL, 12=float, 13=double, 5=NSInteger, 20=CGRect, 17=CGPoint, 19=CGSize, 22=UIEdgeInsets, 23=UIColor, 25=enum int, 26=enum long, 24=NSString)
    • value: current value
  • lookin_get_screenshot

    Get a screenshot of the specified view (PNG format, base64 encoded). oid is optional. If not provided, automatically takes a full-screen screenshot of the root view (window). Each call is rendered in real-time from the iOS app, no need to refresh cache in advance. Returns imageBase64 field containing base64-encoded PNG image data.

  • lookin_list_devices

    List all connectable iOS targets: USB physical devices and booted simulators. Shows the active connection target. Call this to get a UDID before switching targets. Uses macOS built-in usbmuxd for physical devices and xcrun simctl for simulators.

  • lookin_connect_device

    Switch the lookin-mcp connection target. Pass a device UDID (from lookin_list_devices) to connect to a USB physical device — this automatically discovers the device port and starts USB port forwarding. Pass 'simulator' to switch back to the iOS simulator. After switching, the connection is verified automatically.

Usa MCP lookin-mcp-ios con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso lookin-mcp-ios, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi lookin-mcp-ios come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di lookin-mcp-ios.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "lookin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lookin-mcp-ios"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di lookin-mcp-ios, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di lookin-mcp-ios.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare lookin-mcp-ios per aiutarmi con questa attività?
lookin-mcp-ios
Certo. Ho letto.
Ecco cosa ho trovato con lookin-mcp-ios.

Domande frequenti

A cosa serve il server MCP lookin-mcp-ios?

lookin-mcp-ios è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare lookin-mcp-ios MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare lookin-mcp-ios con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP lookin-mcp-ios con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando lookin-mcp-ios, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego lookin-mcp-ios MCP a TypingMind?

lookin-mcp-ios funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre lookin-mcp-ios MCP in TypingMind?

lookin-mcp-ios mette a disposizione 5 strumenti MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare lookin-mcp-ios MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se lookin-mcp-ios richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇