Riftsh vs SSH Port Forwarding, FRP & ngrok for Remote MCP

Exposing a local MCP server over ngrok or ssh -R leaves TLS termination at the proxy in plaintext and lacks OAuth 2.1 consent required by Claude.ai and ChatGPT. Riftsh seals every tool call end-to-end.

DimensionRiftshSSH / FRP / ngrok
OAuth 2.1 + DCR for Claude.ai & ChatGPTBuilt-in (/.well-known + /register + PKCE)Manual reverse proxy auth coding required
Relay / Proxy Plaintext Visibility0 bytes plaintext (X25519 + AES-256-GCM AAD)Tunnel edge inspects decrypted HTTP JSON bodies
Request Forgery ProtectionEd25519 hardware-pinned signature + nonceAnyone with the public tunnel URL/token can call
Multi-Machine Fleet RoutingSingle /mcp endpoint with _device parameterRequires N separate tunnels and N MCP configs

Verdict

Use SSH/ngrok when exposing generic HTTP web previews; use Riftsh when granting cloud AI agents authenticated, zero-plaintext tool execution across one or more machines.

FAQ

Does Riftsh require opening any firewall ports on my home or office router?

Zero inbound ports. riftsh remote establishes an outbound TLS 1.3 WebSocket connection to /ws/v1/device and traverses NAT, CGNAT, and corporate egress proxies.