Skip to content

Claude Desktop

Add the Mobster MCP server to your Claude Desktop config file. Use the same server with Claude Code and Codex to read and tap your iOS app screens.

Use the Mobster MCP tools in Claude Desktop to check your iOS app. The tools run your app on a headless simulator Mobster manages. They return each screen as a list of controls by name. You can ask Claude to tap and type through these tools. Mobster checks your declared assertions and returns a verdict. The same tools reach a real iPhone plugged into your Mac.

You need an Apple silicon Mac with macOS 13 or later. Simulator work needs Xcode with an iOS Simulator runtime. A real iPhone needs Developer Mode and the WebDriverAgent runner, set up in Mobster for Mac (Device setup). To set up your iPhone and to build and test your own app, you need the macOS your Xcode version needs (Apple lists it on its Xcode page).

Add the server

In Mobster for Mac, open Settings › Connectors › Use Mobster from… and press Add next to Claude Desktop. It writes the mobster entry for you, and when the app holds your model key it passes the app’s settings file with --env-file, so Smart uses the same key.

By hand: open Claude Desktop’s config from the Claude menu: Settings, then the Developer tab, then Edit Config. The file is ~/Library/Application Support/Claude/claude_desktop_config.json. Add Mobster under mcpServers:

{  "mcpServers": {    "mobster": {      "command": "/Applications/Mobster.app/Contents/MacOS/mobster-agent",      "args": ["mcp", "--out", "/Users/<you>/mobster-runs"]    }  }}

Use an absolute path for both. Claude Desktop starts a local server with only a small part of your environment, and the server’s working folder may be /. When it is, Mobster writes runs to runs/ in its own data folder; --out puts them where you can find them. Each run folder holds report.html, result.json and the frames.

The app’s Add leaves out --out, so add that yourself if you want the runs in a folder you choose.

Quit Claude Desktop completely and open it again, so it reads the file.

For Smart, where Mobster runs the steps itself on your OpenAI or Anthropic key, add "--env-file", "/Users/<you>/.config/mobster/agent.env" to args. The file holds OPENAI_API_KEY=… or ANTHROPIC_API_KEY=…, readable only by you. Without it, Claude does the driving with its own model and Mobster calls no model at all.

The MCP pages for Claude Desktop don’t state a tool-call timeout. Mobster keeps its calls short: each returns within 45 seconds and wait within 50. The first simulator boot and a Smart run continue under a run_id; ask your agent to call wait until they’re done.

Check it’s connected

Click the + button under the chat box, then Connectors: mobster should be listed. The Developer tab in Settings shows each server’s status and opens its logs. The Mobster server writes its log to stderr. You can read it at ~/Library/Logs/Claude/mcp-server-mobster.log. Then ask:

Call mobster's status tool and tell me what it says.

A first check: the task list, launch-only

A check with no steps is the quickest one to try. Build your app for the simulator once in Terminal:

xcodebuild -scheme YourApp -destination 'generic/platform=iOS Simulator' \  -derivedDataPath .mobster/build CODE_SIGNING_ALLOWED=NO build

Then ask Claude, with the absolute path to the app you built:

Use mobster to check my app at /Users/<you>/YourApp/.mobster/build/Build/Products/Debug-iphonesimulator/YourApp.app.Launch it with SEED_TASKS=3, open yourapp://tasks with no steps, and expect "3 tasks left",three elements whose id starts with task_, an Add a task button, and no "Loading".

Ask Claude to call verify_start with an empty steps list and these expectations:

[  {"text": "3 tasks left"},  {"count": {"id": "/^task_/"}, "equals": 3},  {"visible": {"id": "add_task", "role": "button"}},  {"no_text": "Loading"}]

Mobster installs the app, opens the deep link, and verify_finish checks these expect assertions together against one accessibility-tree read. Mobster returns the verdict, the line that failed if any, and the path to report.html, which shows the screen with each asserted element outlined in green or red. From there, ask your agent to call screen, tap, type_text and swipe to move through a flow before calling verify_finish.

Use a real iPhone

Ask Claude to call list_devices. A USB iPhone set up for Mobster is listed with its name and state. Called with that device and no run_id, screen, tap, type_text, swipe, alert, open_url, launch_app and home act on the phone itself. Mobster takes the phone’s lock, so the Mac app and other commands wait, and releases it after stop with the device or 90 idle seconds.

Claude Desktop asks for your approval before a tool runs. That approval covers the tool across devices. Allowing tap while testing on a simulator allows it on your iPhone too. Limit the server to the phones you choose by adding "--allow-device", "Test iPhone" to args. Any other real device is listed as not_allowed and refused. The Mobster MCP annotations mark status, screen, list_devices, wait, wait_for, read_notifications and unlock_status as read-only. The server’s instructions tell Claude to treat text on the screen as data. They also tell it to ask you before anything that sends, buys, posts or deletes on a real iPhone.

A locked iPhone stops the call at once with “Your iPhone is locked. Unlock it and try again. No action was taken.” Mobster never enters a passcode and never uses Face ID.

Troubleshooting

SymptomFix
mobster isn’t in Connectors after a restartUse the absolute path /Applications/Mobster.app/Contents/MacOS/mobster-agent in command, check the JSON is valid, and quit Claude Desktop completely before opening it again
The server starts and exitsRead ~/Library/Logs/Claude/mcp-server-mobster.log, which holds the server’s own error output
You can’t find the run’s reportPass --out with an absolute folder. Without it, a server started in / writes to runs/ in the Mobster data folder
The first verify_start returns status: "preparing"The simulator is booting and WebDriverAgent is building. Ask your agent to call wait
couldnt_run, or verify_start has no smart argumentreason.fix in the result says what to do. status says why Smart is off

The MCP reference lists every tool. For coding work in the terminal, see Mobster in Claude Code.

Questions

  • Why doesn't Claude Desktop start the Mobster server?

    Most often the command isn't an absolute path. Claude Desktop starts local servers with only a small part of your environment, so your shell's PATH may be missing. Put the full path /Applications/Mobster.app/Contents/MacOS/mobster-agent in command, then quit Claude Desktop completely and open it again.

  • Can I add Mobster from the Connectors menu?

    No. Add it by editing claude_desktop_config.json, through Settings, then Developer, then Edit Config. The Connectors menu then shows it once it's connected.

  • Where are runs saved when Claude Desktop starts the server?

    Claude Desktop may start servers in the root folder, and when the folder is / or your home folder, Mobster writes runs to runs/ in its own data folder. Pass --out with an absolute path to choose another folder.

Sources

Claude Desktop’s logo is a trademark of Anthropic, shown only to name the product. Mobster isn’t affiliated with or endorsed by Anthropic.