Local AI Bridge (MCP)

Connect your AI over local Wi-Fi.

Let Claude Desktop, Cursor, Windsurf, Orca, or any MCP client read and add tasks on your phone with zero cloud servers, pinned TLS, and one-tap revoke.

Ruled Page Local AI Bridge screen showing Start private Wi-Fi session and Quick setup steps
Settings → Local AI Bridge (MCP)

Android Early Access & Desktop Companion: Ruled Page is currently in Android Early Access. Desktop stdio MCP clients (Claude Desktop, Cursor, Windsurf) connect through a lightweight, zero-dependency Python 3 stdio companion (ruledpage-mcp.py) that verifies your phone's pinned SHA-256 TLS certificate before sending a single byte. Early Access testers receive ruledpage-mcp.py with their invite, and a standalone public download with SHA-256 checksums will be published here alongside the Google Play beta. Request an Early Access invite.

3-Step Setup

Everything runs over your private local Wi-Fi — you only need Python 3 on your computer, with zero pip packages or cloud relays.

01

Start on your phone

Connect your phone and computer to the same Wi-Fi. Open Settings → Local AI Bridge (MCP), tap Start private Wi-Fi session, then tap Copy pairing config (or scan the QR).

02

Save pairing file

Save the copied pairing JSON as an owner-only (0600) config file at ~/.config/opentasks/bridge.json and clear your clipboard.

03

Paste into your AI client

Point Claude Desktop, Cursor, Windsurf, or any stdio MCP client at your downloaded ruledpage-mcp.py companion and bridge.json, then restart.

Step 2: Save Your Pairing File (Owner-Only 0600)

When you tap Copy pairing config in Settings → Local AI Bridge (MCP), Ruled Page copies a one-session JSON payload containing your phone's private LAN IP, port, SHA-256 TLS certificate fingerprint, and a fresh 256-bit bearer token. Save it to ~/.config/opentasks/bridge.json with owner-only permissions (the bridge refuses world- or group-readable files):

macOS (writes owner-only ~/.config/opentasks/bridge.json, then clears clipboard)
install -d -m 700 ~/.config/opentasks && (umask 077 && pbpaste > ~/.config/opentasks/bridge.json) && pbcopy < /dev/null

On Linux or Windows (or if you scanned the on-screen QR code to a temporary file), move it into place and restrict permissions to your user account:

Linux / WSL (owner-only 0600 permissions)
install -d -m 700 ~/.config/opentasks && install -m 600 pairing.json ~/.config/opentasks/bridge.json && rm -f pairing.json

Step 3: Add Ruled Page to Your MCP Client

Place ruledpage-mcp.py (included in the Early Access bundle; public download coming with the Google Play beta) in ~/.local/bin/ruledpage-mcp.py, and replace /Users/YOU with your home directory path. The companion takes your private bridge.json path as its sole argument and refuses any file that isn't owner-only (chmod 600).

Open ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), add ruled-page under mcpServers, and restart Claude Desktop:

claude_desktop_config.json
{
  "mcpServers": {
    "ruled-page": {
      "command": "python3",
      "args": [
        "/Users/YOU/.local/bin/ruledpage-mcp.py",
        "/Users/YOU/.config/opentasks/bridge.json"
      ]
    }
  }
}

What Your AI Can (and Cannot) Do

MCP Tool Scope Behavior
list_tasks tasks:read Read-only paginated list of tasks on your phone (oldest first, optional includeCompleted).
list_notebooks tasks:read Read-only list of your notebooks (lists) with ID, name, and open task count so your AI can file new tasks into the right notebook.
create_task tasks:create Creates a task with title, notes, date/time, priority, tags, notebook/list ID, and hard deadline. Requires an idempotencyKey so retries never create duplicates.

Safety boundaries by design: There is no delete tool, no bulk edit tool, and no alarm scheduling through the bridge. An AI-created task can never ring an alarm on your phone.

Troubleshooting & Security

"The phone is not reachable" / unavailable

  • Check the session is on: Open Ruled Page → Settings → Local AI Bridge (MCP) and verify it says Session running. The session stops automatically if Wi-Fi drops.
  • Same private Wi-Fi network: Both devices must be on the same local Wi-Fi (10.x, 172.16–31.x, or 192.168.x). Hotel, office, or guest Wi-Fi networks with "AP / client isolation" block device-to-device traffic.
  • Tailscale / VPN note: By design, the local bridge binds strictly to your phone's local private Wi-Fi interface (RFC 1918) rather than public or tunnel interfaces. If you use a VPN on your phone or laptop that intercepts local LAN routes, enable "Allow local network access" in your VPN settings. For true away-from-home access, optional Pro Cloud Sync (ai.ruledpage.app) is coming soon.

"Unauthorized" or "Certificate pin mismatch"

  • Starting a new session rotates the 256-bit bearer token and revokes the previous one. Tap Copy pairing config in Ruled Page and overwrite your owner-only ~/.config/opentasks/bridge.json file.
  • The desktop MCP companion checks the phone's exact SHA-256 TLS certificate fingerprint before sending a single HTTP byte (including the bearer token). If the fingerprint ever mismatches, nothing is transmitted.

Instant Stop & Revoke

  • While a session is active, Android shows a persistent notification with a Stop & Revoke button. Tapping it (or tapping Revoke & Stop inside the app) immediately closes the local HTTPS socket and invalidates the token.
  • While pairing details (QR code and config) are visible on screen, Android's FLAG_SECURE blocks screenshots and recent-apps previews.