Back to Home
wille icon

mcp-oauth-server

Verified Safe

by wille

Overview

OAuth 2.1 Authorization Server implementation for the Model Context Protocol (MCP) to manage client and user authentication.

Installation

Run Command
pnpm example:server

Security Notes

The server implements OAuth 2.1 with PKCE for secure authorization flows. It utilizes `zod` for robust input validation of request parameters, preventing common web vulnerabilities. Rate limiting is configurable to mitigate abuse. Token generation and challenge validation employ cryptographic functions (`crypto`). The architecture supports an extensible storage model, with a memory-backed option for development (requiring a custom, persistent model for production). Error handling is explicitly defined for various OAuth flow steps. No obvious 'eval' or hardcoded secrets were found.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassLow
Stars2
Forks0
Last Update2025-12-02

Tags

OAuthAuthorizationMCPSecurityAPI