Quick start
- Open the console and sign in with your email. A one-time login code is sent to that address; an account is created on first sign-in.
- Install the Android app from GitHub Releases (APK + SHA-256 checksum), or add the GitHub repository in Obtainium for updates. PocketOTP is not on Google Play. You will need to allow installation from that source.
- Open the app and complete the setup checklist. Required items must be on; the recommended ones (especially on Samsung phones) are what make the confirm screen appear when the app is in the background.
- In the console, generate a pairing QR code. In the app, choose Scan to pair and scan the code. The QR is single-use and expires after a few minutes. You can also paste the pairing link.
- In the console, create an MCP token. It is shown only once — store it like a password. Add the snippet for your assistant below.
- Ask your assistant: “Read the latest verification code from my phone.” If it ever needs to send a text, check your phone and long-press Allow — or refuse.
MCP setup
PocketOTP speaks Streamable HTTP MCP at the URL below. Create a separate token for each assistant, and revoke a token in the console if you stop using that tool. Sending SMS always requires a long-press of Allow on the phone.
The server exposes four tools: get_latest_code, send_sms, get_send_status, and list_sims.
Replace YOUR_TOKEN with the token from the console. It is shown only once.
Claude Code (terminal)
claude mcp add --transport http pocketotp https://relay.pocketotp.com/mcp \ --header "Authorization: Bearer YOUR_TOKEN"
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"pocketotp": {
"url": "https://relay.pocketotp.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
Codex (~/.codex/config.toml)
# ~/.codex/config.toml
[mcp_servers.pocketotp]
url = "https://relay.pocketotp.com/mcp"
http_headers = { Authorization = "Bearer YOUR_TOKEN" }
# Prefer an environment variable if you can:
# bearer_token_env_var = "POCKETOTP_TOKEN"
Other MCP clients (Streamable HTTP)
URL: https://relay.pocketotp.com/mcp Header: Authorization: Bearer YOUR_TOKEN Transport: Streamable HTTP (POST, JSON)
Try asking: “Read the latest verification code from my phone.”
Android permissions
The setup checklist in the app shows each item’s live status and, where possible, a button that opens the right system screen. Here is what each one is for.
Required
- SMS. Read newly received verification codes, and send a message after you confirm. The app is not meant to upload your SMS history or ordinary conversations.
- Phone state. Identify which SIM received a message and which SIM should send. This is required for dual SIM to work correctly.
- Notifications. Show that the app is connected, and alert you when a send is waiting for confirmation.
Recommended, especially on Samsung phones
- Full-screen reminders. Lets the confirm screen open as a full-screen reminder, so a send request is hard to miss.
- Unrestricted battery. Keeps the app connected in the background so it is not put to sleep mid-session.
- Display over other apps. On Samsung devices, this is usually required before a confirm screen can appear while you are in another app.
- Never-sleeping apps (Samsung). Add PocketOTP to Samsung’s “Never sleeping apps” (or the equivalent) so One UI does not kill the background connection.
If a confirm screen does not appear, open PocketOTP — a pending request is shown in the app — and check the two Samsung-related items above.
Verify the APK
Compare the APK you download with the SHA-256 checksum published on the GitHub Release, and with the official signing-certificate fingerprint below. Closed-testing or debug-signed builds use a different key — do not treat those as official releases.
On each GitHub Release we publish the SHA-256 checksum of the APK file. Check it before installing:
sha256sum pocketotp-x.y.z.apk # Compare with the checksum published on the Release page
Then check the signing certificate with apksigner. Do not use jarsigner, and do not rely on a v1-only (JAR) signature check. A release APK is verified with the v2/v3 schemes:
apksigner verify --verbose --print-certs pocketotp-x.y.z.apk # Confirm the APK verifies using v2/v3. Do not rely on v1 (JAR) signatures. # Then compare: Signer #1 certificate SHA-256 digest:
Official signing-certificate SHA-256 fingerprint:
7F:CA:5C:4E:36:08:17:1F:85:91:3E:C4:C8:A0:18:AF:94:C5:D9:64:2A:88:8D:F6:FF:CC:28:0E:88:C3:4D:DF
apksigner prints this digest in lowercase, often without colons. Compare case-insensitively, ignoring separators.
If the checksum or the fingerprint does not match, do not install the file. Obtainium can also follow the GitHub repository (once it is public) and apply the same artifacts.