@@ -41,6 +41,44 @@ curl -fsSL https://get.pnpm.io/install.sh | sh
4141
4242[ ![ Install MCP Server] ( https://cursor.com/deeplink/mcp-install-dark.png )] ( cursor://anysphere.cursor-deeplink/mcp/install?name=browserbase&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAYnJvd3NlcmJhc2VocS9tY3AiXSwiZW52Ijp7IkJST1dTRVJCQVNFX0FQSV9LRVkiOiIiLCJCUk9XU0VSQkFTRV9QUk9KRUNUX0lEIjoiIn19 )
4343
44+ We currently support 2 transports for our MCP server, STDIO and SHTTP. We recommend you use SHTTP with our remote hosted url to take advantage of the server at full capacity.
45+
46+ ## SHTTP:
47+
48+ When using our remote hosted server, we eat the LLM costs of Gemini, the [ best performing model] ( www.stagehand.dev/evals ) in [ Stagehand] ( www.stagehand.dev ) .
49+
50+ To use the Browserbase MCP Server through our remote hosted URL, add the following to your configuration.
51+
52+ If your client supports SHTTP outright:
53+
54+ ``` json
55+ {
56+ "mcpServers" : {
57+ "browserbase" : {
58+ "url" : " mcp.browserbase.com/mcp?browserbaseApiKey=" " &browserbaseProjectId=" " " ,
59+ }
60+ }
61+ }
62+ ```
63+
64+ If your client doesn't support SHTTP outright:
65+
66+ ``` json
67+ {
68+ "mcpServers" : {
69+ "browserbase" : {
70+ "command" : " npx" ,
71+ "args" : [
72+ " mcp-remote" ,
73+ " mcp.browserbase.com/mcp?browserbaseApiKey=" " &browserbaseProjectId=" " "
74+ ],
75+ }
76+ }
77+ }
78+ ```
79+
80+ ## STDIO:
81+
4482You can either use our Server hosted on NPM or run it completely locally by cloning this repo.
4583
4684### To run on NPM (Recommended)
@@ -55,7 +93,8 @@ Go into your MCP Config JSON and add the Browserbase Server:
5593 "args" : [" @browserbasehq/mcp" ],
5694 "env" : {
5795 "BROWSERBASE_API_KEY" : " " ,
58- "BROWSERBASE_PROJECT_ID" : " "
96+ "BROWSERBASE_PROJECT_ID" : " " ,
97+ "GEMINI_API_KEY" : " "
5998 }
6099 }
61100 }
@@ -89,7 +128,8 @@ To your MCP Config JSON file add the following:
89128 "args" : [" /path/to/mcp-server-browserbase/cli.js" ],
90129 "env" : {
91130 "BROWSERBASE_API_KEY" : " " ,
92- "BROWSERBASE_PROJECT_ID" : " "
131+ "BROWSERBASE_PROJECT_ID" : " " ,
132+ "GEMINI_API_KEY" : " "
93133 }
94134 }
95135 }
@@ -113,7 +153,8 @@ Then in your MCP Config JSON file put the following:
113153 "url" : " http://localhost:8931/mcp" ,
114154 "env" : {
115155 "BROWSERBASE_API_KEY" : " " ,
116- "BROWSERBASE_PROJECT_ID" : " "
156+ "BROWSERBASE_PROJECT_ID" : " " ,
157+ "GEMINI_API_KEY" : " "
117158 }
118159 }
119160 }
@@ -212,7 +253,8 @@ To use proxies, set the --proxies flag in your MCP Config:
212253 "args" : [" @browserbasehq/mcp" , " --proxies" ],
213254 "env" : {
214255 "BROWSERBASE_API_KEY" : " " ,
215- "BROWSERBASE_PROJECT_ID" : " "
256+ "BROWSERBASE_PROJECT_ID" : " " ,
257+ "GEMINI_API_KEY" : " "
216258 }
217259 }
218260 }
@@ -233,7 +275,8 @@ To use advanced stealth, set the --advancedStealth flag in your MCP Config:
233275 "args" : [" @browserbasehq/mcp" , " --advancedStealth" ],
234276 "env" : {
235277 "BROWSERBASE_API_KEY" : " " ,
236- "BROWSERBASE_PROJECT_ID" : " "
278+ "BROWSERBASE_PROJECT_ID" : " " ,
279+ "GEMINI_API_KEY" : " "
237280 }
238281 }
239282 }
@@ -254,7 +297,8 @@ To use contexts, set the --contextId flag in your MCP Config:
254297 "args" : [" @browserbasehq/mcp" , " --contextId" , " <YOUR_CONTEXT_ID>" ],
255298 "env" : {
256299 "BROWSERBASE_API_KEY" : " " ,
257- "BROWSERBASE_PROJECT_ID" : " "
300+ "BROWSERBASE_PROJECT_ID" : " " ,
301+ "GEMINI_API_KEY" : " "
258302 }
259303 }
260304 }
@@ -279,7 +323,8 @@ You can inject cookies into the MCP by adding them to your MCP Config. Your cook
279323 ],
280324 "env" : {
281325 "BROWSERBASE_API_KEY" : " " ,
282- "BROWSERBASE_PROJECT_ID" : " "
326+ "BROWSERBASE_PROJECT_ID" : " " ,
327+ "GEMINI_API_KEY" : " "
283328 }
284329 }
285330 }
@@ -304,7 +349,8 @@ Here's how to use it for custom browser sizing. We recommend to stick with 16:9
304349 ],
305350 "env" : {
306351 "BROWSERBASE_API_KEY" : " " ,
307- "BROWSERBASE_PROJECT_ID" : " "
352+ "BROWSERBASE_PROJECT_ID" : " " ,
353+ "GEMINI_API_KEY" : " "
308354 }
309355 }
310356 }
@@ -333,7 +379,8 @@ Here's how to configure different models:
333379 ],
334380 "env" : {
335381 "BROWSERBASE_API_KEY" : " " ,
336- "BROWSERBASE_PROJECT_ID" : " "
382+ "BROWSERBASE_PROJECT_ID" : " " ,
383+ "GEMINI_API_KEY" : " "
337384 }
338385 }
339386 }
@@ -356,7 +403,8 @@ For Claude models:
356403 ],
357404 "env" : {
358405 "BROWSERBASE_API_KEY" : " " ,
359- "BROWSERBASE_PROJECT_ID" : " "
406+ "BROWSERBASE_PROJECT_ID" : " " ,
407+ "GEMINI_API_KEY" : " "
360408 }
361409 }
362410 }
0 commit comments