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. If your client supports HTTP request headers, prefer Authorization: Bearer YOUR_BROWSERBASE_API_KEY; otherwise, use the legacy query-parameter fallback:
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):

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.

Authentication and Query Parameters (Hosted Streamable HTTP)

Required for tool calls

Authorization

Pass your Browserbase API key as an HTTP authorization header: Authorization: Bearer YOUR_BROWSERBASE_API_KEY.
The hosted server also accepts x-bb-api-key: YOUR_BROWSERBASE_API_KEY. The browserbaseApiKey query parameter remains supported as a deprecated compatibility fallback for clients that cannot set request headers.

Optional

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 with flags or local development setup).

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

Model Context Protocol (MCP) Docs

Learn more about the MCP protocol

Browserbase Documentation

Explore Browserbase features and capabilities

Support

Get help from our support team