Skip to main content

Quick Installation

Install with Cursor

One-click installation directly in Cursor
You can also add Browserbase MCP to Claude Code with a single command:
claude mcp add --transport http browserbase "https://mcp.browserbase.com/mcp?browserbaseApiKey=YOUR_BROWSERBASE_API_KEY"
We support both local STDIO and hosted Streamable HTTP (SHTTP). We recommend hosted Streamable HTTP for most users.

Endpoint

Hosted Streamable HTTP endpoint (served on Browserbase infrastructure):
https://mcp.browserbase.com/mcp

Prerequisites

1

Get your Browserbase credentials

Get your Browserbase API key from the Browserbase Dashboard.
Browserbase API Key settings
Then copy your API Key directly from the input.

Query Parameters (Hosted Streamable HTTP)

Required for tool calls

browserbaseApiKey

Browserbase API key.

Optional

Query ParamTypeBehavior
modelNamestringDefaults to google/gemini-2.5-flash-lite
modelApiKeystringRequired when modelName is non-default
keepAliveboolean string"true" or "false"
proxiesboolean string"true" or "false"
advancedStealthboolean string"true" or "false"
Boolean query values must be exact strings: "true" or "false".

Available Tools

Perform an action on the web page using natural language
action
string
required
The action to perform (e.g., “click the login button”, “fill form field”)
Observe and find actionable elements on the page.
instruction
string
required
Specific instruction for observation (e.g., “find the login button”, “locate search form”)
Extract data from the current page.
instruction
string
Optional extraction instruction.
Create or reuse a Browserbase session and set it as active for the current MCP transport session.
No input parameters required.
sessionId
string
Browserbase session ID.
Close the active Browserbase session for the current MCP transport session.
No input parameters required.

Local Command-Line Flags

Command-line flags are only available when running the server locally (npx @browserbasehq/mcp-server-browserbase with flags or local development setup).
FlagDescription
--proxiesEnable Browserbase proxies for the session
--advancedStealthEnable Browserbase Advanced Stealth (Scale Plan only)
--keepAliveEnable Browserbase Keep Alive Session
--contextId <contextId>Specify a Browserbase Context ID to use
--persist [boolean]Whether to persist the Browserbase context (default: true)
--port <port>Port to listen on for HTTP or Streamable HTTP transport
--host <host>Host to bind server to (default: localhost, use 0.0.0.0 for all interfaces)
--browserWidth <width>Browser viewport width (default: 1024)
--browserHeight <height>Browser viewport height (default: 768)
--modelName <model>The model to use for Stagehand (default: google/gemini-2.5-flash-lite)
--modelApiKey <key>API key for the custom model provider (required when using custom models)
--experimentalEnable experimental features (default: false)

Installation Methods

Verify Installation

1

Restart your MCP client

Restart/refresh your MCP client app and verify tools are available.
2

Test the integration

Get started using our MCP Server by asking your MCP client to navigate to any page and see your Browserbase Browser in action on the dashboard.
Try: “Navigate to example.com and extract the main heading”

Further Reading