Browserbase MCP Server – Cloud Browser Automation
Browserbase's official MCP server gives AI agents controlled access to cloud browsers through Browserbase and Stagehand. Use it when an agent needs to open pages, interact with web interfaces, take screenshots, extract information, or automate browser workflows from an MCP-compatible client.
Overview
Browserbase's official MCP server connects AI agents to Browserbase cloud
browser infrastructure and Stagehand browser-control tools. It is designed for
workflows where an agent must operate a real browser, inspect pages visually or
structurally, extract data, and perform actions that are not available through a
conventional API.
What the MCP server enables
The server exposes cloud browser automation capabilities backed by Browserbase
sessions and Stagehand. Depending on configuration and account permissions, an
AI agent can:
- Create and control remote browser sessions.
- Navigate to URLs and interact with pages.
- Click, type, and operate page elements through natural-language or structured
browser actions. - Take screenshots for visual inspection.
- Extract information from web pages.
- Use proxies, stealth, viewport, context, and session options where configured.
- Automate QA checks, research tasks, form flows, and web-data collection.
- Run local or hosted configurations depending on the MCP client and deployment
model.
When to use it
Use Browserbase MCP when an agent needs to browse the web like a user rather
than call an API. Practical workflows include validating user flows, inspecting
a live website, extracting information from pages behind complex JavaScript,
checking screenshots, researching sites interactively, filling forms in a test
environment, and letting a coding assistant investigate documentation or UI
behavior from inside an IDE.
Connection and authentication
Browserbase documents multiple connection methods. Hosted Streamable HTTP is
recommended when available because it runs the server remotely and can provide
full-capacity managed operation. Local stdio is available with
npx @browserbasehq/mcp. Local development can also run a Streamable HTTP
server and expose http://localhost:8931/mcp.
Browserbase cloud usage requires BROWSERBASE_API_KEY and
BROWSERBASE_PROJECT_ID. Local model configurations may also require a model
provider key such as GEMINI_API_KEY, depending on the selected model and
setup.
Key considerations
Browser automation can interact with real websites and authenticated sessions,
so use trusted clients, avoid entering production credentials unless necessary,
and require confirmation for form submissions, purchases, account changes, or
destructive workflows. Keep API keys and model-provider keys outside source
control. Command-line flags are available only when running the server locally.
For remote or hosted use, verify how credentials and runtime options are
supplied by the hosting layer before connecting sensitive accounts.
Supported Transports
streamable_http
URL: https://<your-browserbase-hosted-mcp-url>
stdio
Command: npx
Args:
@browserbasehq/mcp
streamable_http
URL: http://localhost:8931/mcp
Frequently Asked Questions
- When should an AI agent use the Browserbase MCP server?
- Use it when a workflow requires a real browser, such as navigating web pages, clicking or typing into interfaces, taking screenshots, extracting data from dynamic sites, testing user flows, or researching web content that is not available through an API.
- What does the Browserbase MCP server add to an AI agent's capabilities?
- It gives the agent access to Browserbase cloud browser sessions and Stagehand-powered browser actions, enabling page interaction, screenshots, extraction, and web automation beyond static model knowledge or simple HTTP fetching.
- What can an AI agent access or manage through Browserbase MCP?
- Depending on configuration, the agent can open and control browser sessions, navigate to pages, interact with elements, extract page information, capture screenshots, and use Browserbase session options such as proxies, stealth, viewport, and context settings where supported.
- How is authentication configured for the Browserbase MCP server?
- Browserbase cloud sessions require BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID. Local model configurations may also require a model provider key such as GEMINI_API_KEY. Store all credentials securely outside source control and provide them through the MCP client or hosting layer.
- Which transport should be used for the Browserbase MCP server?
- Use the hosted Streamable HTTP option when available and managed capacity is desired. Use local stdio with `npx @browserbasehq/mcp` for desktop or IDE clients, and use the local Streamable HTTP endpoint only when a network-style local connection is required.