MCP server for AI web browser automation using Browserbase and Stagehand
Connect Runs on your machine
claude mcp add mcp-server-browserbase -e BROWSERBASE_API_KEY=<BROWSERBASE_API_KEY> -e BROWSERBASE_PROJECT_ID=<BROWSERBASE_PROJECT_ID> -e GEMINI_API_KEY=<GEMINI_API_KEY> -- npx -y @browserbasehq/[email protected]
{
"mcpServers": {
"mcp-server-browserbase": {
"command": "npx",
"args": [
"-y",
"@browserbasehq/[email protected]"
],
"env": {
"BROWSERBASE_API_KEY": "<BROWSERBASE_API_KEY>",
"BROWSERBASE_PROJECT_ID": "<BROWSERBASE_PROJECT_ID>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}
{
"mcpServers": {
"mcp-server-browserbase": {
"command": "npx",
"args": [
"-y",
"@browserbasehq/[email protected]"
],
"env": {
"BROWSERBASE_API_KEY": "<BROWSERBASE_API_KEY>",
"BROWSERBASE_PROJECT_ID": "<BROWSERBASE_PROJECT_ID>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}
{
"servers": {
"mcp-server-browserbase": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@browserbasehq/[email protected]"
],
"env": {
"BROWSERBASE_API_KEY": "<BROWSERBASE_API_KEY>",
"BROWSERBASE_PROJECT_ID": "<BROWSERBASE_PROJECT_ID>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
BROWSERBASE_API_KEYRequired, secret | Your Browserbase API key |
BROWSERBASE_PROJECT_IDRequired | Your Browserbase Project ID |
GEMINI_API_KEYRequired, secret | Your Gemini API key (default model) |
Details
| Package | @browserbasehq/[email protected] (NPM, stdio) |
| First published | 12 Sep 2025 |
| Last updated | 12 Sep 2025 |
| Registry name | io.github.browserbase/mcp-server-browserbase |
More browser automation servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
