@@ -41,6 +41,44 @@ curl -fsSL https://get.pnpm.io/install.sh | sh
41
41
42
42
[ ![ Install MCP Server] ( https://cursor.com/deeplink/mcp-install-dark.png )] ( cursor://anysphere.cursor-deeplink/mcp/install?name=browserbase&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAYnJvd3NlcmJhc2VocS9tY3AiXSwiZW52Ijp7IkJST1dTRVJCQVNFX0FQSV9LRVkiOiIiLCJCUk9XU0VSQkFTRV9QUk9KRUNUX0lEIjoiIn19 )
43
43
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
+
44
82
You can either use our Server hosted on NPM or run it completely locally by cloning this repo.
45
83
46
84
### To run on NPM (Recommended)
@@ -55,7 +93,8 @@ Go into your MCP Config JSON and add the Browserbase Server:
55
93
"args" : [" @browserbasehq/mcp" ],
56
94
"env" : {
57
95
"BROWSERBASE_API_KEY" : " " ,
58
- "BROWSERBASE_PROJECT_ID" : " "
96
+ "BROWSERBASE_PROJECT_ID" : " " ,
97
+ "GEMINI_API_KEY" : " "
59
98
}
60
99
}
61
100
}
@@ -89,7 +128,8 @@ To your MCP Config JSON file add the following:
89
128
"args" : [" /path/to/mcp-server-browserbase/cli.js" ],
90
129
"env" : {
91
130
"BROWSERBASE_API_KEY" : " " ,
92
- "BROWSERBASE_PROJECT_ID" : " "
131
+ "BROWSERBASE_PROJECT_ID" : " " ,
132
+ "GEMINI_API_KEY" : " "
93
133
}
94
134
}
95
135
}
@@ -113,7 +153,8 @@ Then in your MCP Config JSON file put the following:
113
153
"url" : " http://localhost:8931/mcp" ,
114
154
"env" : {
115
155
"BROWSERBASE_API_KEY" : " " ,
116
- "BROWSERBASE_PROJECT_ID" : " "
156
+ "BROWSERBASE_PROJECT_ID" : " " ,
157
+ "GEMINI_API_KEY" : " "
117
158
}
118
159
}
119
160
}
@@ -212,7 +253,8 @@ To use proxies, set the --proxies flag in your MCP Config:
212
253
"args" : [" @browserbasehq/mcp" , " --proxies" ],
213
254
"env" : {
214
255
"BROWSERBASE_API_KEY" : " " ,
215
- "BROWSERBASE_PROJECT_ID" : " "
256
+ "BROWSERBASE_PROJECT_ID" : " " ,
257
+ "GEMINI_API_KEY" : " "
216
258
}
217
259
}
218
260
}
@@ -233,7 +275,8 @@ To use advanced stealth, set the --advancedStealth flag in your MCP Config:
233
275
"args" : [" @browserbasehq/mcp" , " --advancedStealth" ],
234
276
"env" : {
235
277
"BROWSERBASE_API_KEY" : " " ,
236
- "BROWSERBASE_PROJECT_ID" : " "
278
+ "BROWSERBASE_PROJECT_ID" : " " ,
279
+ "GEMINI_API_KEY" : " "
237
280
}
238
281
}
239
282
}
@@ -254,7 +297,8 @@ To use contexts, set the --contextId flag in your MCP Config:
254
297
"args" : [" @browserbasehq/mcp" , " --contextId" , " <YOUR_CONTEXT_ID>" ],
255
298
"env" : {
256
299
"BROWSERBASE_API_KEY" : " " ,
257
- "BROWSERBASE_PROJECT_ID" : " "
300
+ "BROWSERBASE_PROJECT_ID" : " " ,
301
+ "GEMINI_API_KEY" : " "
258
302
}
259
303
}
260
304
}
@@ -279,7 +323,8 @@ You can inject cookies into the MCP by adding them to your MCP Config. Your cook
279
323
],
280
324
"env" : {
281
325
"BROWSERBASE_API_KEY" : " " ,
282
- "BROWSERBASE_PROJECT_ID" : " "
326
+ "BROWSERBASE_PROJECT_ID" : " " ,
327
+ "GEMINI_API_KEY" : " "
283
328
}
284
329
}
285
330
}
@@ -304,7 +349,8 @@ Here's how to use it for custom browser sizing. We recommend to stick with 16:9
304
349
],
305
350
"env" : {
306
351
"BROWSERBASE_API_KEY" : " " ,
307
- "BROWSERBASE_PROJECT_ID" : " "
352
+ "BROWSERBASE_PROJECT_ID" : " " ,
353
+ "GEMINI_API_KEY" : " "
308
354
}
309
355
}
310
356
}
@@ -333,7 +379,8 @@ Here's how to configure different models:
333
379
],
334
380
"env" : {
335
381
"BROWSERBASE_API_KEY" : " " ,
336
- "BROWSERBASE_PROJECT_ID" : " "
382
+ "BROWSERBASE_PROJECT_ID" : " " ,
383
+ "GEMINI_API_KEY" : " "
337
384
}
338
385
}
339
386
}
@@ -356,7 +403,8 @@ For Claude models:
356
403
],
357
404
"env" : {
358
405
"BROWSERBASE_API_KEY" : " " ,
359
- "BROWSERBASE_PROJECT_ID" : " "
406
+ "BROWSERBASE_PROJECT_ID" : " " ,
407
+ "GEMINI_API_KEY" : " "
360
408
}
361
409
}
362
410
}
0 commit comments