Configure your Browserbase MCP server with these command-line options
The Browserbase MCP server accepts the following command-line flags:
Flag | Type | Default | Description |
---|---|---|---|
--browserbaseApiKey <key> | string | Your Browserbase API key for authentication | |
--browserbaseProjectId <id> | string | Your Browserbase project ID | |
--proxies | boolean | false | Enable Browserbase proxies for the session |
--contextId <contextId> | string | Specify a Browserbase Context ID to use | |
--persist | boolean | true | Whether to persist the Browserbase context |
--port <port> | number | 3000 | Port to listen on for HTTP/SSE transport |
--host <host> | string | ’localhost’ | Host to bind server to (use 0.0.0.0 for all interfaces) |
--cookies <json> | JSON array | JSON array of cookies to inject into the browser (must be structured like the Playwright Cookies) | |
--browserWidth <width> | number | 1024 | Browser viewport width |
--browserHeight <height> | number | 768 | Browser viewport height |
npx @browserbasehq/mcp
or if you clone the repo and build it yourself.--host
, use 0.0.0.0
to make the server accessible from other machines--persist
to false
means the context will be read only. More info here.If you encounter issues with your configuration:
--cookies
flagFor more information, visit the Browserbase documentation.