Browserbase

io.github.mindstone由 GitHub 帳號 mindstone 發布v0.1.1更新於 Oct 25, 2026

Browserbase MCP server: cloud browser sessions, agents, contexts, fetch, search, functions

概覽

AI 產生的概覽

一個本機連接器,封裝 Browserbase 雲端瀏覽器 API,讓助理執行雲端瀏覽器工作階段、AI 網頁代理、擷取、搜尋與無伺服器瀏覽器函式。

可以做什麼
建立、檢視與結束雲端瀏覽器工作階段,包括即時檢視與偵錯連結、日誌、重播與錄影下載,並可將檔案上傳到工作階段。管理工作階段之間可保留 Cookie 與儲存空間的持續性內容。建立、更新並執行 AI 網頁代理,輪詢執行直到完成並檢視逐步訊息。以原始內容、Markdown 或依 schema 產生的 JSON 擷取網址,並執行附排序的網頁搜尋。列出、檢視並呼叫已部署的無伺服器瀏覽器函式,並管理下載、擴充功能與憑證。
適用情境
當助理需要操作真實的雲端瀏覽器,或把擷取任務交給 Browserbase AI 代理時使用,例如從頁面擷取價格方案等結構化資料。適合希望用一個本機連接器涵蓋整個 Browserbase API、而非單一用途工具的宿主。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js 20+ 與 npm。必須以環境變數 BROWSERBASE_API_KEY 提供 Browserbase API 金鑰。選用設定:BROWSERBASE_REQUEST_TIMEOUT_MS 控制單次請求逾時,MCP_WORKSPACE_PATH 指定本機檔案上傳的讀取目錄。需要能連線至 Browserbase API 的網路。
安裝前請注意
工作階段按分鐘計費且至少一分鐘,應儘早結束;超過並行上限會回傳限流錯誤。即時檢視與連線連結會讓持有者控制該瀏覽器。刪除、停止、呼叫以及建立/上傳類工具標示為破壞性操作,刪除無法復原。上傳檔案從工作區目錄讀取,擷取或代理產生的網頁內容會以不受信任資料傳給模型。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Browserbase,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@mindstone/mcp-server-browserbase

[npm version] [License: FSL-1.1-MIT]

Cloud browser automation via the Browserbase API: sessions with live-view debugging, AI web agents, persistent contexts, downloads, fetch/search, and serverless functions.

Best for MCP hosts that want a local browser-automation connector covering the entire Browserbase API — from "open a browser and show me" to "run an agent that extracts pricing data".

Status

  • Version: 0.1.1 · npm
  • Auth: API key (BROWSERBASE_API_KEY)
  • Tools: 53 (projects, sessions, contexts, agents, agent runs, downloads, extensions, certificates, fetch/search, functions)
  • Surface: cloud-api
  • Machine-readable: STATUS.json

Why this exists

Browserbase's API spans everything from raw CDP sessions to fully-managed AI agents. This package exposes all of it to local stdio MCP hosts as a single connector with deliberate guardrails: session billing is called out in tool descriptions, destructive actions are annotated, external web content is always wrapped as untrusted data, and long-running work is polled (Browserbase has no webhooks).

Example interaction

"Extract the pricing tiers from example.com and give them to me as JSON."

Tools the host calls:

  1. create_agent_run — starts a run with the task and a result_schema for the JSON shape.
  2. wait_for_agent_run — polls until the run completes and returns the structured result.
  3. get_agent_run_messages — (optional) shows what the agent did, step by step.

Response (trimmed):

json
{  "ok": true,  "runId": "r0a0b0c0-…",  "status": "COMPLETED",  "result": { "plans": [ { "name": "…", "price": 0 } ] },  "waited_seconds": 47}

Requirements

One-click install

[Add to Cursor] [Add to VS Code] [Add to VS Code Insiders]

After clicking the button, your host will prompt you to fill: BROWSERBASE_API_KEY.

Manual config for Claude Desktop / Claude Code / Goose / Continue.dev (Browserbase)
json
{  "mcpServers": {    "Browserbase": {      "command": "npx",      "args": [        "-y",        "@mindstone/mcp-server-browserbase"      ],      "env": {        "BROWSERBASE_API_KEY": ""      }    }  }}

Quick Start

Install & build

bash
cd <path-to-repo>/connectors/browserbasenpm installnpm run build

npx

bash
npx -y @mindstone/mcp-server-browserbase

Local

bash
node dist/index.js

Configuration

VariableRequiredDescription
BROWSERBASE_API_KEYYesBrowserbase API key. Get one at browserbase.com/settings
BROWSERBASE_REQUEST_TIMEOUT_MSNoPer-request timeout for Browserbase API calls in milliseconds (default 30000)
MCP_WORKSPACE_PATHNoWorkspace directory for local files uploaded by upload_session_file, upload_extension, and upload_certificate. File reads are sandboxed to this directory; defaults to the system temp directory.

When running inside a host that provides the credential bridge, configure_browserbase_api_key persists the key through the host instead of the environment.

MCP Host Configuration

json
{  "mcpServers": {    "browserbase": {      "command": "npx",      "args": ["-y", "@mindstone/mcp-server-browserbase"],      "env": {        "BROWSERBASE_API_KEY": "your-api-key"      }    }  }}

Security notes

Sessions are billed — release them

Every create_session starts a billable browser (per-minute, 1-minute minimum). The create_session and end_session descriptions tell the agent this explicitly, and end_session should be called as soon as automation finishes. Exceeding the project's concurrency limit returns 429 with a retry-after window that the error resolution surfaces verbatim.

Live-view URLs grant control

get_session returns a credentialed connectUrl and get_session_debug_urls returns debugger/live-view URLs. Anyone with these URLs can watch AND drive the browser — they are for sharing with the session's owner, never publicly.

External content is always enveloped

Anything authored outside your account — fetched page content, search results, page titles in debug URLs, agent run tasks/results/messages, CDP log bodies, replay playlists, download filenames, function output, error details — is wrapped in <untrusted-content source="browserbase:…"> envelopes with close-tag breakout escaping before it reaches the model. CDP log rawBody values are additionally truncated beyond ~4KB with a truncation note.

File uploads are workspace-sandboxed

upload_session_file, upload_extension, and upload_certificate accept local file_paths. Reads are constrained to MCP_WORKSPACE_PATH (or the system temp directory when unset) using canonical-prefix containment: .. traversal, absolute paths outside the sandbox, and symlinks that escape it are rejected before any disk read. The read is open-then-validate: the connector opens a descriptor, confirms the opened inode is the file the sandbox approved, reads through that descriptor, and re-checks it after the read — a file swapped or modified mid-read fails closed.

fetch_url cannot probe internal networks

fetch_url (and the URLs embedded in search results you might fetch next) are guarded by a public-URL check: only http:///https:// schemes, and localhost, loopback, link-local, and private IP ranges are rejected before any request is sent.

Delete and stop tools are annotated as destructive

delete_context, delete_agent, delete_download, delete_extension, delete_certificate, end_session, stop_agent_run, invoke_function, and all create_*/upload_* tools carry destructiveHint: true. Deletes are permanent; hosts should require explicit user confirmation.

Tools (53)

Configuration

  • configure_browserbase_api_key — Save your Browserbase API key (host-persisted when a bridge is present)

Projects

  • list_projects — List projects (IDs, concurrency limits, default timeouts)
  • get_project — Get one project's details
  • get_project_usage — Browser minutes and proxy bytes consumed

Sessions

  • create_session — Create a cloud browser session (billed per minute; returns connectUrl)
  • list_sessions — List sessions, filtered by status or userMetadata query
  • get_session — Get a session's status and connectUrl
  • end_session — Release a session (REQUEST_RELEASE semantics; sessions also auto-expire)
  • get_session_debug_urls — Live-view + debugger URLs to share with a human
  • get_session_logs — CDP-level session logs (raw bodies truncated beyond ~4KB)
  • get_session_replays — List recorded pages available for replay
  • get_session_replay_playlist — Fetch a page's m3u8 replay playlist
  • request_session_recording_downloads — Request async MP4 assembly (HTTP 202)
  • get_session_recording_downloads — Poll MP4 status; get short-lived signed URLs
  • upload_session_file — Upload a sandboxed local file to /tmp/.uploads/ in the session

Contexts (persistent browser state)

  • create_context — Create a context for persisting cookies/storage across sessions
  • get_context — Get a context's details
  • delete_context — Permanently delete a context

Agents

  • create_agent — Create a reusable agent (name, system prompt, result schema)
  • list_agents — List agents (cursor-paginated, date-filterable)
  • get_agent — Get an agent's prompt and result schema
  • update_agent — Partially update an agent
  • delete_agent — Delete an agent (existing runs unaffected)

Agent Runs

  • create_agent_run — Start a run (ad-hoc or with an agent; %variable% substitution for sensitive values)
  • list_agent_runs — List runs (cursor-paginated, filterable)
  • get_agent_run — Get a run's status and terminal result/cause
  • wait_for_agent_run — Recommended: poll until terminal and return the result
  • get_agent_run_messages — The run's UIMessage conversation (since/nextSince feed)
  • stop_agent_run — Stop a running run (202; 409 if already terminal)

Downloads (files downloaded inside sessions)

  • list_downloads — List downloads for a session (offset-paginated, filterable)
  • get_download_info — Metadata (size, checksum, MIME type)
  • get_download_file — Fetch the bytes as base64 (8MB inline cap)
  • delete_download — Permanently delete a download

Extensions

  • upload_extension — Upload a zipped Chrome extension (sandboxed file read)
  • get_extension — Get an uploaded extension
  • delete_extension — Permanently delete an extension

Certificates

  • upload_certificate — Upload a CA certificate for TLS-inspecting proxies
  • list_certificates — List uploaded certificates
  • get_certificate — Get a certificate
  • delete_certificate — Permanently delete a certificate

Fetch & Search

  • fetch_url — Server-side fetch: raw body, markdown, or schema-driven JSON
  • web_search — Web search with ranked results

Functions (serverless browser automations — list/invoke/inspect only)

  • list_functions — List deployed functions
  • get_function — Get a function
  • invoke_function — Invoke a function (async 202; poll the invocation)
  • list_function_versions — List a function's versions
  • get_function_version — Get a version's userParamsSchema (check before invoking)
  • list_function_invocations — List a version's invocations
  • get_function_invocation — Get an invocation's status, results, and cause
  • get_function_invocation_logs — An invocation's logs
  • list_function_builds — List function builds
  • get_function_build — Get a build's status and failure cause
  • get_function_build_logs — A build's logs

API coverage notes

  • Deprecated upstream: GET /sessions/{id}/recording (rrweb event dump) is deprecated by Browserbase and returns a deprecation 404 — it is deliberately not exposed. Use get_session_replays / get_session_replay_playlist (watchable) or the recording-download tools (MP4 files) instead.
  • No webhooks: Browserbase is poll-based. Agent runs (wait_for_agent_run / get_agent_run), recording downloads (get_session_recording_downloads), and function invocations (get_function_invocation) are all polled.
  • No list endpoints for contexts or extensions — record the IDs returned at creation.
  • Functions are deploy-only via the Browserbase CLI — this connector lists, inspects, and invokes existing functions; it cannot create them.

Error handling

All upstream errors are returned as structured JSON with ok: false, a semantic code (AUTH_REQUIRED, VALIDATION_FAILED, NOT_FOUND, CONFLICT, GONE, RATE_LIMITED, PAYMENT_REQUIRED, UPSTREAM_ERROR, TIMEOUT, …), and an actionable resolution. Rate-limit errors include the server-provided retry-after window. Upstream error text is enveloped as untrusted content, and the API key never appears in any output.

Licence

FSL-1.1-MIT — Functional Source License, Version 1.1, with MIT future licence. The software converts to MIT licence on 2030-04-08.

來源:connectors/browserbase/README.md,提交 22c4611

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。