Docs & Setup

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.app to /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:

  1. Click the LocalHand icon in the macOS menu bar.
  2. Click the endpoint pill to copy your /mcp URL (loopback on 127.0.0.1:8795/mcp).
  3. In your MCP client, add a new remote/HTTP MCP server and paste the copied URL.
  4. 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.
LocalHand Connect screen showing Cloudflare Tunnel and AI client setup steps
Control Center → Connect: manage your HTTPS tunnel and follow client-specific OAuth 2.1 steps.

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)

  1. Open Control Center → Tunnel and choose Quick Tunnel.
  2. If cloudflared is not already installed (via Homebrew or LocalHand’s managed binary), click Install Helper. LocalHand downloads the official cloudflared-darwin-arm64.tgz binary into ~/Library/Application Support/LocalHand/bin/.
  3. Click Start Quick Tunnel. LocalHand spawns cloudflared and gives you a temporary https://<random>.trycloudflare.com/mcp URL.
  4. 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 /mcp URL 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.
LocalHand Access & Guardrails view with 4 live capability toggles and workspace folder configuration
Control Center → Access & Guardrails: toggle capabilities live and scope workspace folders.