examples/auth/scalekit_oauth/README.md
Demonstrates FastMCP server protection with Scalekit OAuth.
Create a Scalekit Account:
Register Your MCP Server:
res_123)Create a .env file:
# Required Scalekit credentials
SCALEKIT_ENVIRONMENT_URL=<YOUR_APP_ENVIRONMENT_URL>
SCALEKIT_RESOURCE_ID=<YOUR_APP_RESOURCE_ID> # res_926EXAMPLE5878
BASE_URL=http://127.0.0.1:8000/
# Optional: additional scopes tokens must include (comma-separated)
# SCALEKIT_REQUIRED_SCOPES=read,write
Start the server:
# From this directory
uv run python server.py
The server will start on http://127.0.0.1:8000/mcp with Scalekit OAuth authentication enabled.
Test with client:
uv run python client.py
The client.py will: