# browserbash [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/PramodDutta/browserbash  
**GitHub Stars:** 3  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/browserbash

## Description
Plain-English browser tests for AI agents: real Chrome, deterministic verdicts. Free, no API keys.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/PramodDutta/browserbash), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g browserbash-cli
```

## Documentation

## What browserbash MCP server does

The browserbash MCP server gives MCP-compatible AI agents a way to check web applications through natural-language browser objectives. An agent can ask it to open pages, interact with the interface, extract values, and determine whether a test passed or failed. BrowserBash drives a real Chrome or Chromium session instead of requiring selectors or handwritten browser scripts.

The MCP interface exposes three operations:

- `run_objective` runs one plain-English objective.
- `run_test_file` runs a `*_test.md` file.
- `run_suite` runs a folder of tests in parallel.

Each operation returns structured verdict data including `status`, `summary`, `final_state`, `assertions`, `cost_usd`, and `duration_ms`. A failed browser test is represented in the verdict for the agent to inspect; the MCP tool call itself still succeeds.

## How it works

An engine interprets the natural-language objective, and a provider determines where the browser runs. Stagehand is the default engine and supports browser actions, extraction, observation, and agent behavior. The built-in engine uses an Anthropic tool-use loop and is selected automatically for LambdaTest and BrowserStack grids, where Stagehand cannot attach.

The default provider uses local Chrome or Chromium. BrowserBash can also connect to a Chrome DevTools Protocol endpoint, Browserbase, LambdaTest, or BrowserStack. For local operation, Ollama is checked first and can supply a compatible local model without an API key. Anthropic, OpenAI, Google, OpenRouter, and Anthropic-compatible gateways are available when configured through their supported model and environment settings.

The browserbash MCP server communicates through stdio, so an MCP host starts the `browserbash mcp` command and reads its tool responses. Runs can produce progress and terminal information, while the returned MCP verdict gives the agent the test outcome and final browser state.

## Setup and configuration

Install the CLI from the repository with Node.js 18 or newer, build it, and link the command:

```bash
npm install
npm run build
npm link
```

The local provider requires Google Chrome stable. A minimal MCP client configuration uses the command `browserbash` with the argument `mcp`. For example, Claude Code can register it with `claude mcp add browserbash -- browserbash mcp`; other named hosts can use the equivalent command-and-arguments configuration.

For a local, key-free setup, start Ollama and install a tool-capable model such as Qwen3. Set `OLLAMA_MODEL` to control automatic model selection, or use `OLLAMA_BASE_URL` for another OpenAI-compatible endpoint. Cloud providers require their documented credentials, such as Browserbase project credentials or LambdaTest and BrowserStack access credentials.

## Tools and capabilities

The browserbash MCP server supports plain-English browser validation, Markdown test files, and parallel suites. Its broader CLI also supports headless execution, timeouts, CDP attachment, engine and provider selection, and an agent-oriented NDJSON mode.

Successful runs can be replayed from a cache, allowing identical tests to skip model calls until page behavior changes. Secrets are excluded from cached actions. Browser recordings and run history can remain in the local on-disk store; optional cloud upload is available only when explicitly requested.

## Limitations and notes

Local execution depends on Chrome or Chromium and a model capable of following browser tasks. Cloud-grid providers use the built-in engine and require either an Anthropic key or an Anthropic-compatible gateway.

The MCP transport is stdio only. BrowserBase, LambdaTest, and BrowserStack introduce provider-specific account and credential requirements, while local Ollama avoids those requirements. The optional hosted dashboard is not used unless the user connects an account and uploads a run.

_Full upstream README: https://allmcps.com/mcp/browserbash/readme_

