Back to Home
wille icon

mcp-oauth-server

Verified Safe

by wille

Overview

This server provides an OAuth 2.1 Authorization Server implementation, compliant with the MCP Authorization Spec, to handle authentication and authorization for MCP clients and resource servers.

Installation

Run Command
pnpm example:server

Environment Variables

  • MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL
  • DEBUG

Security Notes

The server demonstrates good security practices including adherence to OAuth 2.1 specifications like PKCE (Proof Key for Code Exchange) for authorization code flow. It implements rate limiting on critical endpoints (authorization, token, revocation, client registration) to prevent abuse and brute-force attacks. Client secrets are dynamically generated using cryptographically secure methods. It enforces HTTPS for issuer URLs in production (with a development override warning). CORS is enabled for public endpoints which is standard for an OAuth Authorization Server. No direct use of `eval` or obvious hardcoded sensitive secrets were found. However, for production, it explicitly requires a custom, persistent storage backend, as the default is in-memory.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassLow
Stars3
Forks0
Last Update2026-01-19

Tags

OAuth 2.1Authorization ServerMCPAuthenticationExpress.js