Skip to main content
Glama
README.md
# boat-mcp

MCP server for [boat.dev](https://boat.dev). Your AI client can create sandboxes, run commands, edit files, open desktops, and manage snapshots, using every boat API operation as a tool.

- **Local (stdio)** for Claude Code, Codex, Cursor, and Claude Desktop, with a boat API key.
- **Hosted (HTTP)** for Claude, ChatGPT, and Grok connectors. Users sign in with boat; the server stores no tokens.

## Quick start

> Not on npm yet. Until the first release, build from source and use `node /path/to/boat-mcp/dist/cli.js` in place of `npx -y boat-mcp`.

Create an API key with the actions you want to allow:

```sh
boat api-key create boat-mcp --ttl 90d \
  --actions account.read,sandbox.read,sandbox.create,sandbox.update,sandbox.stop,sandbox.resume,sandbox.fork,sandbox.delete-own,exec,file.read,file.write,agent.prompt,desktop,host,snapshot.read,snapshot.write
```

Claude Code:

```sh
claude mcp add boat --env BOAT_API_KEY=boat_... -- npx -y boat-mcp
```

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

```toml
[mcp_servers.boat]
command = "npx"
args = ["-y", "boat-mcp"]
env = { BOAT_API_KEY = "boat_..." }
```

Cursor, Claude Desktop, and other JSON configs:

```json
{
  "mcpServers": {
    "boat": {
      "command": "npx",
      "args": ["-y", "boat-mcp"],
      "env": { "BOAT_API_KEY": "boat_..." }
    }
  }
}
```

## Toolsets

The six default toolsets load 70 tools. Set `BOAT_MCP_TOOLSETS` to a comma list, or `all` for all 119.

| Toolset        | Tools | Default |
| -------------- | ----: | :-----: |
| `sandboxes`    |    17 |   yes   |
| `commands`     |     7 |   yes   |
| `files`        |    13 |   yes   |
| `agents`       |     6 |   yes   |
| `snapshots`    |    14 |   yes   |
| `account`      |    13 |   yes   |
| `environments` |    11 |         |
| `network`      |     2 |         |
| `credentials`  |    17 |         |
| `ci`           |     5 |         |
| `webhooks`     |     6 |         |
| `telemetry`    |     3 |         |
| `api_keys`     |     5 |         |

## Hosting

```sh
docker build -t boat-mcp .
docker run -p 3000:3000 -e BOAT_MCP_PUBLIC_URL=https://mcp.example.com/mcp boat-mcp
```

The server is an OAuth resource server. Clients discover boat.dev as the authorization server, sign the user in there, and send the boat token with each request.

| Variable | Default |  |
| --- | --- | --- |
| `BOAT_MCP_PUBLIC_URL` | required | Public URL of the MCP endpoint |
| `PORT` | `3000` |  |
| `BOAT_MCP_TOOLSETS` | defaults |  |
| `BOAT_MCP_SCOPES` | everyday sandbox set | Scopes clients request at sign-in |
| `BOAT_OAUTH_ISSUER` | `https://boat.dev` |  |
| `BOAT_API_URL` | `https://boat.dev/api/v1` |  |
| `BOAT_MCP_TOKEN_CACHE_SECONDS` | `60` | How long a checked token is trusted |

boat doesn't support client self-registration yet, so each client needs its own boat OAuth app. For Claude:

```sh
boat app create "Claude" --redirect-uri https://claude.ai/api/mcp/auth_callback
```

Then enter the client ID and secret in Claude's custom connector settings.

Hosting it means users trust you with their boat tokens. For personal use, run it locally.

## Development

```sh
mise exec -- pnpm install
mise exec -- pnpm check                 # lint, types, tests
mise exec -- pnpm e2e                   # real sandbox lifecycle; needs BOAT_API_KEY in .env
mise exec -- pnpm sync-openapi --fetch  # pull boat's latest API and regenerate
```

## License

MIT

TDQS

C2.9/5.0

Scored across 70 tools

Disambiguation2/5

Several tool families overlap heavily: list_snapshots vs list_saved_snapshots vs list_sandbox_snapshots, the three snapshot-delete variants, and get_command vs get_command_status vs get_command_logs vs list_command_history. File-download tools also overlap (create_download_url, get_artifact, read_file). Descriptions are detailed, but the 70-tool surface makes boundaries hard to keep straight.

Naming Consistency4/5

Most tools follow a predictable verb_noun pattern: get_, list_, create_, delete_, update_, read_, write_, etc. There are minor deviations such as host_port and get_stop, plus some long compound names, but no chaotic mixing of casing or naming styles.

Tool Count1/5

Seventy tools is far beyond a well-scoped 3–15 tool surface and exceeds the 50+ threshold for extreme count mismatch. Even for a broad sandbox platform, this many endpoints burdens selection and suggests grouping or hierarchical resources would be better.

Completeness4/5

Coverage is broad across sandbox lifecycle, files, commands, snapshots, organizations, secrets, repos, and agents, with no obvious dead ends for core workflows. Minor gaps remain around explicit restore/launch from saved snapshots and organization membership management.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues