Back to MCP Integrations

Browserbase MCP

Featured

Cloud browser automation with Stagehand for AI-powered web interactions, screenshots, and data extraction.

0 installsAuthor: Browserbase

Installation

curl -fsSL https://claudekit.xyz/i/browserbase | bash

Description

The Browserbase MCP server provides cloud browser automation capabilities using Browserbase and Stagehand. It enables LLMs to interact with web pages, take screenshots, extract information, and perform automated actions with atomic precision.

Installation

npm install -g @browserbasehq/mcp-server-browserbase

Configuration

Remote Server (Recommended)

Get a hosted URL from Smithery with LLM costs included:

{
  "mcpServers": {
    "browserbase": {
      "type": "http",
      "url": "your-smithery-url.com"
    }
  }
}

Local Server

{
  "mcpServers": {
    "browserbase": {
      "command": "npx",
      "args": ["@browserbasehq/mcp-server-browserbase"],
      "env": {
        "BROWSERBASE_API_KEY": "your-api-key",
        "BROWSERBASE_PROJECT_ID": "your-project-id",
        "GEMINI_API_KEY": "your-gemini-key"
      }
    }
  }
}

Features

FeatureDescription
Browser AutomationControl cloud browsers via Browserbase
Data ExtractionExtract structured data from any webpage
Web InteractionNavigate, click, and fill forms
ScreenshotsFull-page and element screenshots
Model FlexibilitySupports OpenAI, Claude, Gemini, and more
Vision SupportAnnotated screenshots for complex DOMs
Session ManagementCreate, manage, and close browser sessions
High Performance20-40% faster with automatic caching (v3)

Stagehand v3 Features

  • Targeted extraction across iframes and shadow roots
  • CSS selector support with improved element targeting
  • Multi-browser support (Playwright, Puppeteer, Patchright)
  • Built-in primitives: page, locator, frameLocator, deepLocator
  • Experimental features with --experimental flag

Configuration Options

FlagDescription
--proxiesEnable Browserbase proxies
--advancedStealthEnable advanced stealth mode (Scale Plan)
--keepAliveEnable keep-alive sessions
--contextIdSpecify a Browserbase Context ID
--browserWidthViewport width (default: 1024)
--browserHeightViewport height (default: 768)
--modelNameAI model (default: gemini-2.0-flash)
--experimentalEnable experimental features

Usage Example

Claude, navigate to example.com, take a screenshot,
and extract all product prices from the page.

Resources