How to Connect Claude.ai Web & Mobile to a Local Machine via MCP

Claude Desktop supports local stdio commands, but Claude.ai Web and iOS/Android require a public HTTPS Streamable HTTP server implementing OAuth 2.1 + Dynamic Client Registration. Riftsh bridges your local machine in 60 seconds with end-to-end encryption.

Why localhost URLs and basic tunnels fail in Claude.ai Integrations

Invalid MCP Server URL: localhost / private IP addresses are not reachable from Claude cloud.
OAuth Discovery Failed: server did not return /.well-known/oauth-protected-resource (RFC 9728).

Root cause

Anthropic's cloud connectors initiate requests from Anthropic servers, verify TLS certificates, probe /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server, dynamically register an OAuth client via POST /register, and enforce S256 PKCE.

1. Install standalone static Go binary

$ curl -fsSL https://riftsh.com/install.sh | sh
$ riftsh remote

2. Step-by-step resolution

  1. 01Install riftsh on your computer and restrict accessible folders: riftsh config allow-dir ~/projects.
  2. 02Start the outbound encrypted tunnel: riftsh remote --server https://riftsh.com --daemon and approve the 8-character code at https://riftsh.com/verify.
  3. 03In Claude.ai -> Settings -> Integrations -> Add Custom Connector, enter https://riftsh.com/mcp.
  4. 04Approve the OAuth 2.1 consent prompt—Claude Web and mobile can now run commands and read/edit files in your allowed directories with zero cloud plaintext.

3. Verify connectivity

Terminal
# Check outbound WSS tunnel health, RTT & Ed25519 key fingerprint
riftsh status
riftsh doctor

FAQ

Can Riftsh servers see my source code when Claude.ai calls `read_file`?

No. Riftsh seals payloads with X25519 ECDH + AES-256-GCM authenticated envelopes and never persists plaintext tool arguments or outputs to disk.

Related client guides

Architecture comparisons

Start free with 1 machine & 2,000 monthly calls