OAuth 2.0 over Streamable HTTP
All HTTP requests tohbmcp authenticate with Authorization: Bearer <MCP OAuth access token>.
- Interactive OAuth discovery: Unauthenticated requests return
401with aWWW-Authenticatechallenge pointing to RFC 9728 protected-resource metadata (https://mcp.hyperbrowser.ai/.well-known/oauth-protected-resource/mcp/...). OAuth-capable clients discover the issuer (https://app.hyperbrowser.ai/oauth), register via Dynamic Client Registration, and complete browser sign-in, team selection, and scope consent using S256 PKCE. - Token lifetimes: Access tokens expire after 10 minutes. Clients automatically renew them with rotating refresh tokens for up to 30 days, after which sign-in is required again.
- Path-specific grants: Protected-resource metadata advertises the exact path you connect to (for example
/mcp/browser,usage). Switching to a different toolset path requires re-authorizing that URL.
Scopes and Permissions
Each toolset path advertises only the scopes required by its tools:- Requests missing a required scope return
403witherror="insufficient_scope". - Invalid or expired tokens return
401witherror="invalid_token". - Backend team roles, member API-key management settings, and email verification remain enforced; the MCP server never elevates permissions.
Static-Header Clients
Clients that do not support interactive OAuth discovery or token refresh (including non-interactive agent platforms) must obtain an MCP OAuth access token externally and pass it in theAuthorization header:
Migrating from API Keys and Stdio
If you are migrating from an earlier setup:- Remove
x-api-keyheaders,Authorization: Bearer hb_...tokens, andTRANSPORT=stdio/HYPERBROWSER_API_KEYconfiguration from your MCP client. - Point your client at the Streamable HTTP URL (
https://mcp.hyperbrowser.ai/mcp, orhttps://mcp.hyperbrowser.ai/mcp/basicfor web tools only). - Complete the OAuth sign-in and team consent flow in your browser.