# PocketOTP

> SMS verification codes from your own Android phone, for your AI assistant. Outbound SMS is sent only after the user long-presses Allow on the phone.

Use only the user's own phone and numbers. PocketOTP is not a number pool and does not resell verification codes.

## What it is

PocketOTP is an Android app plus a hosted multi-user relay. The assistant talks to the relay over Streamable HTTP MCP at `https://relay.pocketotp.com/mcp`, server name `pocketotp`, with a `pk_live_` bearer token.

Filtering happens on the phone. Bank and payment messages are blocked by default and are never uploaded. Codes are deleted 15 minutes after upload.

## Setup

Follow these steps. Ask the user before you create or edit their MCP configuration. Never print, log, or paste the token back in the chat once you have stored it.

1. Ask the user to sign in to the PocketOTP console (`https://relay.pocketotp.com/`) and create an MCP token. It is shown once and starts with `pk_live_`.
2. Add the MCP server with the user's permission. Prefer an environment variable or the client's secret store for the token.

Claude Code:

```
claude mcp add --transport http pocketotp https://relay.pocketotp.com/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"
```

Cursor (`mcp.json`):

```json
{
  "mcpServers": {
    "pocketotp": {
      "url": "https://relay.pocketotp.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}
```

Codex (`~/.codex/config.toml`):

```toml
[mcp_servers.pocketotp]
url = "https://relay.pocketotp.com/mcp"
http_headers = { Authorization = "Bearer YOUR_TOKEN" }
```

3. Test with `get_latest_code`. If no code is available yet, say so; do not invent one.
4. If the user wants to send an SMS, call `send_sms`. It will stay in `awaiting_confirmation` until they long-press Allow on the phone (5-minute timeout). Check `get_send_status` if needed. Use `list_sims` to see slots, plan, and whether the phone is online.

## Tools

- `get_latest_code` (optional `source`, optional `since_minutes` default 15) — most recent code plus a few recent matches. Response fields include `code`, `source`, `sender`, `brand`, `carrier`, `slot`, `timestamp`, `device`, `test`.
- `send_sms` (required `to`, `text`, `sim`; optional `dry_run`, `device`) — `to` is a number or `other_sim`; `text` max 500 characters; `sim` is `1`, `2`, or a carrier name (`unicom`, `mobile`) that is on the user's plan. Dry runs still require confirmation and are not counted toward limits.
- `get_send_status` (required `id`) — `awaiting_confirmation`, `queued`, `sent`, `delivered`, `failed`, `cancelled`, or `expired`.
- `list_sims` — no parameters. Lists paired phones, SIM slots, on-plan flags, online status (heartbeat in the last 90 seconds), and `confirmReady`.

## Limits

Sends are counted only after the user allows them (dry runs excluded): 10 per hour on every plan; 10 per day on Free, 50 per day on Pro. Free also includes 1 device, 1 number, and 50 codes per month. Pro is $6/month or $48/year (launch offer: first 100 yearly at $36, locked on renewal): 3 devices, 2 numbers, unlimited codes under fair use, 30-day content-free history.

## Compliance

Only the user's own phone and numbers. Do not suggest rented numbers, number pools, or reselling codes.

The Android app is Apache-2.0 and will be public at launch (the repository is still private). The hosted relay is closed source.

More documentation: https://pocketotp.com/docs/ · https://pocketotp.com/security/ · https://pocketotp.com/privacy/ · https://pocketotp.com/terms/ · https://pocketotp.com/refund/ · https://pocketotp.com/llms.txt
