Riftsh vs Cloudflare Tunnel (cloudflared) for Remote MCP

Pointing cloudflared at a local HTTP port exposes unauthenticated MCP endpoints unless you build your own OAuth 2.1 + RFC 7591 authorization server—and decrypts all source code at the CDN edge. Riftsh ships MCP-native auth and end-to-end ciphertext out of the box.

DimensionRiftshCloudflare Tunnel
MCP OAuth 2.1 + DCR (Claude & ChatGPT)Turnkey `/.well-known/*` + PKCE S256 consent UICloudflare Access breaks standard MCP DCR flow
Payload Privacy in TransitEnd-to-end X25519 + AES-256-GCM (0 edge plaintext)TLS terminated & inspected in plaintext at edge
Built-in Workstation MCP Tools32 tools compiled into the same 9.9MB binaryTunnel only; must run separate HTTP MCP server
Multi-Host Aggregation1 `/mcp` URL routes across 25 paired machinesSeparate subdomain per machine

Verdict

Use Cloudflare Tunnel for public web apps and webhooks; use Riftsh to connect local shells and codebases to AI agents with built-in OAuth 2.1 consent, Ed25519 PoP, and zero edge plaintext.

FAQ

Why does Claude.ai fail to connect behind Cloudflare Zero Trust Access?

Claude's MCP connector expects RFC 9728 Protected Resource Metadata (WWW-Authenticate: Bearer resource_metadata=...) and RFC 7591 /register, whereas Cloudflare Access returns HTML login redirects.