MCP setup
The remote server is https://mcp.browsebridge.com/mcp. Sign in with Clerk, or send a Browse Bridge API key. Both use the same quota, sessions, and approvals.
Retries and billing
A key replays the original result only within ~60 seconds of the first call, only for the same Mcp-Session-Id, the same credential (API key or OAuth token), the same browser session, and the same tool. After the window, or under a different session/credential/tool, the call executes and bills normally. Reusing a key with different arguments returns IDEMPOTENCY_KEY_REUSED and is not executed or billed. Refusals (e.g. NO_HISTORY_ENTRY) are not cached, so the same key re-executes once state changes. A key passed in _meta is ignored. Identical retries without a key are not replayed and are charged again.
OAuth
ChatGPT, Claude, and Claude Code discover the server at https://mcp.browsebridge.com/.well-known/oauth-protected-resource/mcp. The authorization server and issuer are https://mcp.browsebridge.com. Scopes are openid, profile, and email. Authorize sends https://mcp.browsebridge.com/oauth/callback, and that callback returns the browser to the registered redirect with iss=https://mcp.browsebridge.com.
Callback forwarding on replay / missing state cookie is accepted: the authorization code is single-use and PKCE-bound. A missing or tampered state is 400 invalid_request. Browse Bridge does not set the authorization-code lifetime. A live exchange succeeded at 90 seconds and returned invalid_grant at about 2 minutes 20 seconds. An access token expires_in of 86399 is a one-day token.
- Claude custom connector: paste the MCP URL only. Callback is https://claude.ai/api/mcp/auth_callback.
- Claude Code:
claude mcp add --transport http browsebridge https://mcp.browsebridge.com/mcpthen/mcp. A loopback client registershttp://127.0.0.1:<port>/…,http://localhost:<port>/…, orhttp://[::1]:<port>/…. After consent the browser lands on that exact URI. A127.0.0.1registration stays127.0.0.1. Send that same URI on the token request. - ChatGPT developer mode: add the MCP URL and confirm tools, including browser_get_profile.
- MCP Inspector: connect to the URL and complete the OAuth sign-in, including a token refresh.
Connected apps are listed at Settings → Connected apps. Disconnect blocks the app, then asks Clerk to revoke that grant. Clerk revokes the refresh token when it is given the app's opaque access token. A JWT access token cannot be revoked there; remove the connector in the AI app so it drops the refresh token.
API key
Create a key on Connections. The secret starts with bbk_ and is shown once. In Cursor, VS Code, or Windsurf, add the remote MCP server https://mcp.browsebridge.com/mcp and send Authorization: Bearer bbk_…. Claude can use that same key or the OAuth connector above. Keys are checked in Convex and are never sent to Clerk.