RunCue
Provides tools for navigating and inspecting the UI of iOS apps on simulators or physical devices using WebDriverAgent. Enables AI agents to perform actions like typing, tapping, and verifying UI state through natural language tasks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
RunCue is a developer UI navigation tool for iOS apps. It uses natural-language tasks to navigate, type, inspect, and verify app UI through WebDriverAgent, with MCP tools designed to work alongside build tools such as XcodeBuildMCP.
RunCue is intentionally scoped: it does not build, install, or debug your app. Use XcodeBuildMCP or your normal Xcode workflow for build, launch, screenshots, and logs. Use RunCue when you need an agent to reach a specific UI state.
Demo
Click the screenshot to open the demo recording.
Related MCP server: mobile-mcp
Features
WDA-only iOS automation for simulators and physical devices.
MCP tools for coding agents:
runcue_run,runcue_check,runcue_devices, andruncue_doctor.View-tree-first observation with screenshot fallback for WebView, SwiftUI, custom UI, and sparse accessibility trees.
Direct WDA text input through
/keys, avoiding paste-menu workarounds.Planner, locator, executor, and verifier loop for more stable multi-step navigation.
Requirements
macOS with Xcode installed.
Node.js 20 or newer.
A visible iOS Simulator or trusted physical iOS device.
An OpenAI-compatible vision-language model (VLM) API key.
For physical devices, you also need:
Device trust enabled.
Developer Mode enabled.
The device unlocked while running tasks.
WebDriverAgent signing configured through
RUNCUE_WDA_TEAM_IDor RunCue config.
Install
npm install -g runcueFor local development from this repository:
npm install
npm run build
node dist/cli.js --helpConfigure Models
RunCue needs a vision-language model, not a text-only LLM. The provider must be OpenAI-compatible and support image input for visual fallback, visual grounding, and screenshot checks.
Supported wire APIs:
chatusingchat.completionswith text andimage_urlcontent parts. This is the default.responsesusing the OpenAI Responses API withinput_textandinput_image.
The local config file is:
~/.runcue/config.jsonRunCue uses built-in defaults when this file does not exist. The file is created when you run runcue config set ..., or you can create it manually.
Inspect the effective config:
runcue config listSet the default provider:
runcue config set provider my-vlEnvironment variable references such as ${MY_VL_API_KEY} are resolved at runtime. A minimal custom provider looks like this:
{
"vlm": {
"default": "my-vl",
"providers": {
"my-vl": {
"baseUrl": "https://api.example.com/v1",
"model": "your-vl-model",
"apiKey": "${MY_VL_API_KEY}",
"wireApi": "chat",
"inputMode": "viewtree"
}
}
}
}Provider fields:
Field | Required | Meaning |
| Yes | OpenAI-compatible API base URL. |
| Yes | VLM model name accepted by that provider. |
| Yes | API key value or environment reference such as |
| No |
|
| No |
|
| No | Extra HTTP headers to pass to the provider. |
RunCue ships with several built-in provider examples, including DashScope/Qwen VL. They are examples, not a requirement. For example:
export DASHSCOPE_API_KEY="your-dashscope-api-key"
runcue config set provider dashscope-vl-plusQuick Start
List devices:
runcue devicesCheck WDA readiness:
runcue doctor --device "iPhone 17 Pro Simulator" --platform ios-simulatorRun a navigation task:
runcue run "Open Maps, search for the nearest Walmart, and start navigation" \
--device "iPhone 17 Pro Simulator" \
--platform ios-simulator \
--bundle-id com.apple.Maps \
--fresh-app \
--max-steps 10 \
--timeout 120For complex or non-standard app flows, include product-specific UI knowledge in the task or hints, for example:
runcue run "Open Maps, search for the nearest Walmart, and start navigation. In Apple Maps, if there is no normal Start Navigation button, tap the Route Steps item in the route card list to enter navigation." \
--device "iPhone 17 Pro Simulator" \
--platform ios-simulator \
--bundle-id com.apple.Maps \
--fresh-appXcodeBuildMCP + RunCue Workflow
RunCue is designed to cooperate with XcodeBuildMCP instead of replacing it. XcodeBuildMCP owns build, install, launch, screenshots, logs, and Xcode project state. RunCue owns UI navigation and state checks on the same device.
Coding Agent
|
| 1. Build, install, and launch the app
v
XcodeBuildMCP
|
| build_run_sim / launch_app_sim
| returns simulator name or UDID
v
iOS Simulator or Device
|
| 2. Navigate to the target UI state on that same device
v
RunCue MCP / CLI
|
| observe -> plan -> locate -> execute -> verify
| through WebDriverAgent
v
Target App UI State
|
| 3. Capture final evidence when needed
v
XcodeBuildMCP
|
| screenshot / logs / test output
v
Coding AgentPractical rules:
Use XcodeBuildMCP first to prepare the app state.
Pass the exact simulator name or UDID from that build/run flow to RunCue.
Leave
wda.endpointunset to let RunCue discover or allocate an independent WDA port for each simulator; multiple coding agents can then control different simulators in parallel.Let RunCue perform UI actions while it is running.
Use XcodeBuildMCP again after RunCue finishes for screenshots, logs, or build diagnostics.
MCP Usage
RunCue exposes an MCP server over stdio:
runcue mcpExample Codex MCP configuration:
[mcp_servers.RunCue]
type = "stdio"
command = "runcue"
args = ["mcp"]For a local checkout:
[mcp_servers.RunCue]
type = "stdio"
command = "node"
args = ["/absolute/path/to/RunCue/dist/cli.js", "mcp"]MCP Tools
runcue_run: autonomously navigate a UI flow.runcue_check: inspect the current UI state with a question.runcue_devices: list iOS devices and simulators visible to Xcode.runcue_doctor: diagnose WDA setup and signing issues.
Architecture

The current architecture is WDA-only:
Coding Agent
-> RunCue MCP / CLI
-> Agent loop: planner -> locator -> executor -> verifier
-> WebDriverAgent HTTP API
-> iOS Simulator or physical iOS deviceSee docs/architecture.md for the current architecture and docs/tech-solution-v2.md for the longer design record.
Documentation
Development
npm install
npm run build
npm test
npm_config_cache=/private/tmp/runcue-npm-cache npm pack --dry-runThird-Party Code
RunCue vendors appium-webdriveragent so the CLI can bootstrap WDA without asking users to manually clone a separate project. See THIRD_PARTY_NOTICES.md.
License
RunCue is licensed under the MIT License. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Let your AI agent control real iPhones: screenshots, tap, swipe, type and open apps.
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Give an AI agent an iPhone to see, tap and type on over MCP. Free early access (Simulator).
Let AI agents control Android and iOS devices on Mobilerun Cloud: screen, input, apps, workflows.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for iOS automation via rpcclient, enabling AI agents to connect to iOS RPC servers and perform actions like launching apps, clicking, typing, and gesture control.2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for cross-platform mobile automation (iOS/Android) using accessibility trees and screenshots, enabling agents to interact with apps on simulators, emulators, and physical devices.7Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to drive iOS Simulators on macOS by listing devices, launching apps, tapping, typing, swiping, inspecting the UI tree, and taking screenshots.MIT
- AlicenseBqualityCmaintenanceThis MCP server lets Claude drive an iOS Simulator or a real iPhone the way a person would: observing a numbered accessibility tree with annotated screenshots, then tapping, swiping, typing, pressing Home, launching or quitting apps, and opening URLs or deep links. It can also hand an entire natural-language task to a built-in autonomous agent, with tools to start, poll, and cancel that background run.14MIT