MCP OAuth

Adds OAuth 2.1 sign-in with PKCE and dynamic client registration to a Payload MCP server

Community 9 6.9k/wk MIT v0.5.1

Installation

pnpm add @brainwebuk/payload-plugin-mcp-oauth

About

MCP OAuth lets AI clients such as Claude.ai connect to a Payload-backed MCP server through a standard OAuth 2.1 login, so people no longer need to hand out API keys. Clients register themselves automatically, and the sign-in uses the authorization code flow with PKCE. Tokens are stored only as keyed hashes, and refresh and revocation are supported.

The plugin runs alongside the existing API-key access, so current MCP clients keep working unchanged. Admins can see and manage registered OAuth clients and issued tokens in the admin panel under the MCP group. The public REST and GraphQL endpoints stay closed for these collections.

Package info

Package name
@brainwebuk/payload-plugin-mcp-oauth
Latest version
0.5.1
Unpacked size
622 kB
License
MIT
Weekly downloads
6.9k
Last publish
Oct 25, 2026

Similar plugins

More in Auth

Birth month and year check at sign-up that flags minors by country and region

Lets one Payload admin panel manage content for many separate tenants

Linked accounts and role hats, with a second factor before switching to a sensitive role

Sells digital products with signed download links that expire and stop on refund

Adds passkey sign-in and passkey management to the Payload login and account screens

Lets AI assistants read and edit Payload content over MCP with scoped API keys