Connect Gemini, Claude, or Grok to your Mac
LocalHand runs a Streamable HTTP MCP server on your Mac at
127.0.0.1:8795 with OAuth 2.1 (PKCE S256) and Dynamic Client Registration.
1. Requirements & Install
- Apple Silicon Mac (M1 or newer) running macOS 14 (Sonoma) or later.
-
Open the notarized DMG, drag
LocalHand.appto/Applications, and launch it. -
By default, the local server starts automatically on port
8795(autoStartServer = true).
2. Connect Verified AI Clients (Gemini, Claude, Grok)
Gemini, Claude, and Grok are verified end-to-end with LocalHand. Any other client supporting Streamable HTTP MCP with OAuth 2.1 PKCE S256 follows the same steps:
- Click the LocalHand icon in the macOS menu bar.
-
Click the endpoint pill to copy your
/mcpURL (loopback on127.0.0.1:8795/mcp). - In your MCP client, add a new remote/HTTP MCP server and paste the copied URL.
- Complete the OAuth 2.1 flow. Out of the box, OAuth auto-approve is on; if you turn it off in Control Center, click Approve in the pending approvals banner.
Health check: LocalHand exposes /health on the same host
and port, returning JSON with ok: true, version 0.1.0, and
engine Apple JavaScriptCore.
3. Connect web AI apps with Cloudflare Tunnel
Web-based AI apps cannot reach 127.0.0.1 directly—they need a public HTTPS
URL. LocalHand includes built-in cloudflared management with two modes in
Control Center → Tunnel:
Option A: Quick Tunnel (zero account required)
- Open Control Center → Tunnel and choose Quick Tunnel.
-
If
cloudflaredis not already installed (via Homebrew or LocalHand’s managed binary), click Install Helper. LocalHand downloads the officialcloudflared-darwin-arm64.tgzbinary into~/Library/Application Support/LocalHand/bin/. -
Click Start Quick Tunnel. LocalHand spawns
cloudflaredand gives you a temporaryhttps://<random>.trycloudflare.com/mcpURL. - Copy that URL from the menu bar and paste it into your AI client. Note that Quick Tunnel URLs change on restart.
Option B: Permanent Named Tunnel (fixed custom domain)
If you own a domain on Cloudflare, you can set up a fixed hostname that survives restarts:
-
Auto API setup: Paste a Cloudflare API token with Zone DNS +
Cloudflare Tunnel permissions, pick your zone and subdomain, and LocalHand creates the
remotely managed Named Tunnel, configures ingress to
127.0.0.1:8795, and upserts the proxied CNAME record. The API token is used in memory only and is never persisted. - Manual token setup: Create a Named Tunnel in the Cloudflare Zero Trust dashboard, then paste the tunnel token and hostname into LocalHand.
-
Enable Auto-start permanent tunnel with server so your fixed
/mcpURL is ready on launch.
4. Tightening defaults & Kill Switch
- Pause / Kill Switch: Click Pause in the menu bar to immediately reject all incoming tool calls without dropping your OAuth sessions.
- Workspace restriction: In v0.1.0, Full Mac Access is enabled by default. Turn it off in Control Center to restrict file tools to your configured workspace folders.
- Manual OAuth approval: Turn OAuth auto-approve off to manually review and approve every new OAuth client before it receives a bearer token.
- Capability guardrails: Independently toggle Files & OCR, Shell & tmux, Screen & Clipboard, and Apps & Shortcuts.