# Browserbase

Automate web browsing and interaction to streamline complex online tasks. Extract structured data and capture screenshots from any website with ease. Perform autonomous web navigation and actions to …

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add kamath/browserbase

# Browse available tools
npx -y @smithery/cli@latest tool list kamath/browserbase

# Get full schema for a tool
npx -y @smithery/cli@latest tool get kamath/browserbase browserbase_session_create

# Call a tool
npx -y @smithery/cli@latest tool call kamath/browserbase browserbase_session_create '{}'
```

## Direct MCP Connection

Endpoint: `https://browserbase--kamath.run.tools`

**Required config:**
- `browserbaseApiKey` (query) — The Browserbase API Key to use
- `browserbaseProjectId` (query) — The Browserbase Project ID to use

**Optional config:**
- `proxies` (query) — Whether or not to use Browserbase proxies
- `keepAlive` (query) — Whether or not to keep the Browserbase session alive
- `modelName` (query) — The model to use for Stagehand (default: gemini-2.0-flash)
- `modelApiKey` (query) — API key for the custom model provider. Required when using a model other than the default gemini-2.0-flash
- `experimental` (query) — Enable experimental Stagehand features
- `advancedStealth` (query) — Use advanced stealth mode. Only available to Browserbase Scale Plan users

## Tools (9)

- `browserbase_session_create` — Create or reuse a Browserbase browser session and set it as active.
- `browserbase_session_close` — Close the current Browserbase session and reset the active context.
- `browserbase_stagehand_navigate` — Navigate to a URL in the browser. Only use this tool with URLs you're confident will work and be up to date.
- `browserbase_stagehand_act` — Perform a single action on the page (e.g., click, type).
- `browserbase_stagehand_extract` — Extract structured data or text from the current page using an instruction.
- `browserbase_stagehand_observe` — Find interactive elements on the page from an instruction; optionally return an action.
- `browserbase_screenshot` — Capture a full-page screenshot and return it (and save as a resource).
- `browserbase_stagehand_get_url` — Return the current page URL (full URL with query/fragment).
- `browserbase_stagehand_agent` — Execute a task autonomously using Gemini Computer Use agent. The agent will navigate and interact with web pages to com…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get kamath/browserbase <tool-name>
```
