# macbox MCP server

> Allows AI agents to build, test, and interact with native iOS apps on a cloud-based Mac mini using an iOS simulator.

- Repository: https://github.com/opslane/macbox-agent
- Page: https://hostedmcp.org/servers/opslane/macbox-agent
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.6.2

## Install

### Claude Code

```sh
claude mcp add --env 'MACBOX_API_KEY=<YOUR_MACBOX_API_KEY>' macbox-agent -- npx -y macbox
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "macbox-agent": {
      "command": "npx",
      "args": [
        "-y",
        "macbox"
      ],
      "env": {
        "MACBOX_API_KEY": "<YOUR_MACBOX_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "macbox-agent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "macbox"
      ],
      "env": {
        "MACBOX_API_KEY": "<YOUR_MACBOX_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"macbox-agent","type":"stdio","command":"npx","args":["-y","macbox"],"env":{"MACBOX_API_KEY":"<YOUR_MACBOX_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "macbox-agent": {
      "command": "npx",
      "args": [
        "-y",
        "macbox"
      ],
      "env": {
        "MACBOX_API_KEY": "<YOUR_MACBOX_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add macbox-agent --env 'MACBOX_API_KEY=<YOUR_MACBOX_API_KEY>' -- npx -y macbox
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.macbox-agent]
command = "npx"
args = ["-y", "macbox"]

[mcp_servers.macbox-agent.env]
MACBOX_API_KEY = "<YOUR_MACBOX_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'MACBOX_API_KEY=<YOUR_MACBOX_API_KEY>' macbox-agent npx -- -y macbox
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "macbox-agent": {
      "command": "npx",
      "args": [
        "-y",
        "macbox"
      ],
      "env": {
        "MACBOX_API_KEY": "<YOUR_MACBOX_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MACBOX_API_KEY` | no | yes | Your macbox API key (mbx_...). Optional if you ran `macbox login`. |

## FAQ

### What can an AI agent do with macbox?

An agent can build for the iOS simulator, run tests, take screenshots, and interact with the app via tapping, typing, and swiping.

### How much does macbox cost?

The service uses a pay-per-minute model at $0.05 per Mac minute, and any job lasting under a minute is free.

### Does macbox support React Native or Flutter?

Currently, macbox does not support signing, TestFlight, React Native, or Flutter.

### How do I authenticate with macbox?

You can log in using the macbox CLI or by setting the MACBOX_API_KEY environment variable.
