Browserbash logo

Browserbash

Runs plain-English browser objectives through real Chrome and returns structured validation verdicts over MCP.

Install Browserbash

Run the project’s own setup commands, in order.

Setup steps from the project

browserbash installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g browserbash-cli
    

Overview

The browserbash MCP server lets AI agents validate web features by running plain-English objectives in a real Chrome browser. It exposes tools for individual objectives, Markdown test files, and parallel test suites, returning structured verdicts with status, summaries, assertions, and run metadata. Local Chromium and Ollama can operate without API keys, while CDP and supported cloud browser providers are also available. Reach for it when an agent needs browser-based validation rather than selector-driven scripts.

Use cases

  • Validate a newly built web feature in real Chrome
  • Run Markdown browser tests from an AI coding agent
  • Check checkout or form workflows with extracted values
  • Attach tests to an existing CDP browser session

Key features

  • Plain-English browser objectives
  • Real Chrome and Chromium execution
  • MCP tools for objectives, test files, and suites
  • Structured validation verdicts
  • Local Ollama support without API keys
  • Replay cache for repeated tests

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/16 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Browserbash works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Browserbash

browserbash is an MCP server that connects AI agents to real Chrome or Chromium browsers for plain-English validation. Its main tools are `run_objective` for one task, `run_test_file` for a Markdown test, and `run_suite` for a folder of tests, returning structured verdicts with status and assertions.

Install and link BrowserBash with `npm install`, `npm run build`, and `npm link`, using Node.js 18 or newer. Then configure your MCP host to run `browserbash mcp`; local browser execution also requires Google Chrome stable.

Yes, browserbash works with Cursor through an MCP command configuration. Set the command to `browserbash` and its argument to `mcp`; the README gives this same configuration pattern for Cursor, Windsurf, Zed, and Codex.

Yes, local runs can use Ollama with a local tool-capable model and the local browser provider, requiring no API key. Cloud providers and hosted model backends may require their own credentials.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBrowserbash AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/browserbash?style=directory)](https://allmcps.com/mcp/browserbash)
HTML Embed
<a href="https://allmcps.com/mcp/browserbash"><img src="https://allmcps.com/api/badge/browserbash?style=directory" alt="Browserbash on AllMCPs" /></a>