Browserbase MCP server
76 operations7 webhooks
Cloud browsers for AI agents with Browserbase: start, inspect, label and release browser sessions with live debug URLs, logs, replays and recordings, keep logins in contexts and secrets, run Functions and agents, fetch pages and search the web, and receive signed webhooks (76 operations).
Try Browserbase with your agent
Connect Browserbase, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Browserbase on my account, then run one read-only example and show me the result.
Browserbase tools and triggers
Tools are what your agent can do in Browserbase through Corsair's MCP server. Triggers are the Browserbase events a routine can start from.
Functions
- Builds.GetRead-only
Get a Function Build. (GET /v1/functions/builds/{id})
functions.builds.get
- Builds.ListRead-only
List Function Builds. (GET /v1/functions/builds)
functions.builds.list
- Builds.LogsRead-only
Get Function Build Logs. (GET /v1/functions/builds/{id}/logs)
functions.builds.logs
- GetRead-only
Get a Function. (GET /v1/functions/{id})
functions.get
- Invocations.GetRead-only
Get an Invocation. (GET /v1/functions/invocations/{id})
functions.invocations.get
- Invocations.LogsRead-only
Get Invocation Logs. (GET /v1/functions/invocations/{id}/logs)
functions.invocations.logs
- InvokeDestructive
Invoke a Function. Runs the Function on Browserbase compute.
functions.invoke
- ListRead-only
List Functions. (GET /v1/functions)
functions.list
- Secrets.AttachWrite
Attach a Secret to a Function. Attach a secret to a Function, taking effect on the Function's next invocation. Note: Attaching a secret that is already attached succeeds to support idempotency.
functions.secrets.attach
- Secrets.DetachDestructive
Detach a Secret from a Function. Detach a secret from a Function, taking effect on the Function's next invocation. Note: Detaching a secret that is not attached succeeds to support idempotency. Cannot be undone.
functions.secrets.detach
- Secrets.ListRead-only
List Function Secrets. List secrets attached to a function. Supports filtering by secret creation time. Returns metadata only.
functions.secrets.list
- Versions.GetRead-only
Get a Function Version. (GET /v1/functions/versions/{id})
functions.versions.get
- Versions.InvocationsRead-only
List Invocations for a Function Version.
functions.versions.invocations
- Versions.ListRead-only
List Function Versions. (GET /v1/functions/{id}/versions)
functions.versions.list
Sessions
- CreateDestructive
Create a Session. Starts a cloud browser that is billed by the minute until it is released or times out.
sessions.create
- DebugRead-only
Session Live URLs. (GET /v1/sessions/{id}/debug)
sessions.debug
- GetRead-only
Get a Session. (GET /v1/sessions/{id})
sessions.get
- ListRead-only
List Sessions. (GET /v1/sessions)
sessions.list
- LogsRead-only
Session Logs. (GET /v1/sessions/{id}/logs)
sessions.logs
- Recording Downloads.CreateWrite
Create Session Recording Downloads. Requests one downloadable MP4 per recorded page of a session. Assembly runs asynchronously and every page returns as PENDING. Re-posting re-enqueues all pages and retries any that failed. Poll the GET endpoint for per-page status and, on standard (non-BYOS) projects, download URLs.
sessions.recordingDownloads.create
- Recording Downloads.ListRead-only
List Session Recording Downloads. Returns the per-page download status for a session, with a short-lived signed URL for each completed page on standard (non-BYOS) projects.
sessions.recordingDownloads.list
- Replays.GetRead-only
Get Session Replay. Returns page metadata for a session replay, including timing information and the URL of each page's HLS playlist.
sessions.replays.get
- Replays.PageRead-only
Get Replay Page. Returns an HLS VOD media playlist (.m3u8) for a specific page of a session replay.
sessions.replays.page
- Set LabelsWrite
Set Session Labels. Atomically replace a session's labels. Returns the response after the assignment commits.
sessions.setLabels
- UpdateDestructive
Update a Session. Setting status to REQUEST_RELEASE ends the session.
sessions.update
- Upload FileWrite
Create Session Uploads. (POST /v1/sessions/{id}/uploads)
sessions.uploadFile
Agents
- CreateWrite
Create an Agent. Create a reusable agent. An agent defines a systemPrompt and resultSchema that guide its behavior for every run. Only name is required; an agent created with no systemPrompt behaves like an unconfigured run.
agents.create
- DeleteDestructive
Delete an Agent. Delete an agent. Runs that already referenced this agent are unaffected. Cannot be undone.
agents.delete
- GetRead-only
Get an Agent. Retrieve an agent by ID. (GET /v1/agents/{agentId})
agents.get
- ListRead-only
List Agents. List agents across your account. Supports filtering by creation time.
agents.list
- Runs.CreateDestructive
Run an Agent. Run a browser agent to complete the task by using web search and browser tooling. Optionally pass agentId to run a custom agent you've created. Starts an agent run that uses browser time and model tokens.
agents.runs.create
- Runs.GetRead-only
Get a Run. Retrieve the current status and details of a run, including its result and associated session information. To fetch the run's messages, use List Run Messages.
agents.runs.get
- Runs.ListRead-only
List Runs. List runs across your account. Supports filtering by status, by the agent they reference, and by creation time.
agents.runs.list
- Runs.MessagesRead-only
List Run Messages. Returns a paginated list of messages produced by a run, in chronological order, with the oldest messages first. Messages conform to the AI SDK UIMessage format.
agents.runs.messages
- Runs.ResumeDestructive
Resume a Run. Resume a PAUSED run with additional input. The reply in task is delivered to the agent as the answer to its pause request (the trailing pause tool call in the run's messages), and variables merge over the run's original variables. Resuming a run that is not paused returns a conflict.
agents.runs.resume
- Runs.StopDestructive
Stop a Run. Request that an in-progress run stop. The run winds down and transitions to STOPPED. Stopping a run that has already finished returns a conflict.
agents.runs.stop
- UpdateWrite
Update an Agent. Update an existing agent. Only the fields provided in the body are modified; omitted fields are left unchanged.
agents.update
Secrets
- CreateWrite
Create a Secret. (POST /v1/secrets)
secrets.create
- DeleteDestructive
Delete a Secret. Cannot be undone. (DELETE /v1/secrets/{id})
secrets.delete
- GetRead-only
Get a Secret. (GET /v1/secrets/{id})
secrets.get
- KeypairRead-only
Get a Keypair. (GET /v1/secrets/keypair)
secrets.keypair
- ListRead-only
List Secrets. List project secrets. Supports filtering by creation time.
secrets.list
- UpdateWrite
Update a Secret. Replace a secret's value. The name cannot be changed; to rename, create a new secret and delete the old one.
secrets.update
Webhooks
- CreateWrite
Create a Webhook. Register an HTTPS endpoint to receive events for this project. The response includes the signing secret, which is shown only here and when the secret is rotated. Store it before discarding the response. An endpoint may only be registered once per project. The response holds the signing secret; it is shown only here and on rotate.
webhooks.create
- DeleteDestructive
Delete a Webhook. Delete a webhook. Deliveries stop immediately and the signing secret is retired. Events that occurred before the delete are not replayed if the endpoint is registered again. Cannot be undone.
webhooks.delete
- GetRead-only
Get a Webhook. Retrieve a single webhook by ID. The signing secret is not included; it is only ever returned on create and rotate.
webhooks.get
- ListRead-only
List Webhooks. List the project's webhooks, newest first. Signing secrets are not included. Page by passing the previous response's nextCursor as cursor; a null nextCursor means there are no further pages.
webhooks.list
- Rotate SecretDestructive
Rotate a Webhook signing secret. Issue a new signing secret for a webhook. By default the previous secret keeps verifying for 24 hours so a receiver can be updated without dropping deliveries; pass revokeImmediately to end that window at once. The new secret is returned only here.
webhooks.rotateSecret
- UpdateWrite
Update a Webhook. Update a webhook's endpoint URL, its subscribed event types, or both. Omitted fields are left unchanged. eventTypes replaces the existing subscription rather than adding to it. The signing secret is unaffected.
webhooks.update
Navigation Policies
- CreateWrite
Create a Navigation Policy. Create a navigation policy for this project. Omitted fields take the defaults: enabled, block by default, block unknown domains, no category rules, and no overrides. Bind the policy to a session with browserSettings.riskPolicyId.
navigationPolicies.create
- DeleteDestructive
Delete a Navigation Policy. Delete a navigation policy. New sessions can no longer bind to it; running sessions keep the policy they started with. Cannot be undone.
navigationPolicies.delete
- GetRead-only
Get a Navigation Policy. Retrieve a single navigation policy by ID.
navigationPolicies.get
- ListRead-only
List Navigation Policies. List the project's navigation policies, ordered by name.
navigationPolicies.list
- UpdateWrite
Update a Navigation Policy. Update a navigation policy. Omitted fields keep their values; a supplied list replaces the stored list rather than adding to it. The change applies to sessions that start afterwards; running sessions keep the policy they started with.
navigationPolicies.update
Certificates
- DeleteDestructive
Delete a Certificate. Delete an uploaded certificate from your project by its ID. Session creation requests that still reference this ID in proxySettings.caCertificates fail with HTTP 400. Cannot be undone.
certificates.delete
- GetRead-only
Get a Certificate. Retrieve metadata for an uploaded certificate by its ID, including its project ID and timestamps. The PEM content is not returned.
certificates.get
- ListRead-only
List Certificates. List the certificates uploaded to your project.
certificates.list
- UploadWrite
Upload a Certificate. Upload a PEM file with one or more CA certificates (up to 100 MB). Pass the returned ID in proxySettings.caCertificates when creating a session so the browser trusts these certificates.
certificates.upload
Labels
- CreateWrite
Create a Label. Create a project-owned label.
labels.create
- DeleteDestructive
Delete a Label. Delete a label and its session assignments, preserving the sessions. Missing and other-project labels are successful no-ops. Cannot be undone.
labels.delete
- ListRead-only
List Labels. List the project's labels, newest first. Page by passing the previous response's nextCursor as cursor; a null nextCursor means there are no further pages.
labels.list
- UpdateWrite
Update a Label. Rename a label, preserving its ID, creation time, and session assignments.
labels.update
Contexts
- CreateWrite
Create a Context. (POST /v1/contexts)
contexts.create
- DeleteDestructive
Delete a Context. Cannot be undone. (DELETE /v1/contexts/{id})
contexts.delete
- GetRead-only
Get a Context. (GET /v1/contexts/{id})
contexts.get
Downloads
- DeleteDestructive
Delete a Download. Delete a download file from storage and mark as deleted. Cannot be undone.
downloads.delete
- GetRead-only
Get a Download. Get download metadata (Accept: application/json) or file content (Accept: application/octet-stream).
downloads.get
- ListRead-only
List Downloads. List all downloads for a session with optional filtering and pagination.
downloads.list
Extensions
- DeleteDestructive
Delete an Extension. Cannot be undone. (DELETE /v1/extensions/{id})
extensions.delete
- GetRead-only
Get an Extension. (GET /v1/extensions/{id})
extensions.get
- UploadWrite
Upload an Extension. (POST /v1/extensions)
extensions.upload
Projects
- GetRead-only
Get a Project. (GET /v1/projects/{id})
projects.get
- ListRead-only
List Projects. (GET /v1/projects)
projects.list
- UsageRead-only
Get Project Usage. (GET /v1/projects/{id}/usage)
projects.usage
Fetch
- PageRead-only
Fetch a Page. Fetch a page and return its content, headers, and metadata. A metered read: each call counts against the plan.
fetch.page
Search
- WebRead-only
Web Search. Perform a web search and return structured results. A metered read: each call counts against the plan.
search.web
Connect Browserbase to Claude, ChatGPT or Cursor
- 1
Connect Browserbase in Corsair
Add your Browserbase API key once in Corsair. Corsair stores the credential encrypted and makes the Browserbase API calls for your agent, so it never goes into a prompt or a config file. Connect Browserbase
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Browserbase. On a ChatGPT personal plan, connect Browserbase here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Browserbase's read and write operations run right away and its 17 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/browserbase, add the Browserbase plugin, and connect with an API key. Then call methods like corsair.browserbase.api.agents.create() from your app. Corsair verifies webhooks, and keeps each tenant isolated.
Yes. Browserbase requires an API key from your Browserbase account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Browserbase, GitHub, Notion, Stripe, and the rest. Trigger Browserbase from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for cloud browsers for AI agents with Browserbase: start, inspect, label and release browser sessions with live debug URLs, logs, replays and recordings, keep logins in contexts and secrets, run Functions and agents, fetch pages and search the web, and receive signed webhooks (76 operations). Common builds include sync jobs, admin tooling, and agents that call Browserbase APIs from your backend. Webhook handlers react to Browserbase events and fan out to Slack, email, or other plugins in the same tenant.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Browserbase API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/browserbase in the open repo. When Browserbase ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Browserbase data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Browserbase data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Browserbase on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 17 destructive Browserbase operations. You can change a link's mode at hub.corsair.dev/me.