Skip to main content
Glama
README.md
# Open Browser Agent

An independent, self-hostable browser automation service built on Playwright and the Model Context Protocol (MCP). It provides a local persistent Chromium session and composable tools to navigate, inspect and interact with web pages.

This is an original implementation. It is not affiliated with TinyFish and does not copy TinyFish's proprietary hosted service.

## Current status

**Early MVP — local browser control.** The first version exposes browser lifecycle, navigation, page snapshots, CSS-selector interaction, waits, link extraction and screenshots. It does not yet provide a hosted browser fleet, search API, CAPTCHA solving, stealth/evasion or a self-directed LLM planner. The connected assistant supplies the reasoning loop by calling MCP tools.

## Requirements

- Node.js 20+
- npm
- Chromium installed by Playwright
- An MCP-compatible client

## Install

```bash
git clone https://github.com/sakurachris0-max/open-browser-agent.git
cd open-browser-agent
npm install
npx playwright install chromium
npm run build
```

## Run

```bash
npm start
```

The server communicates over MCP stdio. Add it to your MCP client with the absolute path to the built entry point:

```json
{
  "mcpServers": {
    "open-browser-agent": {
      "command": "node",
      "args": ["/absolute/path/to/open-browser-agent/dist/server.js"]
    }
  }
}
```

For detailed Claude Desktop and Claude Code instructions, see [docs/claude-client-setup.md](docs/claude-client-setup.md).

For the free Windows setup using Goose Desktop, Ollama and a local NVIDIA GPU, see [docs/goose-ollama-windows-setup.md](docs/goose-ollama-windows-setup.md).

For development, run `npm run dev`.

## Available MCP tools

| Tool | Purpose |
|---|---|
| `browser_open` | Start or reconnect to the persistent browser profile |
| `browser_navigate` | Navigate to an HTTP(S) URL |
| `browser_snapshot` | Read title, URL and visible page text |
| `browser_accessibility_snapshot` | Read the accessibility tree for semantic page understanding |
| `browser_click` | Click the first CSS selector match |
| `browser_fill` | Fill a form control |
| `browser_wait` | Wait for a selector to become visible |
| `browser_links` | Extract links from the current page |
| `browser_screenshot` | Return a viewport screenshot |
| `browser_run_steps` | Execute up to 25 ordered actions with a per-step result trace |
| `browser_status` | Inspect session status |
| `browser_close` | Close browser while retaining its profile |

## Configuration

- `OBA_PROFILE_DIR`: persistent browser profile directory. Defaults to `~/.open-browser-agent/profile`.
- `OBA_HEADLESS`: set to `false` to show the browser window where a display is available. Defaults to headless.

Only HTTP and HTTPS navigation is accepted. URLs with embedded credentials are rejected. Browser profiles contain login cookies and other sensitive session data; keep the profile directory private and never commit it.

## Development

Run `npm run check` for TypeScript compilation and unit tests. GitHub Actions runs the same checks on pushes and pull requests.

## REA (optional)

REA is a separate reverse-engineering tool and is not required by this browser agent. See [docs/rea-setup.md](docs/rea-setup.md) for its official installation route. A skill or repository file does not activate REA inside ChatGPT.

## Roadmap

1. Multi-tab and named-session support.
2. Search and structured extraction adapters.
3. Approval gates for sensitive actions and an append-only audit log.
4. Cancellation and richer per-step progress events.
5. Expanded browser and MCP integration tests.

## License

MIT

TDQS

B3.3/5.0

Scored across 12 tools

Disambiguation4/5

Each tool maps to a distinct browser action, and the descriptions clearly separate overlapping pairs like browser_snapshot (visible text) versus browser_accessibility_snapshot (Playwright a11y tree), and browser_status versus browser_snapshot. The only mild ambiguity is deciding when to use browser_run_steps versus chaining individual actions, but the 'bounded sequence with trace' framing mostly resolves it.

Naming Consistency5/5

Every tool uses the same browser_ prefix followed by a lowercase snake_case action or noun, giving a fully predictable pattern. No mixing of conventions or verb styles.

Tool Count5/5

Twelve tools is well within the sweet spot and each one covers a distinct, necessary capability of a browser-automation server. There is little redundancy; open/close/status lifecycle tools and action tools all earn their place.

Completeness3/5

The surface covers session lifecycle, navigation, reading, clicking, filling, waiting, links, screenshots, and batched steps, which handles most workflows. However, common operations like keyboard press/submit, selecting dropdown options, scrolling, hover, history back/forward, and tab management are absent, forcing agents into dead ends or workarounds.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues