Tunnel Tokens
Tunnel tokens authenticate your proxy with the mcpr relay server. They determine which subdomain your tunnel uses and ensure only you can claim your URL.
How tokens work
Section titled “How tokens work”When mcpr starts with [tunnel].enabled = true, it sends its token to the relay server. The relay verifies the token and assigns the corresponding tunnel URL.
- Free: register at mcpr.app to get a token. The default subdomain is derived from the token — opaque, but stable across restarts.
- Cloud: generate a token in the cloud.mcpr.app dashboard and pair it with a custom subdomain you claim there.
Managing tokens
Section titled “Managing tokens”View your tokens
Section titled “View your tokens”Go to cloud.mcpr.app → Dashboard → Tunnel Tokens.
Rotating a token
Section titled “Rotating a token”If a token is compromised:
- Go to Dashboard → Tunnel Tokens
- Revoke the old token
- Create a new token
- Update the
tokenin the[tunnel]section of yourmcpr.toml
Your subdomain stays the same — only the authentication credential changes.
Using a token
Section titled “Using a token”mcp = "http://localhost:9000"
[tunnel]enabled = truetoken = "your-cloud-token"