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 a tunnel, it sends its token to the relay server. The relay verifies the token and assigns the corresponding tunnel URL.
- Free (no cloud): mcpr auto-generates a token on first run and saves it to
mcpr.toml. Your URL is a random hash tied to this token. - Cloud: you get a token from the cloud.mcpr.app dashboard linked to your custom subdomain.
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
tunnel_tokenin 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_token = "your-cloud-token"Or via CLI:
mcpr --mcp http://localhost:9000 --tunnel-token "your-cloud-token"