MCP OAuth Cloudflare - OAuth authentication for MCP servers on Cloudflare Workers
Adds OAuth authentication to MCP servers deployed on Cloudflare Workers
Tags
Updated: 2026-02-09Capabilities
Typical Inputs
Typical Outputs
What this skill does
- generate OAuth tokens
- handle Google authentication
- store encrypted tokens
- validate OAuth state
- issue client tokens
- process callback URLs
Inputs
- Google OAuth credentials
- Cloudflare KV namespace
- Cookie encryption key
- OAuth scope configuration
- MCP server configuration
- Durable Objects bindings
Outputs
- OAuth access tokens
- encrypted session cookies
- authenticated MCP endpoints
- DCR registration responses
- user authentication context
Requirements
- Cloudflare Workers environment
- @cloudflare/workers-oauth-provider
- agents @modelcontextprotocol/sdk
- hono zod dependencies
- KV namespace for state storage
- Durable Objects for sessions
