The iOS Simulator MCP server supports the following environment variables for fine-grained control over its behavior. These can be passed via the env key in your MCP client configuration (e.g., mcp.json).
| Variable | Description | Example |
|---|
IOS_SIMULATOR_MCP_FILTERED_TOOLS | A comma-separated list of tool names to filter out from being registered. | screenshot,record_video,stop_recording |
IOS_SIMULATOR_MCP_DEFAULT_OUTPUT_DIR | Specifies a default directory for output files like screenshots and video recordings. Defaults to ~/Downloads. | ~/Code/awesome-project/tmp |
IOS_SIMULATOR_MCP_IDB_PATH | Specifies a custom path to the idb executable. Defaults to idb in your PATH. | ~/bin/idb |
{
"mcpServers": {
"ios-simulator": {
"command": "npx",
"args": ["-y", "ios-simulator-mcp"],
"env": {
"IOS_SIMULATOR_MCP_FILTERED_TOOLS": "screenshot,record_video,stop_recording",
"IOS_SIMULATOR_MCP_DEFAULT_OUTPUT_DIR": "~/Code/awesome-project/tmp",
"IOS_SIMULATOR_MCP_IDB_PATH": "~/bin/idb"
}
}
}
}