This repository helps you implement and test the Auth0 interactive login flow with a FastMCP MCP Server. It provides example FastMCP servers and configuration to enable secure authentication and API access using Auth0.
server.py: Main API serverserver_openapi.py: OpenAPI documentation server
git clone https://github.com/hemdagem/auth0-fastmcp.git
cd auth0-fastmcpcp .env.example .envEdit .env with your credentials and settings as needed.
Refer to .env.example and the code for required variables.
You can configure your Auth0 setup here: https://auth0.com/docs/get-started/auth0-overview/create-applications/regular-web-apps
python3 -m venv env
source env/bin/activatepip install -r requirements.txtpython server.py- The API server will start at
http://localhost:8000
python server_openapi.py- This will start the OpenAPI documentation server.
- The API server will start at
http://localhost:8000
Feel free to contribute or open issues for bugs and feature requests.