Logo von 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.

Herausgebereval3
Repositorylookin-mcp
SpracheTypeScript
Forks
3
Sterne
25
Verfügbare Tools
5
Transporttypstdio
Kategorien
LizenzApache-2.0
Links
  • Tools mit KI-Workflows verbinden

    lookin-mcp-ios stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 5 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    25 Sterne und 3 Forks im verlinkten Repository.

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.

Installation

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

Verfügbare Tools

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

lookin-mcp-ios MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald lookin-mcp-ios verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

lookin-mcp-ios als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für lookin-mcp-ios ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "lookin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lookin-mcp-ios"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von lookin-mcp-ios. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von lookin-mcp-ios.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit lookin-mcp-ios bei dieser Aufgabe helfen?
lookin-mcp-ios
Gerne. Ich habe es gelesen.
Das habe ich mit lookin-mcp-ios gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server lookin-mcp-ios verwendet?

lookin-mcp-ios ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich lookin-mcp-ios MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie lookin-mcp-ios mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum lookin-mcp-ios MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald lookin-mcp-ios verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich lookin-mcp-ios MCP mit TypingMind?

lookin-mcp-ios wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt lookin-mcp-ios MCP in TypingMind bereit?

lookin-mcp-ios stellt 5 MCP-Tools bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um lookin-mcp-ios MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls lookin-mcp-ios eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇