# Codexbox MCP server

> Lets an AI client run OpenAI Codex CLI prompts and manage workspace files through a sandboxed container environment.

- Repository: https://github.com/psyb0t/docker-codexbox
- Page: https://hostedmcp.org/servers/psyb0t/docker-codexbox
- Transport: remote
- Stars: 0
- License: WTFPL
- Latest version: 0.7.8

## Install

### Claude Code

```sh
claude mcp add docker-codexbox -- docker run -i --rm docker.io/psyb0t/codexbox:v0.7.8
```

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

```json
{
  "mcpServers": {
    "docker-codexbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/codexbox:v0.7.8"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "docker-codexbox": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/codexbox:v0.7.8"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"docker-codexbox","type":"stdio","command":"docker","args":["run","-i","--rm","docker.io/psyb0t/codexbox:v0.7.8"]}'
```

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

```json
{
  "mcpServers": {
    "docker-codexbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/codexbox:v0.7.8"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add docker-codexbox -- docker run -i --rm docker.io/psyb0t/codexbox:v0.7.8
```

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

```toml
[mcp_servers.docker-codexbox]
command = "docker"
args = ["run", "-i", "--rm", "docker.io/psyb0t/codexbox:v0.7.8"]
```

### Gemini CLI

```sh
gemini mcp add -s user docker-codexbox docker -- run -i --rm docker.io/psyb0t/codexbox:v0.7.8
```

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

```json
{
  "mcpServers": {
    "docker-codexbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/codexbox:v0.7.8"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CODEXBOX_FULL` | no | no |  |

## FAQ

### What does the MCP mode provide?

The MCP mode provides run_prompt and workspace file tools over streamable HTTP.

### How can I use Codexbox with my ChatGPT subscription?

You can log in using the device authentication method to use your ChatGPT subscription.
