# macbox [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/opslane/macbox-agent  
**GitHub Stars:** 0  
**npm Downloads (last month):** 168  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/macbox

## Description
A real Mac for your agent: build, test, run, and tap through iOS apps on the simulator.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "macbox": {
    "command": "npx",
    "args": ["-y","macbox","mcp"],
    "env": {
      "MACBOX_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `MACBOX_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What macbox does

macbox provides a remote Mac environment for agent-driven iOS development. An MCP client can ask it to build an Xcode project or workspace, run tests on a clean simulator, launch the last build, and inspect the running app. UI tools let an agent read the interface and perform actions including taps, text entry, swipes, and hardware-button presses.

Running apps also receive a browser link, allowing a developer to watch and use the session. The service charges by whole Mac-minute, with jobs shorter than one minute free and listed usage priced at $0.05 per minute.

Native projects supported by the service include Xcode projects and workspaces, Swift packages, CocoaPods projects, and XcodeGen-based projects. macOS app builds are supported through the build command as well as iOS simulator builds.

## How it works

macbox sends files tracked by Git to one dedicated Mac mini and runs the work inside a private macOS VM. After the initial transfer, only changed files are uploaded, while the build cache remains available for subsequent builds. The VM is isolated from other VMs and from the service's network.

The MCP entry point runs locally through the npm package and communicates with the macbox service. A separate CLI is available for login, setup, builds, tests, and UI control. For deeper Xcode work, `macbox mcp --xcode` exposes MobileBuildMCP Xcode tools, including LLDB debugging, Swift package operations, and simulator settings.

## Setup and configuration

The MCP configuration can run with Node.js 18 or newer:

```json
{
  "mcpServers": {
    "macbox": { "command": "npx", "args": ["-y", "macbox", "mcp"] }
  }
}
```

Install the CLI on macOS or Linux with the installation script, then authenticate using `macbox login`. In a cloud agent, authentication can instead use the `MACBOX_API_KEY` environment variable. Running `macbox setup` installs the skill for Claude Code and Codex and adds setup notes to `CLAUDE.md` and `AGENTS.md`.

Claude Code and Codex can also install the repository plugin, while clients that support skills can add it with `npx skills add opslane/macbox-agent`.

## Tools and capabilities

The main MCP tools map closely to CLI commands:

- `build` compiles an iOS simulator target or a macOS app.
- `test` runs tests on a fresh simulator and returns one PASS or FAIL line per test.
- `screenshot` launches the latest build and returns an image.
- `run` starts the app and returns a live browser link.
- `describe`, `tap`, `type`, `swipe`, `press_button`, and `look` operate on the running app.
- `stop` ends the active app session.
- `report_problem` sends service-side feedback to the macbox team.

## Limitations and notes

Signing and TestFlight workflows are not supported. React Native and Flutter projects are also outside the currently supported project types. The service itself runs on remote Macs, so local agents need network access to use it. The repository contains the client-side plugin, skill, npm package, and MCP Registry entry; the macbox service runs on the provider's infrastructure. macbox is MIT licensed.

_Full upstream README: https://allmcps.com/mcp/macbox/readme_

