Garmin Connect IQ Simulator MCP Server
This MCP server lets AI agents automate and inspect the Garmin Connect IQ Simulator on macOS and Windows.
Manage simulator lifecycle: check status, launch, terminate, and inspect active device/window/TCP/permissions state.
Discover and select Garmin device profiles with display, touch, shape, and button metadata.
Build Monkey C apps with
monkeyc, run compiled.prgfiles withmonkeydo, stop apps, and run unit tests.Synthesize user input: press physical buttons, button sequences, send keys, tap, swipe, and long-press the touchscreen.
Capture screenshots as cropped watch screen, bezel view, or annotated debug overlay with button hitboxes/grid.
Retrieve app console logs,
System.println()output, and crash traces.Recognize text in saved simulator PNGs using on-device OCR.
Trigger simulator menu actions, set glance mode, inspect native UI hierarchy, and act on native elements/dialogs.
Snapshot and restore app-scoped simulator files for selected PRG app names with checksum manifests.
Close the persistent-storage editor safely.
Provides tools for automating the Garmin Connect IQ Simulator on macOS, enabling AI agents to build and run Monkey C apps, manage device profiles, synthesize button presses and touch gestures, capture watch-screen screenshots, inspect logs, and run unit tests for Garmin watchfaces, data fields, and device apps.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Garmin Connect IQ Simulator MCP Server build my app for fenix847mm, run it, and send a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Garmin Connect IQ Simulator MCP Server
A Model Context Protocol (MCP) server providing metadata-driven automation, input synthesis, and visual inspection for the Garmin Connect IQ Simulator on macOS and Windows.
Enables AI coding agents (OpenCode, Antigravity, Claude Code, Cursor) to build, run, test, tap, swipe, press hardware buttons, read logs, and visually inspect Garmin watchfaces, data fields, and device apps. It also supports native dialog inspection, on-device OCR, and app-scoped file snapshots.
UI automation depends on platform permissions, window focus, simulator state, and device metadata; it is not a guarantee of deterministic app behavior or background-task isolation.
Platform Support
macOS: supported on
main, using a Swift native bridge, macOS Accessibility, andscreencapturewithConnectIQ.app.Windows: supported on
main, using PowerShell, Windows UI Automation, andPrintWindowwithsimulator.exe. See Windows Requirements & Limitations for platform-specific behavior.
Related MCP server: MCP Connect
Architecture
flowchart TB
LLM["LLM Agent (OpenCode / Antigravity / Claude / Cursor)"]
MCP["Garmin Emulator MCP Server (TypeScript / Node.js)"]
subgraph Engines["Core MCP Subsystems"]
Meta["Device Metadata Engine\n(Parses simulator.json, compiler.json, simulator.ini)"]
SDK["SDK & Shell Runner\n(monkeyc, monkeydo, bin/shell TCP 1234)"]
Bridge["Platform Native UI Bridge\nmacOS: Swift / Quartz / Accessibility\nWindows: PowerShell / Win32 / UI Automation"]
Img["Image Pipeline (sharp)\n(DPI normalization, watch screen crop, SVG debug overlay)"]
end
subgraph GarminEnv["Garmin Connect IQ Environment (macOS / Windows)"]
SimApp["Simulator process\nConnectIQ.app / simulator.exe"]
SimFiles["Platform Connect IQ data directory\nDevices/*/simulator.json & Sdks/*"]
end
LLM <-->|"MCP Protocol (stdio)"| MCP
MCP --> Meta
MCP --> SDK
MCP --> Bridge
MCP --> Img
Meta -->|"Reads button & screen coordinates"| SimFiles
SDK -->|"TCP :1234 (launch, push .prg, logs)"| SimApp
Bridge -->|"Platform input, window capture,\nmenus and native dialogs"| SimApp
Bridge -->|"Raw Window PNG"| Img
Img -->|"Cropped Watch Screen PNG (base64)"| MCPAvailable MCP Tools
The server exposes 25 tools over stdio. Optional parameters are marked with ?.
1. Lifecycle & Device Management
Tool | Parameters | Description |
| none | Returns running state, window ID, bounds, permission fields, TCP port 1234 status, and active device profile metadata. Screen Recording and Accessibility permissions are macOS-specific; Windows reports those fields as |
|
| Launches the simulator from the active SDK ( |
|
| Lists all installed Garmin device profiles in |
|
| Sets the active device ID (e.g. |
|
| Compiles a Monkey C project for a specified device using the SDK |
|
| Pushes and executes a compiled |
| none | Stops the server-managed |
|
| Runs a compiled test |
|
| Terminates the simulator without deleting stored data. Defaults to graceful termination; reserve |
2. Navigation & User Input Synthesis
Tool | Parameters | Description |
|
| Presses a physical bezel button ( |
|
| Executes a sequence of button presses in order with delays between steps, returning the final watch screen. |
|
| Sends a named key ( |
|
| Clicks the watch touchscreen at display coordinates $(X, Y)$ or normalized $(0.0..1.0)$, returning the updated screen. |
|
| Synthesizes a touch drag adhering to device gesture thresholds (e.g. right swipe triggers |
|
| Long-presses at specific watch display coordinates (default 1000ms), returning the updated screen. |
3. Visual Inspection & Logs
Tool | Parameters | Description |
|
| Captures the simulator window. |
|
| Retrieves console output, |
|
| Recognizes text in a saved simulator PNG using local macOS Vision or Windows OCR, returning text and normalized bounds. Confidence scores are available only on macOS; Windows requires an installed OCR language pack. |
4. Environment & Menus
Tool | Parameters | Description |
|
| Triggers a simulator menu item using the platform's native bridge (e.g. |
|
| Selects |
|
| Reads the simulator's native Accessibility/UI Automation hierarchy, including menus and dialogs (depth 1–14, default 7). Available elements differ by platform; the watch app's drawn UI is not exposed as native controls. |
|
| Acts on a freshly inspected native element. Paths are ephemeral: call |
| none | Closes the persistent-storage editor and verifies its window is gone; safe when already closed. |
5. App File Snapshots
Tool | Parameters | Description |
|
| Creates an app-scoped backup and checksum manifest in a new directory outside simulator storage. Use an idle/stopped session with no background writes; this tool does not stop the app. |
|
| Validates a matching snapshot, restores its files, and removes matching app files created since the snapshot. Requires a stopped session with no background writes. |
Execution & Storage Safety
Device selection:
set_active_deviceselects the server's metadata profile; it does not switch the running simulator device. Use a matchingdevice_idwhen building and running the app to avoid incorrect input coordinates or screenshot crops.Startup evidence:
run_appcan returnlaunched: truewhen its launcher remains alive pastwait_mswithout fatal output, whilestartupConfirmedremainsfalse. A recognized startup marker setsstartupConfirmed: true; inspect screenshots and logs to verify app behavior.Stopping:
stop_apponly stops the managed launcher. Do not treat its result as proof that all app/background writes have stopped. To shut down the simulator, useterminate_simulator, verify stopped status withsimulator_status, and relaunch separately when needed.Test results:
run_unit_testsrequires a complete, consistent, nonempty passing results table, no fatal runner output, and no signal or timeout. The current runner accepts exit code 0 or the SDK 9.3.0 exit-code-1 quirk; the latter is reported withexitCodeWarning. Unrecognized or incomplete output is not a pass.Snapshot scope: provide 1–8 uppercase PRG basenames without extensions or path separators (for example,
["MYAPP"]). Names may contain letters, digits,_, and-, up to 64 characters; simulator container names such asDATAandSETTINGSare rejected. Snapshots cover only matching files underGARMIN/APPS:DATA/<APP>.{DAT,IDX,IMT},SETTINGS/<APP>.SET,MEDIA/<APP>.PRG, andDATA/{MEDIA/OBJSTORE,OBJSTORE}/<APP>/.Restore is destructive within that scope: it overwrites matching files and deletes matching files absent from the snapshot. Use the same app names and storage root as the snapshot, and confirm no foreground or background writes are active before passing
confirm_stopped: true; the flag is caller confirmation, not an automatic idle check. Snapshots do not includeGARMIN/sys.nfm, so file-level restore is not a complete simulator reset.OCR is supporting evidence: recognized text does not replace storage assertions or functional tests.
Coordinate Calibration & Display Scaling
Watch Screen Crop (
view: "screen"): Garmin devices have exact display bounding boxes specified inDevices/<device_id>/simulator.json(e.g.454x454at offset(134, 221)forfenix847mm). On macOS Retina displays ($2\times$ pixel density), the server scales the crop window dynamically and normalizes the output image back to $1\times$ logical device pixels (454x454). This reduces image pixel count by 75% compared with the same region at $2\times$ while matching code drawing coordinates 1:1; model token usage varies.macOS Title & Status Bar Calibration: The calibration assumes a
28pxtitle bar when the window has sufficient height. With valid bezel dimensions, the client canvas origin is computed as:originX = max(0, round((windowWidth - bezelWidth) / 2)) originY = 28 if windowHeight >= bezelHeight + 28 otherwise max(0, windowHeight - bezelHeight)An explicit fallback offset overrides
originY; without valid bezel dimensions, the helper returns that offset or(0, 28). Input coordinates are rounded to logical screen pixels. Useget_screenshotwithview: "annotated"to inspect alignment if the simulator layout or device profile differs.Windows DPI Calibration: The Windows bridge reports the native client-area offset and monitor DPI scale. Input coordinates combine that offset with scaled device coordinates; screenshot processing uses the client-area offset and normalizes the bezel and watch display back to device pixels. It does not use the macOS
28pxtitle-bar assumption.
Required macOS Permissions
The terminal or IDE hosting the MCP server requires two standard macOS permissions:
Screen Recording:
Required by
/usr/sbin/screencaptureto capture simulator window buffers.Prompted automatically on first screenshot or grant via:
System Settings > Privacy & Security > Screen & System Audio Recording
Accessibility:
Required by
CGEventto synthesize mouse clicks, drags, and keystrokes, and byAXUIElementto trigger menu items.Grant via:
System Settings > Privacy & Security > Accessibility
Run simulator_status at any time to verify permission status.
Windows Requirements & Limitations
Windows PowerShell 5.1 and an interactive desktop session are required. Keep the simulator's main window visible;
PrintWindowcapture may not render correctly when minimized.Before input, the bridge waits for foreground activation and verifies the simulator still owns focus. If Windows refuses activation or another window takes focus before input begins, the command fails without sending input. Bring the simulator's main window to the foreground and retry.
Windows UI Automation exposes different elements from macOS Accessibility. Inspect native controls afresh with
inspect_uiinstead of reusing paths from another platform or session.Numeric
key_codevalues are Windows virtual key codes, not macOS key codes.OCR requires an installed OCR language pack and returns no confidence scores.
Installation & Setup
1. Prerequisites
Node.js 18 or later and Java for the Garmin compiler. Prefer a currently supported Node.js LTS release.
macOS: macOS 13 or later, Xcode Command Line Tools (
swiftc), and the Screen Recording and Accessibility permissions described above.Windows: Windows PowerShell 5.1 and an interactive desktop session, as described above. No Swift compiler is needed.
Garmin Connect IQ SDK Manager, an installed SDK, and downloaded profiles for the devices you want to use. The server expects
bin/ConnectIQ.app,monkeyc,monkeydo, andshellon macOS, orbin/simulator.exe,monkeyc.bat,monkeydo.bat, andshell.exeon Windows.A developer signing key for
build_app. Passdeveloper_key_pathexplicitly, or let the server search project key files, SDK Manager configuration, the Connect IQ root, and home-directory defaults such as~/.garmin/developer_key.der.
The Connect IQ root defaults to:
Platform | Connect IQ root |
macOS |
|
Windows |
|
SDK discovery reads current-sdk.cfg, falling back to the first SDK directory in descending name order under Sdks/. Device profiles are read from Devices/.
For a nonstandard installation, set GARMIN_CONNECTIQ_ROOT in the MCP server process environment to the Connect IQ root containing Devices/ and current-sdk.cfg or Sdks/ (not directly to an SDK's bin/ directory).
2. Build from Source
git clone https://github.com/keponer/garmin-simulator-mcp.git
cd garmin-simulator-mcp
npm install
npm run buildThis compiles:
bin/macos-bridgeon macOS (native Swift CLI helper)dist/index.js(TypeScript MCP server)
On Windows, npm run build skips Swift compilation. Keep src/native/windows-bridge.ps1 in the repository layout alongside dist/; the built server loads that script at runtime.
3. Verify Setup
After configuring your MCP client below, call simulator_status to check permissions, then list_devices to confirm the target profile is installed. Call launch_simulator, build with build_app, and run the returned .prg with run_app, using the same device_id throughout. Inspect the screenshot and get_app_logs rather than relying on launcher status alone.
Development & Testing
Run the regression suites (metadata, bridge/image, tools, process manager, result parser, unit runner, and testing tools):
npm testThese are not app functional or cross-device tests. Image tests use synthetic images; some suites inspect the installed SDK or window status. On Windows, npm test also includes the windows-native suite.
Type-check the test suite separately:
npm run typecheck:testRun live client verification only in an isolated simulator session; it can press a button on the active app:
npm run test:e2eLive captures may be conditionally skipped when permissions are unavailable; a skip is not a successful capture. See TESTING.md for testing details and limitations.
Use npm run build:ts after TypeScript-only changes or npm run build when the native helper also changes. Reconnect/restart the MCP server connection so clients load rebuilt server code.
Client Configuration
Use the absolute path to your checkout's dist/index.js. On Windows, use a JSON path such as C:/Code/garmin-simulator-mcp/dist/index.js (or escape backslashes as \\). The server command remains node on both platforms.
Claude Desktop (claude_desktop_config.json)
Add to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows:
{
"mcpServers": {
"garmin-emulator": {
"command": "node",
"args": [
"/path/to/garmin-emulator-mcp/dist/index.js"
]
}
}
}Cursor (.cursor/mcp.json)
Add to .cursor/mcp.json or ~/.cursor/mcp.json:
{
"mcpServers": {
"garmin-emulator": {
"command": "node",
"args": [
"/path/to/garmin-emulator-mcp/dist/index.js"
]
}
}
}Antigravity (~/.gemini/config/mcp_config.json)
Add to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"garmin-emulator": {
"command": "node",
"args": [
"/path/to/garmin-emulator-mcp/dist/index.js"
]
}
}
}OpenCode (~/.config/opencode/opencode.jsonc)
For OpenCode V2, add via the CLI:
opencode mcp add garmin-emulator --global -- node /path/to/garmin-emulator-mcp/dist/index.jsOr manually configure under mcp.servers in ~/.config/opencode/opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"garmin-emulator": {
"type": "local",
"command": [
"node",
"/path/to/garmin-emulator-mcp/dist/index.js"
]
}
}
}
}License
MIT
Available Tools
25 toolsact_on_uiC
Act on a freshly inspected native simulator element. set writes AXValue; AXPress activates controls.
Inputs: path (required), action (required), value.
build_appC
Build a Monkey C project for a specified device using the SDK monkeyc compiler.
Inputs: project_dir (required), device_id, extra_args, jungle_file, +2 more.
close_storage_editorA
Close the simulator's persistent-storage editor and verify the window is gone. Safe when already closed.
Inputs: no named parameters.
get_app_logsA
Retrieve console output, System.println logs, and crash traces from the running Monkey C application and simulator.
Inputs: clear, lines.
get_screenshotA
Capture a screenshot of the Connect IQ simulator. Supports watch display crop ('screen', 1:1 pixel mapping), full window with bezel ('bezel'), or annotated debug view with button hitboxes and coordinate grid ('annotated').
Inputs: view, device_id, save_path.
hold_screenB
Long-press at specific coordinates on the watch touchscreen (e.g. to open a watchface complication or menu).
Inputs: x (required), y (required), wait_ms, device_id, +3 more.
inspect_uiA
Read simulator Accessibility hierarchy, including menus and native dialogs. Paths are ephemeral: inspect before acting.
Inputs: depth.
launch_simulatorA
Launch the Garmin Connect IQ simulator application (ConnectIQ.app) from the SDK and wait for its TCP port 1234 to be open.
Inputs: wait_ms.
list_devicesB
List all installed Garmin device profiles in Connect IQ SDK Devices directory with display resolutions, touch support, screen shape, and available buttons.
Inputs: query, touch_only.
press_buttonA
Press a physical bezel button on the active Garmin device (e.g. 'select', 'back', 'up', 'down', 'menu'). Supports short clicks or long-press holds, and returns the updated watch screen.
Inputs: button (required), hold, method, hold_ms, +3 more.
press_button_sequenceA
Execute a sequence of button presses in order with configurable delays, capturing the final watch screen.
Inputs: steps (required), device_id, capture_after.
recognize_image_textA
Recognize text in a saved simulator PNG using on-device OCR. Returns text and normalized bounds; confidence is available on macOS. OCR is evidence, not a replacement for storage assertions.
Inputs: image_path (required).
restore_app_filesA
Restore a verified app-scoped snapshot. Requires explicit confirmation and a stopped app; never use while app/background writes are active.
Inputs: app_names (required), directory (required), confirm_stopped (required).
run_appA
Push and run a compiled Monkey C executable (.prg) on the active device in the simulator using monkeydo, and stream logs.
Inputs: prg_path (required), wait_ms, device_id, capture_after.
run_unit_testsB
Run Monkey C unit tests for a compiled .prg test binary in the simulator using monkeydo -t.
Inputs: prg_path (required), device_id, test_name, timeout_ms.
send_keyC
Send a platform virtual key code or named key ('enter', 'esc', 'up', 'down', 'menu', 'space') to the Connect IQ simulator window.
Inputs: key, hold_ms, wait_ms, key_code, +2 more.
set_active_deviceA
Set the active Garmin device ID for subsequent simulator commands, button presses, touch gestures, and screenshot cropping.
Inputs: device_id (required).
set_glance_modeA
Toggle or set the simulator Glance View mode (Settings > Glance View) for testing widget glance summaries.
Inputs: enabled, wait_ms, capture_after.
simulator_statusA
Inspect Connect IQ simulator process status, window ID, bounds, macOS Screen Recording and Accessibility permissions, TCP port 1234 status, and active device profile metadata.
Inputs: no named parameters.
snapshot_app_filesB
Back up only files matching explicit PRG basenames from simulator APPS. Does not stop the app; use an idle/stopped session.
Inputs: app_names (required), directory (required).
stop_appB
Stop the currently running Garmin Monkey C app process in the simulator.
Inputs: no named parameters.
swipe_screenA
Synthesize a touch drag gesture on the watch display in a cardinal direction ('up', 'down', 'left', 'right'), adhering to device gesture thresholds.
Inputs: direction (required), wait_ms, device_id, capture_after.
tap_screenB
Tap the watch touchscreen at specific display coordinates (X, Y) or normalized coordinates (0.0..1.0).
Inputs: x (required), y (required), wait_ms, device_id, +2 more.
terminate_simulatorA
Terminate only ConnectIQ.app; force is for an unresponsive simulator. Does not delete stored data. Relaunch separately after confirming stopped status.
Inputs: force.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools target clearly distinct actions: simulator lifecycle (launch/terminate/status), device management, build/run/test, input synthesis, UI inspection/acting, screenshots/OCR, and storage snapshots. A few pairs could be confused—set_glance_mode is a special case of trigger_menu_action, and send_key (window virtual keys) vs press_button (physical bezel) vs tap_screen/hold_screen require reading descriptions to distinguish. Descriptions do resolve these, so selection errors should be rare.
Nearly all tools follow a snake_case verb_noun pattern (launch_simulator, press_button, get_screenshot, restore_app_files), which is highly predictable. Minor deviations exist: simulator_status is noun-first, and act_on_ui uses a verb_preposition_noun form. These are readable and don't break the overall convention.
25 tools is at the upper edge of the 'heavy' band. The domain is genuinely broad (lifecycle, devices, build/run/tests, six input tools, UI automation, OCR, storage editor, snapshots, logs), so most tools earn their place, but the surface feels large and a few niche tools (close_storage_editor, set_glance_mode) could be consolidated into general menu/UI actions.
Coverage is strong: simulator lifecycle, device selection, build/run/unit tests, physical/touch/key input, screenshots with crops, OCR, UI inspection and acting, logs, and app-file snapshot/restore. Gaps remain: close_storage_editor has no open_storage_editor counterpart, there is no snapshot listing/deletion or log-clearing operation, and no explicit app-data reset tool—minor dead ends an agent can mostly work around.
Maintenance
Related MCP Connectors
Cloud iPhone Simulators for AI agents: build the Xcode project, read the screen, tap by label, test.
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.
Cloud iPhones and Macs with Xcode for AI agents: build, run and test iOS apps, use the screen.
Let your AI agent control real iPhones: screenshots, tap, swipe, type and open apps.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate iOS Simulator interactions including device management, UI element interaction (tap, swipe, type), screenshot capture, and execution of YAML-defined navigation workflows.ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control iOS Simulators and automate browsers by combining xcrun simctl, fb-idb, and Puppeteer for screenshot capture, device management, gestures, navigation, and DOM interaction.17 npm2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control real iPhones and simulators on macOS, allowing for UI interaction, testing, and automation.51 npm98MIT
- AlicenseNot gradedqualityDmaintenanceGives AI agents the ability to interact with iOS simulators through 21+ tools for mobile app testing.10,447 npmMIT