# brawsr MCP server

> Manages browser sessions, checkpoints, rewinds, and forks using the brawsr SDK.

- Repository: https://github.com/brawsr/mcp-server
- Page: https://hostedmcp.org/servers/brawsr/mcp-server
- Transport: stdio
- Stars: 0
- License: Apache-2.0
- Latest version: 0.2.0

## Install

### Claude Code

```sh
claude mcp add --env 'BRAWSR_API_KEY=<YOUR_BRAWSR_API_KEY>' mcp-server -- npx -y @brawsr/mcp-server
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@brawsr/mcp-server"
      ],
      "env": {
        "BRAWSR_API_KEY": "<YOUR_BRAWSR_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@brawsr/mcp-server"
      ],
      "env": {
        "BRAWSR_API_KEY": "<YOUR_BRAWSR_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@brawsr/mcp-server"],"env":{"BRAWSR_API_KEY":"<YOUR_BRAWSR_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@brawsr/mcp-server"
      ],
      "env": {
        "BRAWSR_API_KEY": "<YOUR_BRAWSR_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server --env 'BRAWSR_API_KEY=<YOUR_BRAWSR_API_KEY>' -- npx -y @brawsr/mcp-server
```

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

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@brawsr/mcp-server"]

[mcp_servers.mcp-server.env]
BRAWSR_API_KEY = "<YOUR_BRAWSR_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'BRAWSR_API_KEY=<YOUR_BRAWSR_API_KEY>' mcp-server npx -- -y @brawsr/mcp-server
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@brawsr/mcp-server"
      ],
      "env": {
        "BRAWSR_API_KEY": "<YOUR_BRAWSR_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `BRAWSR_API_KEY` | yes | yes | API key for the brawsr project used by this MCP server. |
| `BRAWSR_BASE_URL` | no | no | Optional explicit API endpoint override for local development or another deployment. |
| `BRAWSR_MCP_TIMEOUT_MS` | no | no | Optional default lifecycle wait in milliseconds, from 1 through 300000. |

## Tools (1)

- `brawsr_close_sessions`

## FAQ

### What environment variables are required to run the brawsr MCP server?

The only required environment variable is BRAWSR_API_KEY.

### Can I change the default operation timeout?

Yes, you can use the BRAWSR_MCP_TIMEOUT_MS variable to set a custom timeout between 1 and 300,000 milliseconds.

### Does the server proxy CDP connections?

No, the MCP server does not proxy CDP; you must use the SDK or a supported framework to attach using the provided CDP URLs.

### What happens to browser state during a rewind operation?

Rewind restores the browser and client state, but it does not restore remote website side effects and will make old CDP/browser handles stale.
