MCP Auth Node.js SDK
The MCP spec requires OAuth 2.1 and other RFCs for auth. Instead of spending weeks on them, use MCP Auth to connect to a trusted provider with a few lines of code.
mcp-auth targets the latest MCP specification and the MCP TypeScript SDK v2, implementing the spec's authorization requirements β RFC 9728 Protected Resource Metadata and RFC 8707 audience-bound token validation β for any OAuth 2.0 / OpenID Connect provider.
Get started
Is my provider supported?
Check out the MCP-compatible providers to see which providers are supported. It also includes a tool for real-time checking of provider compatibility.
Installation
npm install mcp-auth
Or use your package manager of choice, such as pnpm or yarn.
Still on MCP SDK v1 (@modelcontextprotocol/sdk)? Stay on the 0.2 line β npm install [email protected] β and see the v0.2.0 code and samples.
See the documentation for the full guide.
Join the discussion
Join the MCP Auth org discussion to ask questions or share your feedback.
No comments yet
Be the first to share your take.