# PocketOTP

> PocketOTP is an MCP server for developer tools. Lets AI assistants read SMS verification codes from your own Android phone. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** Android, API, CLI, Self-hosted
- **Website:** https://pocketotp.com/docs/
- **MCP Registry name:** com.pocketotp/pocketotp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

PocketOTP connects an AI assistant to an Android phone so it can pull one-time codes that arrive by text message. Instead of copying a code across devices, the assistant reads the newest matching message from the handset and returns it in the chat.

The phone runs a companion app that you pair with the web console by scanning a single-use QR code. Each assistant gets its own bearer token, which can be revoked from the console. The server exposes tools to wait for a new code, fetch the latest one, list SIM slots, and send an SMS; any outgoing text must be approved with a long-press on the phone.

It suits developers and testers who run sign-up or login flows that need a phone-based code, and anyone who regularly signs in to services from a desktop AI client. Setup works with Claude Code, Claude Desktop, Cursor, VS Code with Copilot, Codex, Windsurf, Cline, and other Streamable HTTP clients.

## Features

- **Latest code retrieval:** Fetches the most recent verification code received on the paired Android phone.
- **Wait for new codes:** Blocks for up to 60 seconds for a fresh code, filtered by sender, SIM, or time.
- **Confirmed outgoing SMS:** Sends a text only after the user long-presses Allow on the phone.
- **Dual SIM support:** Selects the receiving or sending SIM by slot number, carrier name, or last four digits.
- **Per-assistant tokens:** Issues a separate bearer token for each AI client and allows revocation in the console.
- **Signed APK verification:** Publishes SHA-256 checksums and a signing-certificate fingerprint for checking the Android build.

## Good for

- Letting an AI coding assistant complete a phone-verified sign-up during testing
- Retrieving a login code without switching devices while working on a desktop
- Automating repeated SMS-based logins for personal accounts
- Checking which SIM received a verification message on a dual-SIM phone

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http pocketotp https://relay.pocketotp.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "type": "http",
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://relay.pocketotp.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "type": "http",
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://relay.pocketotp.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pocketotp --url https://relay.pocketotp.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pocketotp]
url = "https://relay.pocketotp.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "httpUrl": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http pocketotp https://relay.pocketotp.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "serverUrl": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "url": "https://relay.pocketotp.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "type": "streamableHttp",
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pocketotp": {
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pocketotp": {
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pocketotp": {
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://relay.pocketotp.com/mcp
```

Enter a Name (for example "PocketOTP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pocketotp": {
      "type": "http",
      "url": "https://relay.pocketotp.com/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools changes data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `wait_for_code`: Waits for a new matching verification code, up to 60 seconds.
- `get_latest_code` (name suggests: reads): Returns the most recent verification code on the phone.
- `send_sms` (name suggests: changes): Sends an SMS after the user confirms on the phone.
- `get_send_status` (name suggests: reads): Reports the status of a pending or completed send.
- `list_sims` (name suggests: reads): Lists the SIM slots available on the phone.

## FAQ

### Is PocketOTP available on Google Play?

No. The Android app is installed from GitHub Releases as an APK, or followed through Obtainium.

### How does the assistant connect to my phone?

You pair the Android app with the web console using a single-use QR code, then add an MCP token and URL to your assistant's configuration.

### Can the assistant send texts without my approval?

No. Sending SMS always requires a long-press of Allow on the phone.

### Why do some Samsung settings matter?

On Samsung phones, display over other apps and never-sleeping app settings are usually needed for the confirm screen to appear while you use other apps.

### How do I add PocketOTP to Claude Code?

Run this command in your terminal: claude mcp add --transport http pocketotp https://relay.pocketotp.com/mcp

### What are the best alternatives to PocketOTP?

The closest alternatives to PocketOTP are Platfone, Phonekit, Homing Pigeon, CodeDroid and OpenInbox.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Platfone](https://ai-powered.com/mcp/platfone): Platfone is a paid MCP server for developer tools.
- [Phonekit](https://ai-powered.com/mcp/phonekit): Phonekit is a paid MCP server for developer tools.
- [Homing Pigeon](https://ai-powered.com/mcp/homing-pigeon): Homing Pigeon is a freemium MCP server for communication.
- [CodeDroid](https://ai-powered.com/mcp/codedroid): CodeDroid is an MCP server for developer tools.
- [OpenInbox](https://ai-powered.com/mcp/openinbox): OpenInbox is a freemium MCP server for developer tools.
- [Robase SMS](https://ai-powered.com/mcp/robase-sms): Robase SMS is a paid MCP server for communication.
- [NexusAndroid](https://ai-powered.com/mcp/nexusandroid): NexusAndroid is an open-source MCP server for productivity.
- [Dead Simple Email](https://ai-powered.com/mcp/dead-simple-email): Dead Simple Email is a freemium MCP server for communication.

---
Source: https://ai-powered.com/mcp/pocketotp
