Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-piotr-graczyk-dev-agemu": {
"command": "npx",
"args": [
"-y",
"agentic-emulator"
],
"env": {
"AGEMU_HOME": "~/.agemu",
"AGEMU_IOS_LEAN": "on",
"AGEMU_AUTO_PARK": "off",
"AGEMU_ANDROID_GPU": "host (auto on Linux without a display)",
"AGEMU_ANDROID_AVDS": "agemu-",
"AGEMU_ANDROID_LEAN": "1",
"AGEMU_ANDROID_LOGS": "on",
"AGEMU_IOS_IDLE_EXIT": "on",
"AGEMU_IOS_IDLE_KEEP": "unset",
"AGEMU_IOS_ANIMATIONS": "normal",
"AGEMU_IOS_MAX_BOOTED": "2, or 1 while memory is short",
"AGEMU_IOS_TAP_SETTLE": "on",
"AGEMU_ANDROID_STANDBY": "1",
"AGEMU_IOS_ALL_DEVICES": "off",
"AGEMU_IOS_LOG_CAPTURE": "on",
"AGEMU_IOS_TAP_HOLD_MS": "100",
"AGEMU_ANDROID_TAP_WAIT": "1",
"AGEMU_IOS_ALLOW_FOREIGN": "off",
"AGEMU_ANDROID_ANIMATIONS": "normal",
"AGEMU_ANDROID_STREAM_IDLE_S": "30",
"AGEMU_ANDROID_FIRSTBOOT_REPAIR": "1",
"AGEMU_ANDROID_BASELINE_UPTIME_S": "420",
"AGEMU_ANDROID_SNAPSHOT_COMPRESS": "1"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-piotr-graczyk-dev-agemu": {
"command": "npx",
"args": [
"-y",
"agentic-emulator"
],
"env": {
"AGEMU_HOME": "~/.agemu",
"AGEMU_IOS_LEAN": "on",
"AGEMU_AUTO_PARK": "off",
"AGEMU_ANDROID_GPU": "host (auto on Linux without a display)",
"AGEMU_ANDROID_AVDS": "agemu-",
"AGEMU_ANDROID_LEAN": "1",
"AGEMU_ANDROID_LOGS": "on",
"AGEMU_IOS_IDLE_EXIT": "on",
"AGEMU_IOS_IDLE_KEEP": "unset",
"AGEMU_IOS_ANIMATIONS": "normal",
"AGEMU_IOS_MAX_BOOTED": "2, or 1 while memory is short",
"AGEMU_IOS_TAP_SETTLE": "on",
"AGEMU_ANDROID_STANDBY": "1",
"AGEMU_IOS_ALL_DEVICES": "off",
"AGEMU_IOS_LOG_CAPTURE": "on",
"AGEMU_IOS_TAP_HOLD_MS": "100",
"AGEMU_ANDROID_TAP_WAIT": "1",
"AGEMU_IOS_ALLOW_FOREIGN": "off",
"AGEMU_ANDROID_ANIMATIONS": "normal",
"AGEMU_ANDROID_STREAM_IDLE_S": "30",
"AGEMU_ANDROID_FIRSTBOOT_REPAIR": "1",
"AGEMU_ANDROID_BASELINE_UPTIME_S": "420",
"AGEMU_ANDROID_SNAPSHOT_COMPRESS": "1"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-piotr-graczyk-dev-agemu": {
"command": "npx",
"args": [
"-y",
"agentic-emulator"
],
"env": {
"AGEMU_HOME": "~/.agemu",
"AGEMU_IOS_LEAN": "on",
"AGEMU_AUTO_PARK": "off",
"AGEMU_ANDROID_GPU": "host (auto on Linux without a display)",
"AGEMU_ANDROID_AVDS": "agemu-",
"AGEMU_ANDROID_LEAN": "1",
"AGEMU_ANDROID_LOGS": "on",
"AGEMU_IOS_IDLE_EXIT": "on",
"AGEMU_IOS_IDLE_KEEP": "unset",
"AGEMU_IOS_ANIMATIONS": "normal",
"AGEMU_IOS_MAX_BOOTED": "2, or 1 while memory is short",
"AGEMU_IOS_TAP_SETTLE": "on",
"AGEMU_ANDROID_STANDBY": "1",
"AGEMU_IOS_ALL_DEVICES": "off",
"AGEMU_IOS_LOG_CAPTURE": "on",
"AGEMU_IOS_TAP_HOLD_MS": "100",
"AGEMU_ANDROID_TAP_WAIT": "1",
"AGEMU_IOS_ALLOW_FOREIGN": "off",
"AGEMU_ANDROID_ANIMATIONS": "normal",
"AGEMU_ANDROID_STREAM_IDLE_S": "30",
"AGEMU_ANDROID_FIRSTBOOT_REPAIR": "1",
"AGEMU_ANDROID_BASELINE_UPTIME_S": "420",
"AGEMU_ANDROID_SNAPSHOT_COMPRESS": "1"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-piotr-graczyk-dev-agemu": {
"command": "npx",
"args": [
"-y",
"agentic-emulator"
],
"env": {
"AGEMU_HOME": "~/.agemu",
"AGEMU_IOS_LEAN": "on",
"AGEMU_AUTO_PARK": "off",
"AGEMU_ANDROID_GPU": "host (auto on Linux without a display)",
"AGEMU_ANDROID_AVDS": "agemu-",
"AGEMU_ANDROID_LEAN": "1",
"AGEMU_ANDROID_LOGS": "on",
"AGEMU_IOS_IDLE_EXIT": "on",
"AGEMU_IOS_IDLE_KEEP": "unset",
"AGEMU_IOS_ANIMATIONS": "normal",
"AGEMU_IOS_MAX_BOOTED": "2, or 1 while memory is short",
"AGEMU_IOS_TAP_SETTLE": "on",
"AGEMU_ANDROID_STANDBY": "1",
"AGEMU_IOS_ALL_DEVICES": "off",
"AGEMU_IOS_LOG_CAPTURE": "on",
"AGEMU_IOS_TAP_HOLD_MS": "100",
"AGEMU_ANDROID_TAP_WAIT": "1",
"AGEMU_IOS_ALLOW_FOREIGN": "off",
"AGEMU_ANDROID_ANIMATIONS": "normal",
"AGEMU_ANDROID_STREAM_IDLE_S": "30",
"AGEMU_ANDROID_FIRSTBOOT_REPAIR": "1",
"AGEMU_ANDROID_BASELINE_UPTIME_S": "420",
"AGEMU_ANDROID_SNAPSHOT_COMPRESS": "1"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-piotr-graczyk-dev-agemu": {
"command": "npx",
"args": [
"-y",
"agentic-emulator"
],
"env": {
"AGEMU_HOME": "~/.agemu",
"AGEMU_IOS_LEAN": "on",
"AGEMU_AUTO_PARK": "off",
"AGEMU_ANDROID_GPU": "host (auto on Linux without a display)",
"AGEMU_ANDROID_AVDS": "agemu-",
"AGEMU_ANDROID_LEAN": "1",
"AGEMU_ANDROID_LOGS": "on",
"AGEMU_IOS_IDLE_EXIT": "on",
"AGEMU_IOS_IDLE_KEEP": "unset",
"AGEMU_IOS_ANIMATIONS": "normal",
"AGEMU_IOS_MAX_BOOTED": "2, or 1 while memory is short",
"AGEMU_IOS_TAP_SETTLE": "on",
"AGEMU_ANDROID_STANDBY": "1",
"AGEMU_IOS_ALL_DEVICES": "off",
"AGEMU_IOS_LOG_CAPTURE": "on",
"AGEMU_IOS_TAP_HOLD_MS": "100",
"AGEMU_ANDROID_TAP_WAIT": "1",
"AGEMU_IOS_ALLOW_FOREIGN": "off",
"AGEMU_ANDROID_ANIMATIONS": "normal",
"AGEMU_ANDROID_STREAM_IDLE_S": "30",
"AGEMU_ANDROID_FIRSTBOOT_REPAIR": "1",
"AGEMU_ANDROID_BASELINE_UPTIME_S": "420",
"AGEMU_ANDROID_SNAPSHOT_COMPRESS": "1"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-piotr-graczyk-dev-agemu": {
"command": "npx",
"args": [
"-y",
"agentic-emulator"
],
"env": {
"AGEMU_HOME": "~/.agemu",
"AGEMU_IOS_LEAN": "on",
"AGEMU_AUTO_PARK": "off",
"AGEMU_ANDROID_GPU": "host (auto on Linux without a display)",
"AGEMU_ANDROID_AVDS": "agemu-",
"AGEMU_ANDROID_LEAN": "1",
"AGEMU_ANDROID_LOGS": "on",
"AGEMU_IOS_IDLE_EXIT": "on",
"AGEMU_IOS_IDLE_KEEP": "unset",
"AGEMU_IOS_ANIMATIONS": "normal",
"AGEMU_IOS_MAX_BOOTED": "2, or 1 while memory is short",
"AGEMU_IOS_TAP_SETTLE": "on",
"AGEMU_ANDROID_STANDBY": "1",
"AGEMU_IOS_ALL_DEVICES": "off",
"AGEMU_IOS_LOG_CAPTURE": "on",
"AGEMU_IOS_TAP_HOLD_MS": "100",
"AGEMU_ANDROID_TAP_WAIT": "1",
"AGEMU_IOS_ALLOW_FOREIGN": "off",
"AGEMU_ANDROID_ANIMATIONS": "normal",
"AGEMU_ANDROID_STREAM_IDLE_S": "30",
"AGEMU_ANDROID_FIRSTBOOT_REPAIR": "1",
"AGEMU_ANDROID_BASELINE_UPTIME_S": "420",
"AGEMU_ANDROID_SNAPSHOT_COMPRESS": "1"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| AGEMU_HOME | No | State directory and the daemon's socket. Default: ~/.agemu |
| AGEMU_IOS_LEAN | No | `0`: the full Simulator (jobs back from the next boot, keynote mode removed). Default: on |
| AGEMU_AUTO_PARK | No | A duration (`10m`, `90s`; at least 10 s): park a device the daemon serves once it has had no call for that long; the next call resumes it. See docs/IOS.md#parking. Default: off |
| AGEMU_ANDROID_GPU | No | `auto`: software rendering. Default: host (auto on Linux without a display) |
| AGEMU_ANDROID_AVDS | No | AVD name prefixes agemu manages. Default: agemu- |
| AGEMU_ANDROID_LEAN | No | `0`: keep the Google apps (applies when a baseline is taken). Default: 1 |
| AGEMU_ANDROID_LOGS | No | `0`: no log capture; `logs` says so (iOS still watches launched apps' exits and `.ips` reports). Default: on |
| AGEMU_IOS_IDLE_EXIT | No | Lean simulators end the on-demand daemons that stay idle after boot, except those found behind public app APIs. `all`: those too (an app's first call to one then waits for its restart, up to 2-3 s); `0`: none. Default: on |
| AGEMU_IOS_IDLE_KEEP | No | Comma-separated daemon names (executable file names) that are never ended as idle. Default: unset |
| AGEMU_IOS_ANIMATIONS | No | `0`: UIKit and SwiftUI animations ×0.05 (or a factor from 0.05 to 1). Default: normal |
| AGEMU_IOS_MAX_BOOTED | No | agemu simulators booted at once; a boot or iOS profile switch beyond it shuts down the least recently used one. Default: 2, or 1 while memory is short |
| AGEMU_IOS_TAP_SETTLE | No | `0`: taps and typing do not wait for a still screen, nor taps for a just-presented element. Default: on |
| AGEMU_ANDROID_STANDBY | No | `0`: `shutdown` always powers off. Default: 1 |
| AGEMU_IOS_ALL_DEVICES | No | `1`: list every simulator (read-only); also act on them. Default: off |
| AGEMU_IOS_LOG_CAPTURE | No | `0`: no log capture; `logs` says so (iOS still watches launched apps' exits and `.ips` reports). Default: on |
| AGEMU_IOS_TAP_HOLD_MS | No | How long an iOS tap holds the touch down (a SwiftUI Toggle ignores a touch that ends as it begins). Default: 100 |
| AGEMU_ANDROID_TAP_WAIT | No | `0`: taps by selector do not wait for transitions or motion. Default: 1 |
| AGEMU_IOS_ALLOW_FOREIGN | No | `1`: list every simulator (read-only); also act on them. Default: off |
| AGEMU_ANDROID_ANIMATIONS | No | `0`: system animations off. Default: normal |
| AGEMU_ANDROID_STREAM_IDLE_S | No | Seconds without calls before the frame stream of a changing screen stops; `0`: never. Default: 30 |
| AGEMU_ANDROID_FIRSTBOOT_REPAIR | No | `0`: do not boot an AVD whose first boot was interrupted before it ever completed with `-wipe-data` (two interruptions about 10 s in leave it unbootable otherwise). Default: 1 |
| AGEMU_ANDROID_BASELINE_UPTIME_S | No | Guest uptime (and a quiet minute) the baseline waits for; a first boot then takes 7-8 min (at most 20), during which the device is `preparing`; `0`: save at once (applies when a baseline is taken). Default: 420 |
| AGEMU_ANDROID_SNAPSHOT_COMPRESS | No | `0`: raw baseline (applies when a baseline is taken). Default: 1 |