OAuth icon

OAuth

Provides a FastMCP server with Bearer token authentication and OAuth 2.1 endpoints for dynamic client registration and metadata discovery.

概要

This project serves as a comprehensive example for establishing a secure FastMCP server using FastAPI. It integrates robust OAuth 2.1 Bearer token authentication, enabling dynamic client registration and metadata discovery. Designed for developers, it demonstrates how to build MCP-compliant services that enforce secure access, providing a foundational blueprint for integrating authentication flows with Model Context Protocol applications.

主な機能

  • FastMCP server mounted on FastAPI
  • Bearer token (JWT) authentication with RSA public key validation
  • OAuth 2.1 Authorization Server metadata endpoints
  • Dynamic client registration (RFC 7591)
  • OpenID Connect discovery support
  • 0 GitHub stars

ユースケース

  • Developing and testing MCP servers requiring OAuth authentication
  • Integrating MCP services with AI assistants like Claude
  • Building secure, MCP-compliant API services with modern authentication