Auth Example
Showcases a FastMCP server with both authenticated and unauthenticated endpoints, secured by Nginx, Envoy, and Open Policy Agent.
소개
This project provides a comprehensive example of how to implement authentication and authorization for a FastMCP server. It features an unauthenticated MCP server alongside an authenticated path secured by an Nginx proxy for Bearer token enforcement, an Envoy reverse proxy for request forwarding, and Open Policy Agent (OPA) for fine-grained authorization decisions. The repository includes a full Docker Compose setup to easily deploy all components and example Python clients for testing both authenticated and unauthenticated access patterns.
주요 기능
- Docker Compose setup for easy deployment of all components
- Example Python clients for testing both access types
- Bearer token authentication via Nginx proxy
- Envoy integration for reverse proxying and OPA policy enforcement
- FastMCP server with authenticated and unauthenticated endpoints
- 0 GitHub stars
사용 사례
- Learning about authentication and authorization proxy patterns
- Demonstrating secure FastMCP server deployments
- Prototyping secure MCP server architectures with Nginx, Envoy, and OPA