{"id":26275099,"url":"https://github.com/browserbase/mcp-server-browserbase","last_synced_at":"2026-04-02T19:21:08.590Z","repository":{"id":267076538,"uuid":"899184149","full_name":"browserbase/mcp-server-browserbase","owner":"browserbase","description":"Allow LLMs to control a browser with Browserbase and Stagehand","archived":false,"fork":false,"pushed_at":"2026-03-27T01:13:59.000Z","size":6652,"stargazers_count":3211,"open_issues_count":35,"forks_count":340,"subscribers_count":25,"default_branch":"main","last_synced_at":"2026-03-27T10:46:03.183Z","etag":null,"topics":["ai","browser","chrome","chromium","mcp","playwright","puppeteer"],"latest_commit_sha":null,"homepage":"https://stagehand.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserbase.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-05T19:20:40.000Z","updated_at":"2026-03-27T09:53:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d26b6d1b-4dfa-4b07-acf7-17f149483bca","html_url":"https://github.com/browserbase/mcp-server-browserbase","commit_stats":null,"previous_names":["browserbase/mcp-server-browserbase"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/browserbase/mcp-server-browserbase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fmcp-server-browserbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fmcp-server-browserbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fmcp-server-browserbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fmcp-server-browserbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserbase","download_url":"https://codeload.github.com/browserbase/mcp-server-browserbase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fmcp-server-browserbase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31314375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","browser","chrome","chromium","mcp","playwright","puppeteer"],"created_at":"2025-03-14T10:01:20.363Z","updated_at":"2026-04-02T19:21:08.585Z","avatar_url":"https://github.com/browserbase.png","language":"TypeScript","readme":"# Browserbase MCP Server\n\n![cover](assets/cover.png)\n\n[The Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.\n\nThis server provides cloud browser automation capabilities using [Browserbase](https://www.browserbase.com/) and [Stagehand](https://github.com/browserbase/stagehand). It enables LLMs to interact with web pages, extract information, and perform automated actions.\n\nThis is a self-hostable version of the [Browserbase hosted MCP server](https://mcp.browserbase.com/mcp) with the same tools and functionality. **We recommend using the hosted version for the easiest setup.**\n\n## Tools\n\nThis server exposes 6 tools that match the [hosted Browserbase MCP server](https://docs.browserbase.com/integrations/mcp/introduction):\n\n| Tool       | Description                             | Input                      |\n| ---------- | --------------------------------------- | -------------------------- |\n| `start`    | Create or reuse a Browserbase session   | _(none)_                   |\n| `end`      | Close the current Browserbase session   | _(none)_                   |\n| `navigate` | Navigate to a URL                       | `{ url: string }`          |\n| `act`      | Perform an action on the page           | `{ action: string }`       |\n| `observe`  | Observe actionable elements on the page | `{ instruction: string }`  |\n| `extract`  | Extract data from the page              | `{ instruction?: string }` |\n\n## How to Setup\n\nWe currently support 2 transports for our MCP server, STDIO and SHTTP. We recommend you use SHTTP with our hosted MCP server to take advantage of the server at full capacity.\n\n## SHTTP (Hosted MCP):\n\nUse the Browserbase hosted MCP server at `https://mcp.browserbase.com/mcp`. This is the easiest way to get started -- we host the server and provide the LLM costs for Gemini, the [best performing model](https://www.stagehand.dev/evals) in [Stagehand](https://www.stagehand.dev).\n\nFor full setup instructions, see the [Browserbase MCP documentation](https://docs.browserbase.com/integrations/mcp/introduction).\n\nIf your client supports SHTTP:\n\n```json\n{\n  \"mcpServers\": {\n    \"browserbase\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.browserbase.com/mcp\"\n    }\n  }\n}\n```\n\nIf your client doesn't support SHTTP:\n\n```json\n{\n  \"mcpServers\": {\n    \"browserbase\": {\n      \"command\": \"npx\",\n      \"args\": [\"mcp-remote\", \"https://mcp.browserbase.com/mcp\"]\n    }\n  }\n}\n```\n\n## STDIO (Self-Hosted):\n\nYou can either use our server hosted on NPM or run it completely locally by cloning this repo.\n\n\u003e **Note:** If you want to use a different model you have to add --modelName to the args and provide that respective key as an arg. More info below.\n\n### To run via NPM (Recommended)\n\nGo into your MCP Config JSON and add the Browserbase Server:\n\n```json\n{\n  \"mcpServers\": {\n    \"browserbase\": {\n      \"command\": \"npx\",\n      \"args\": [\"@browserbasehq/mcp\"],\n      \"env\": {\n        \"BROWSERBASE_API_KEY\": \"\",\n        \"BROWSERBASE_PROJECT_ID\": \"\",\n        \"GEMINI_API_KEY\": \"\"\n      }\n    }\n  }\n}\n```\n\nThat's it! Reload your MCP client and you're ready to go.\n\n### To run 100% local:\n\n#### Option 1: Direct installation\n\n```bash\ngit clone https://github.com/browserbase/mcp-server-browserbase.git\ncd mcp-server-browserbase\nnpm install \u0026\u0026 npm run build\n```\n\n#### Option 2: Docker\n\n```bash\ngit clone https://github.com/browserbase/mcp-server-browserbase.git\ncd mcp-server-browserbase\ndocker build -t mcp-browserbase .\n```\n\nThen in your MCP Config JSON run the server:\n\n#### Using Direct Installation\n\n```json\n{\n  \"mcpServers\": {\n    \"browserbase\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/mcp-server-browserbase/cli.js\"],\n      \"env\": {\n        \"BROWSERBASE_API_KEY\": \"\",\n        \"BROWSERBASE_PROJECT_ID\": \"\",\n        \"GEMINI_API_KEY\": \"\"\n      }\n    }\n  }\n}\n```\n\n#### Using Docker\n\n```json\n{\n  \"mcpServers\": {\n    \"browserbase\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"--rm\",\n        \"-i\",\n        \"-e\",\n        \"BROWSERBASE_API_KEY\",\n        \"-e\",\n        \"BROWSERBASE_PROJECT_ID\",\n        \"-e\",\n        \"GEMINI_API_KEY\",\n        \"mcp-browserbase\"\n      ],\n      \"env\": {\n        \"BROWSERBASE_API_KEY\": \"\",\n        \"BROWSERBASE_PROJECT_ID\": \"\",\n        \"GEMINI_API_KEY\": \"\"\n      }\n    }\n  }\n}\n```\n\n## Configuration\n\nThe Browserbase MCP server accepts the following command-line flags:\n\n| Flag                       | Description                                                                 |\n| -------------------------- | --------------------------------------------------------------------------- |\n| `--proxies`                | Enable Browserbase proxies for the session                                  |\n| `--advancedStealth`        | Enable Browserbase Advanced Stealth (Only for Scale Plan Users)             |\n| `--keepAlive`              | Enable Browserbase Keep Alive Session                                       |\n| `--contextId \u003ccontextId\u003e`  | Specify a Browserbase Context ID to use                                     |\n| `--persist`                | Whether to persist the Browserbase context (default: true)                  |\n| `--port \u003cport\u003e`            | Port to listen on for HTTP/SHTTP transport                                  |\n| `--host \u003chost\u003e`            | Host to bind server to (default: localhost, use 0.0.0.0 for all interfaces) |\n| `--browserWidth \u003cwidth\u003e`   | Browser viewport width (default: 1024)                                      |\n| `--browserHeight \u003cheight\u003e` | Browser viewport height (default: 768)                                      |\n| `--modelName \u003cmodel\u003e`      | The model to use for Stagehand (default: google/gemini-2.5-flash-lite)      |\n| `--modelApiKey \u003ckey\u003e`      | API key for the custom model provider (required when using custom models)   |\n| `--experimental`           | Enable experimental features (default: false)                               |\n\nThese flags can be passed directly to the CLI or configured in your MCP configuration file.\n\n\u003e **Note:** These flags can only be used with the self-hosted server (npx @browserbasehq/mcp or Docker).\n\n### Model Configuration\n\nStagehand defaults to using Google's Gemini 2.5 Flash Lite model, but you can configure it to use other models like GPT-4o, Claude, or other providers.\n\n**Important**: When using any custom model (non-default), you must provide your own API key for that model provider using the `--modelApiKey` flag.\n\n```json\n{\n  \"mcpServers\": {\n    \"browserbase\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"@browserbasehq/mcp\",\n        \"--modelName\",\n        \"anthropic/claude-sonnet-4.5\",\n        \"--modelApiKey\",\n        \"your-anthropic-api-key\"\n      ],\n      \"env\": {\n        \"BROWSERBASE_API_KEY\": \"\",\n        \"BROWSERBASE_PROJECT_ID\": \"\"\n      }\n    }\n  }\n}\n```\n\n_Note: The model must be supported in Stagehand. Check out the docs [here](https://docs.stagehand.dev/examples/custom_llms#supported-llms)._\n\n## Links\n\n- [Browserbase MCP Documentation](https://docs.browserbase.com/integrations/mcp/introduction)\n- [MCP Documentation](https://modelcontextprotocol.io/docs)\n- [MCP Specification](https://spec.modelcontextprotocol.io/)\n- [Stagehand Documentation](https://docs.stagehand.dev/)\n\n## License\n\nLicensed under the Apache 2.0 License.\n\nCopyright 2025 Browserbase, Inc.\n","funding_links":[],"categories":["🏢 Enterprise-Supported Implementations","Browser Automation","CI/CD \u0026 DevOps Pipelines","🔌 MCP Servers (Model Context Protocol)","Framework","TypeScript","📚 Projects (1974 total)","Production-Ready Servers","HarmonyOS","🤖 AI/ML","官方 MCP 服务器列表","スター履歴","Developer Tools","网络信息服务","Official Servers","MCP 服务器精选列表","Code Execution \u0026 Automation MCP Servers","Content \u0026 Media","MCP Ecosystem","Table of Contents","MCP Servers","ツール"],"sub_categories":["Browser \u0026 Web Automation","Cloud Services","📂 Browser Automation","MCP Servers","Windows Manager","📂 \u003ca name=\"browser-automation\"\u003e\u003c/a\u003eブラウザ自動化","How to Submit","网络爬虫","🌐 浏览器自动化与网页交互","Web Scraping \u0026 Search","Servers","Browser Automation","MCPサーバー \u0026 ツール"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserbase%2Fmcp-server-browserbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserbase%2Fmcp-server-browserbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserbase%2Fmcp-server-browserbase/lists"}