Back to Gap Map Product / UX / Agent identity & authorization

Workers OAuth Provider

Cloudflare
open source / Overall score: 3.2

Workers OAuth Provider is a TypeScript library that makes a Cloudflare Worker an OAuth 2.1 authorization server and resource server for HTTP APIs and remote MCP servers. It registers clients through pre-registration, Client ID Metadata Documents or dynamic registration, issues and validates audience-bound tokens, and supports token exchange for narrower tokens. Cloudflare builds it.

Openness

5 high confidence
5.0
license
MIT (OSI)
source
public
core features withheld
no — the 85-path tree at dbd149a carries one MIT LICENSE.txt with no ee/, enterprise/, commercial/ or proprietary/ path; Cloudflare Access is offered as a separate sign-in option beside the library
deployment
Workers runtime (needs a Workers runtime and a KV namespace; workerd, Cloudflare's Apache-2.0 runtime, self-hosts Workers applications and serves KV namespaces)

The library is MIT licensed, and its repository holds the whole authorization server and resource server. It needs the Workers runtime, which Cloudflare sells as a hosted platform but also publishes as workerd for self-hosting, and Cloudflare Access is a separate paid sign-in option rather than a part withheld from the code.

Adoption

4 medium confidence
4.0

Adoption is counted as npm downloads of @cloudflare/workers-oauth-provider over the trailing month, the library's only package. Downloads include build and CI installs and cannot show how many authorization servers run on it.

Capability

2 medium confidence
2.0

Workers OAuth Provider gives each MCP client an identity of its own and lets a token be exchanged only for one with narrower scopes or a shorter life. Whether a given request or tool call is allowed is left to the developer's handler, and the library keeps no signed record of its decisions.

Verified 2026-11-20, except some scores, still awaiting re-confirmation