Prerequisites
Before you begin- Get a Scalekit account and grab your Environment URL from Dashboard > Settings .
- Have your FastMCP server’s base URL ready (can be localhost for development, e.g.,
http://localhost:8000/)
Step 1: Configure MCP server in Scalekit environment
1
Register MCP server and set environment
In your Scalekit dashboard:
- Open the MCP Servers section, then select Create new server
- Enter server details: a name, a resource identifier, and the desired MCP client authentication settings
- Save, then copy the Resource ID (for example, res_92015146095)
.env:Step 2: Add auth to FastMCP server
Create your FastMCP server file and use the ScalekitProvider to handle all the OAuth integration automatically:Warning: The legacymcp_urlandclient_idparameters are deprecated and will be removed in a future release. Usebase_urlinstead ofmcp_urland removeclient_idfrom your configuration.
server.py
Testing
Start the MCP server
Production Configuration
For production deployments, load configuration from environment variables:server.py

