Labsco
browserbase logo

Browserbase

βœ“ Officialβ˜… 3,400

from browserbase

Automate browser interactions in the cloud (e.g. web navigation, data extraction, form filling, and more)

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

Browserbase MCP Server

The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.

This server provides cloud browser automation capabilities using Browserbase and Stagehand. It enables LLMs to interact with web pages, extract information, and perform automated actions.

This is a self-hostable version of the Browserbase hosted MCP server with the same tools and functionality. We recommend using the hosted version for the easiest setup.

Tools

This server exposes 6 tools that match the hosted Browserbase MCP server:

Tool Description Input start Create or reuse a Browserbase session (none) end Close the current Browserbase session (none) navigate Navigate to a URL { url: string } act Perform an action on the page { action: string } observe Observe actionable elements on the page { instruction: string } extract Extract data from the page { instruction?: string }

SHTTP (Hosted MCP):

Use the Browserbase hosted MCP server at https://mcp.browserbase.com/mcp. This is the easiest way to get started -- we host the server and provide the LLM costs for Gemini, the best performing model in Stagehand.

For full setup instructions, see the Browserbase MCP documentation.

If your client supports SHTTP:

Copy & paste β€” that's it
{
 "mcpServers": {
 "browserbase": {
 "type": "http",
 "url": "https://mcp.browserbase.com/mcp"
 }
 }
}

If your client doesn't support SHTTP:

Copy & paste β€” that's it
{
 "mcpServers": {
 "browserbase": {
 "command": "npx",
 "args": ["mcp-remote", "https://mcp.browserbase.com/mcp"]
 }
 }
}

STDIO (Self-Hosted):

You can either use our server hosted on NPM or run it completely locally by cloning this repo.

Note: If you want to use a different model you have to add --modelName to the args and provide that respective key as an arg. More info below.

To run via NPM (Recommended)

Go into your MCP Config JSON and add the Browserbase Server:

Copy & paste β€” that's it
{
 "mcpServers": {
 "browserbase": {
 "command": "npx",
 "args": ["@browserbasehq/mcp"],
 "env": {
 "BROWSERBASE_API_KEY": "",
 "BROWSERBASE_PROJECT_ID": "",
 "GEMINI_API_KEY": ""
 }
 }
 }
}

That's it! Reload your MCP client and you're ready to go.

To run 100% local:

Option 1: Direct installation

Copy & paste β€” that's it
git clone https://github.com/browserbase/mcp-server-browserbase.git
cd mcp-server-browserbase
npm install && npm run build

Option 2: Docker

Copy & paste β€” that's it
git clone https://github.com/browserbase/mcp-server-browserbase.git
cd mcp-server-browserbase
docker build -t mcp-browserbase .

Then in your MCP Config JSON run the server:

Using Direct Installation

Copy & paste β€” that's it
{
 "mcpServers": {
 "browserbase": {
 "command": "node",
 "args": ["/path/to/mcp-server-browserbase/cli.js"],
 "env": {
 "BROWSERBASE_API_KEY": "",
 "BROWSERBASE_PROJECT_ID": "",
 "GEMINI_API_KEY": ""
 }
 }
 }
}

Using Docker

Copy & paste β€” that's it
{
 "mcpServers": {
 "browserbase": {
 "command": "docker",
 "args": [
 "run",
 "--rm",
 "-i",
 "-e",
 "BROWSERBASE_API_KEY",
 "-e",
 "BROWSERBASE_PROJECT_ID",
 "-e",
 "GEMINI_API_KEY",
 "mcp-browserbase"
 ],
 "env": {
 "BROWSERBASE_API_KEY": "",
 "BROWSERBASE_PROJECT_ID": "",
 "GEMINI_API_KEY": ""
 }
 }
 }
}

Links

License

Licensed under the Apache 2.0 License.

Copyright 2025 Browserbase, Inc.