Configuration
Prerequisites
Before you begin, you will need:- A PropelAuth account
- Your FastMCP serverโs base URL (can be localhost for development, e.g.,
http://localhost:8000)
Step 1: Configure PropelAuth
1
Enable MCP Authentication
Navigate to the MCP section in your PropelAuth dashboard, click Enable MCP, and choose which environments to enable it for (Test, Staging, Prod).
2
Configure Allowed MCP Clients
Under MCP > Allowed MCP Clients, add redirect URIs for each MCP client you want to allow. PropelAuth provides templates for popular clients like Claude, Cursor, and ChatGPT.
3
Configure Scopes
Under MCP > Scopes, define the permissions available to MCP clients (e.g.,
read:user_data).4
Choose How Users Create OAuth Clients
Under MCP > Settings > How Do Users Create OAuth Clients?, you can optionally enable:
- Dynamic Client Registration โ clients self-register automatically via the DCR protocol
- Manually via Hosted Pages โ PropelAuth creates a UI for your users to register OAuth clients
5
Generate Introspection Credentials
Go to MCP > Request Validation and click Create Credentials. Note the Client ID and Client Secret - youโll need these to validate tokens.
6
Note Your Auth URL
Find your Auth URL in the Backend Integration section of the dashboard (e.g.,
https://auth.yourdomain.com).Step 2: Environment Setup
Create a.env file with your PropelAuth configuration:
Step 3: FastMCP Configuration
Create your FastMCP server file and use the PropelAuthProvider to handle all the OAuth integration automatically:server.py
Testing
With your.env loaded, start the server:
Accessing User Information
You can useget_access_token() inside your tools to identify the authenticated user:
server.py
Advanced Configuration
ThePropelAuthProvider supports optional overrides for token introspection behavior, including caching and request timeouts:
server.py

