Hyperterse is a long-running server process, not a serverless function. Deploy
it on a container platform (AWS, GCP,
Azure, Railway,
DigitalOcean) or bare
metal, then put Cloudflare in front of it.
Cloudflare Tunnel
Cloudflare Tunnel creates a secure, outbound-only connection from your server to Cloudflare’s edge network. Your origin server never needs a public IP address.DNS proxy
If your Hyperterse server already has a public IP, use Cloudflare as a reverse proxy by adding an A or CNAME record with proxy enabled (orange cloud). Set SSL/TLS mode to Full (strict).Caching
Configure Cloudflare to cache read-heavy endpoints like/heartbeat while bypassing cache for the /mcp endpoint, which processes tool calls:
- Cache Rule:
*api.example.com/heartbeat*— Cache Everything, TTL 1 hour - Bypass Rule:
*api.example.com/mcp*— Cache Level: Bypass
Security hardening
Cloudflare provides several layers of protection:- WAF: Enable managed rulesets under Security > WAF
- Rate limiting: Create rules to limit requests to
/mcp(e.g., 100 requests per minute per IP) - Bot management: Enable Bot Fight Mode to block automated abuse
- DDoS protection: Enabled automatically on all plans