Overview
Introduction and feature overview for @mcpauth/auth
Welcome to @mcpauth/auth
A full-featured, self-hosted OAuth 2.0 server purpose-built for the Model-Context-Protocol (MCP) ecosystem.
Why @mcpauth/auth?
Self-Hosted | Own your data and authentication flow. No SaaS vendor lock-in. |
MCP-Ready | Required by modern MCP clients (e.g. ChatGPT) for secure tool access. |
Plugs Into Existing Auth | Use the authenticateUser callback to bridge any cookie, session or token system. |
Framework Adapters | Official Next.js and Express adapters – more coming. |
Database Stores | Works with Prisma & Drizzle out-of-the-box. |
Extensible & OSS | 100 % open-source. Request or build new adapters & stores. |
Live Demo
Check out the live demo of @mcpauth/auth
in action, deployed on Vercel:
The source code for this demo is available in the apps/nextjs
directory of the GitHub repository.
Quick Install
npm install @mcpauth/auth
Ready to dive in? Start with Installation below or jump directly to an adapter guide.