- Home
- MCP servers
- Browserbase
Browserbase
- typescript
2
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mcp-mirror-browserbase_mcp-server-browserbase": {
"command": "node",
"args": [
"path/to/mcp-server-browserbase/browserbase/dist/index.js"
],
"env": {
"BROWSERBASE_API_KEY": "<YOUR_BROWSERBASE_API_KEY>",
"BROWSERBASE_PROJECT_ID": "<YOUR_BROWSERBASE_PROJECT_ID>"
}
}
}
}You can automate a cloud-based browser with Browserbase through an MCP server, enabling you to create and manage browser sessions, navigate pages, take screenshots, fill forms, and run JavaScript within a secure remote browser environment from your MCP client.
How to use
You interact with the Browserbase MCP Server from your MCP client by calling its tools to control a cloud browser. Start a session, navigate to pages, interact with page elements, capture screenshots, extract content, run scripts, and monitor the browser console. You can also run multiple sessions in parallel and gather content from different pages for data extraction.
How to install
Prerequisites: You need Node.js installed on your machine. You also need access to configure your MCP client to load the Browserbase MCP Server.
# Install dependencies
npm install
# Build the MCP server bundle
npm run build
Additional configuration and usage notes
Configure your MCP client to load the Browserbase MCP Server by specifying a stdio-based server that runs locally. The runtime command uses Node.js to execute the built server file and provides required environment variables for authentication.
{
"mcpServers": {
"browserbase": {
"command": "node",
"args": ["path/to/mcp-server-browserbase/browserbase/dist/index.js"],
"env": {
"BROWSERBASE_API_KEY": "<YOUR_BROWSERBASE_API_KEY>",
"BROWSERBASE_PROJECT_ID": "<YOUR_BROWSERBASE_PROJECT_ID>"
}
}
}
}
Notes on usage patterns
- Start with
browserbase_create_sessionto initialize a cloud browser session. - Usebrowserbase_navigateto load a target URL. - Usebrowserbase_screenshotto capture full-page or element-specific images, customizing width, height, and a descriptive name. - Usebrowserbase_clickandbrowserbase_fillto interact with page elements. - Usebrowserbase_evaluateto run JavaScript in the page context. - Usebrowserbase_get_contentto extract page content, andbrowserbase_parallel_sessionsto manage multiple sessions at once. - Access console output viaconsole://logsand capture screenshots viascreenshot://<name>.
Troubleshooting and tips
If you don’t see tools available in your client, ensure the MCP server bundle is built (npm run build), the client is configured with the correct path to dist/index.js, and the required environment variables are provided. Verify that your Node.js version is compatible with the server runtime. Check that network access to the Browserbase service is allowed if you are using API-based features.
Available tools
browserbase_create_session
Create a new cloud browser session using Browserbase. No required inputs.
browserbase_navigate
Navigate to any URL in the browser. Input: url (string).
browserbase_screenshot
Capture screenshots of the entire page or specific elements. Inputs: name (string, required), selector (string, optional), width (number, optional, default 800), height (number, optional, default 600).
browserbase_click
Click elements on the page. Input: selector (string).
browserbase_fill
Fill out input fields. Inputs: selector (string), value (string).
browserbase_evaluate
Execute JavaScript in the browser console. Input: script (string).
browserbase_get_content
Extract all content from the current page. Input: selector (string, optional).
browserbase_parallel_sessions
Create multiple browser sessions and navigate to different URLs. Input: sessions (array of {url, id}).