# sitelooper MCP server

> Record browser flows using an LLM agent and compile them into deterministic Playwright specs that run without models or extra costs.

- Repository: https://github.com/restspace/sitelooper
- Page: https://hostedmcp.org/servers/restspace/sitelooper
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.7.0

## Install

### Claude Code

```sh
claude mcp add --env 'OPENROUTER_API_KEY=<YOUR_OPENROUTER_API_KEY>' sitelooper -- npx -y sitelooper
```

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

```json
{
  "mcpServers": {
    "sitelooper": {
      "command": "npx",
      "args": [
        "-y",
        "sitelooper"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<YOUR_OPENROUTER_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "sitelooper": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sitelooper"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<YOUR_OPENROUTER_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"sitelooper","type":"stdio","command":"npx","args":["-y","sitelooper"],"env":{"OPENROUTER_API_KEY":"<YOUR_OPENROUTER_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "sitelooper": {
      "command": "npx",
      "args": [
        "-y",
        "sitelooper"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<YOUR_OPENROUTER_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add sitelooper --env 'OPENROUTER_API_KEY=<YOUR_OPENROUTER_API_KEY>' -- npx -y sitelooper
```

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

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

[mcp_servers.sitelooper.env]
OPENROUTER_API_KEY = "<YOUR_OPENROUTER_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'OPENROUTER_API_KEY=<YOUR_OPENROUTER_API_KEY>' sitelooper npx -- -y sitelooper
```

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

```json
{
  "mcpServers": {
    "sitelooper": {
      "command": "npx",
      "args": [
        "-y",
        "sitelooper"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<YOUR_OPENROUTER_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `OPENROUTER_API_KEY` | no | yes | API key for the default model provider (OpenRouter). Not needed if another provider's key variable is set; run `sitelooper doctor` to see which one is used. |
| `BP_BROWSER_TESTS` | no | no |  |
| `TEST_TOTP` | no | no |  |

## FAQ

### How does sitelooper handle changes in the application UI?

It uses a recovery ladder where steps first attempt to replay with zero model calls; if that fails, a cheap model attempts recovery, followed by a stronger model if needed.

### Does the compiled Playwright spec require an LLM to run?

No, once the flow is compiled, it runs as a standalone Playwright spec with no model, no tokens, and no additional cost.
