[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116232":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":40,"updatedAt":41,"readmeContent":42,"aiSummary":43,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":44,"discoverSource":45},116232,"otpkit","SecFathy\u002Fotpkit","SecFathy","MCP server for temporary email & SMS — receive OTPs, verification links, and confirmation codes. Zero API keys required.",null,"Python",81,6,59,1,0,2,20,16,58.54,"MIT License",false,"main",true,[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"ai-tools","claude","claude-code","cursor","disposable-email","email-api","mcp","mcp-server","model-context-protocol","otp","python","sms-api","temp-email","temp-sms","verification","2026-11-17 15:02:10","2026-11-23 12:05:39","\u003Cp align=\"center\">\n  \u003Cimg src=\"banner.png\" alt=\"otpKit — MCP server for temporary email and SMS\" width=\"100%\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">otpkit\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\nAn MCP server that creates disposable email addresses and phone numbers, checks their inboxes, and automatically extracts OTP codes and verification links from incoming messages.\n\u003C\u002Fp>\n\n**Zero API keys required** — every email provider and the free SMS source work without authentication.\n\n---\n\n## Table of Contents\n\n- [How It Works](#how-it-works)\n- [Providers](#providers)\n- [Installation](#installation)\n- [Setup](#setup)\n- [Tools Reference](#tools-reference)\n- [Usage Examples](#usage-examples)\n- [Architecture](#architecture)\n- [Troubleshooting](#troubleshooting)\n- [License](#license)\n\n---\n\n## How It Works\n\notpkit runs as an [MCP (Model Context Protocol)](https:\u002F\u002Fmodelcontextprotocol.io) server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, or your own agent — can call its tools to:\n\n1. **Create** a temporary email address or get a free public phone number\n2. **Wait** for an incoming message (email or SMS)\n3. **Receive** the message with OTP codes and verification links already extracted\n\n```\nAgent                          otpkit                         Provider\n  │                              │                              │\n  ├─ create_temp_email() ───────►│                              │\n  │◄─ {\"address\": \"x@grab...\"}──┤                              │\n  │                              │                              │\n  │   [uses address to sign up on a website]                    │\n  │                              │                              │\n  ├─ wait_for_email() ──────────►│──── poll every 5s ──────────►│\n  │                              │◄─── new message ─────────────┤\n  │                              │                              │\n  │                              │  extract OTPs + links        │\n  │                              │                              │\n  │◄─ {\"otps\": [\"847291\"]} ─────┤                              │\n  │                              │                              │\n  │   [enters OTP on the website]                               │\n```\n\nAll extraction happens automatically — every message is scanned for:\n- **OTP codes**: 4–8 digit numbers (e.g. `847291`, `1234`, `98765432`)\n- **Verification links**: URLs containing keywords like `verify`, `confirm`, `activate`, `token`, `reset`, `login` — ranked first in results\n\n---\n\n## Providers\n\n### Email (all free, no API key)\n\n| Provider | Domain(s) | Privacy | Expiry | Method |\n|---|---|---|---|---|\n| `grabmail` | grabmail.io, mixozia.com, linqmail.com | Private | None | REST |\n| `catchmail` | catchmail.io | Private | None | REST |\n| `guerrillamail` | guerrillamailblock.com + others | Private | ~1 hour | REST |\n| `maildrop` | maildrop.cc | **Public** | None | GraphQL |\n\n**Choosing a provider:**\n- **grabmail** (default) — best all-round choice. Three domains, no expiry, clean REST API, works worldwide.\n- **catchmail** — same quality as grabmail, different domain. Good as a backup.\n- **guerrillamail** — private with session-based auth. Addresses expire after ~1 hour.\n- **maildrop** — anyone can read any inbox. Use only for non-sensitive tests.\n\n### SMS — Free (no auth)\n\n| Source | Site | Type |\n|---|---|---|\n| receive-sms-free.cc | [receive-sms-free.cc](https:\u002F\u002Freceive-sms-free.cc) | Public shared numbers |\n\n> **Warning:** Free SMS numbers are publicly shared — anyone can see the messages. Never use them for real accounts or sensitive services.\n\n### SMS — Paid (optional, private numbers)\n\n| Provider | Env Variable | Site |\n|---|---|---|\n| `5sim` | `FIVESIM_API_KEY` | [5sim.net](https:\u002F\u002F5sim.net) |\n| `smspool` | `SMSPOOL_API_KEY` | [smspool.net](https:\u002F\u002Fsmspool.net) |\n\nPaid providers give you a **private** temporary number that only you can read. Set the API key as an environment variable to enable them.\n\n---\n\n## Installation\n\n### No install needed (recommended)\n\nUse `uvx` to run directly from the repo — nothing to install:\n\n```bash\nuvx otpkit\n```\n\n> `uvx` fetches and runs the package in an isolated environment. If you don't have `uv`, install it: `pip install uv`\n\n### From GitHub\n\n```bash\npip install git+https:\u002F\u002Fgithub.com\u002Fsecfathy\u002Fotpkit.git\n```\n\n### From source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fsecfathy\u002Fotpkit.git\ncd otpkit\npip install -e .\n```\n\n### Verify installation\n\n```bash\notpkit\n# Server starts on stdio — press Ctrl+C to stop\n```\n\n---\n\n## Setup\n\n### Claude Code (CLI)\n\n**Quickest — install and register in one command (no clone needed):**\n\n```bash\nclaude mcp add otpkit -- uvx otpkit\n```\n\nOr if you installed via pip:\n\n```bash\nclaude mcp add otpkit -- otpkit\n```\n\nOr using the Python module directly:\n\n```bash\nclaude mcp add otpkit -- python -m src.server\n```\n\nTo verify it's registered:\n\n```bash\nclaude mcp list\n```\n\nNow in any Claude Code session you can say:\n> \"Create a temp email and wait for the verification code\"\n\nClaude will call `create_temp_email`, `wait_for_email`, and return the OTP automatically.\n\n### Claude Desktop (macOS \u002F Windows)\n\n1. Open Claude Desktop settings\n2. Go to **Developer** → **Edit Config**\n3. Add otpkit to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"otpkit\": {\n      \"command\": \"uvx\",\n      \"args\": [\"otpkit\"]\n    }\n  }\n}\n```\n\n4. Restart Claude Desktop\n\nThe otpkit tools now appear in Claude's tool list (hammer icon).\n\n### Claude Desktop with paid SMS\n\n```json\n{\n  \"mcpServers\": {\n    \"otpkit\": {\n      \"command\": \"uvx\",\n      \"args\": [\"otpkit\"],\n      \"env\": {\n        \"FIVESIM_API_KEY\": \"your-key-here\",\n        \"SMSPOOL_API_KEY\": \"your-key-here\"\n      }\n    }\n  }\n}\n```\n\n### Cursor\n\nAdd to `.cursor\u002Fmcp.json` in your project root (or global `~\u002F.cursor\u002Fmcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"otpkit\": {\n      \"command\": \"uvx\",\n      \"args\": [\"otpkit\"]\n    }\n  }\n}\n```\n\nRestart Cursor. The tools appear in Cursor's MCP panel.\n\n### Windsurf\n\nAdd to `~\u002F.codeium\u002Fwindsurf\u002Fmcp_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"otpkit\": {\n      \"command\": \"uvx\",\n      \"args\": [\"otpkit\"]\n    }\n  }\n}\n```\n\n### Cline (VS Code)\n\n1. Open VS Code → Cline sidebar → **MCP Servers**\n2. Click **Edit MCP Settings**\n3. Add:\n\n```json\n{\n  \"mcpServers\": {\n    \"otpkit\": {\n      \"command\": \"uvx\",\n      \"args\": [\"otpkit\"]\n    }\n  }\n}\n```\n\n### Continue (VS Code \u002F JetBrains)\n\nAdd to `~\u002F.continue\u002Fconfig.yaml`:\n\n```yaml\nmcpServers:\n  - name: otpkit\n    command: otpkit\n```\n\n### Zed\n\nAdd to Zed settings (`settings.json`):\n\n```json\n{\n  \"context_servers\": {\n    \"otpkit\": {\n      \"command\": {\n        \"path\": \"otpkit\"\n      }\n    }\n  }\n}\n```\n\n### OpenAI Agents SDK\n\n```python\nfrom openai_agents import Agent, MCPServerStdio\n\notpkit = MCPServerStdio(command=\"otpkit\")\n\nagent = Agent(\n    name=\"signup-agent\",\n    instructions=\"Use otpkit to create temp emails and extract OTPs.\",\n    mcp_servers=[otpkit],\n)\n```\n\n### Claude API (Anthropic SDK) with MCP\n\n```python\nimport anthropic\nfrom anthropic.types import MCPServerStdio\n\nclient = anthropic.Anthropic()\n\nserver = MCPServerStdio(command=\"otpkit\")\n\n# Use with tool_use in Messages API\n# The server exposes 11 tools that Claude can call\n```\n\n### Any MCP Client (Generic)\n\notpkit uses **stdio transport** — it reads JSON-RPC from stdin and writes to stdout. Any MCP-compatible client can use it:\n\n```bash\n# Command to run:\notpkit\n\n# Or with Python directly:\npython -m src.server\n```\n\nThe server exposes 11 tools. Use your client's MCP configuration to point at the `otpkit` command.\n\n### Smithery Registry\n\nIf you use the [Smithery](https:\u002F\u002Fsmithery.ai) MCP registry:\n\n```bash\nnpx @smithery\u002Fcli install otpkit --client claude\n```\n\n---\n\n## Tools Reference\n\n### Email Tools\n\n#### `create_temp_email`\n\nCreate a disposable email address.\n\n| Parameter | Type | Default | Description |\n|---|---|---|---|\n| `provider` | string | `\"grabmail\"` | `grabmail` \\| `catchmail` \\| `guerrillamail` \\| `maildrop` |\n| `username` | string | random | Custom username prefix (e.g. `\"john\"` → `john@grabmail.io`) |\n\n**Returns:**\n```json\n{\n  \"address\": \"tmp1234567@grabmail.io\",\n  \"provider\": \"grabmail\",\n  \"domains\": [\"grabmail.io\", \"mixozia.com\", \"linqmail.com\"]\n}\n```\n\n#### `check_email`\n\nCheck inbox for new messages. Every message is automatically enriched with extracted OTPs and links.\n\n| Parameter | Type | Description |\n|---|---|---|\n| `address` | string | Email address created with `create_temp_email` |\n\n**Returns:**\n```json\n{\n  \"address\": \"tmp1234567@grabmail.io\",\n  \"provider\": \"grabmail\",\n  \"count\": 1,\n  \"messages\": [\n    {\n      \"id\": \"abc123\",\n      \"from\": \"noreply@example.com\",\n      \"subject\": \"Verify your email\",\n      \"body\": \"Your verification code is 847291\",\n      \"otps\": [\"847291\"],\n      \"links\": [\"https:\u002F\u002Fexample.com\u002Fverify?token=xyz\"]\n    }\n  ]\n}\n```\n\n#### `wait_for_email`\n\nBlock until a new email arrives or timeout. Polls automatically.\n\n| Parameter | Type | Default | Description |\n|---|---|---|---|\n| `address` | string | — | Email address to watch |\n| `timeout` | int | `60` | Max seconds to wait (max 120) |\n| `poll_interval` | int | `5` | Seconds between polls (min 3) |\n\n**Returns** (on success):\n```json\n{\n  \"status\": \"received\",\n  \"waited_seconds\": 12,\n  \"from\": \"noreply@example.com\",\n  \"subject\": \"Verify your email\",\n  \"body\": \"Your code is 847291\",\n  \"otps\": [\"847291\"],\n  \"links\": [\"https:\u002F\u002Fexample.com\u002Fverify?token=xyz\"]\n}\n```\n\n**Returns** (on timeout):\n```json\n{\n  \"status\": \"timeout\",\n  \"waited_seconds\": 60\n}\n```\n\n#### `list_temp_emails`\n\nList all email addresses created in this session.\n\n**Returns:**\n```json\n[\n  {\n    \"address\": \"tmp1234567@grabmail.io\",\n    \"provider\": \"grabmail\",\n    \"age_seconds\": 45\n  }\n]\n```\n\n### SMS Tools — Free\n\n#### `list_free_sms_numbers`\n\nList available public phone numbers for receiving SMS. No parameters needed.\n\n**Returns:**\n```json\n{\n  \"source\": \"receive-sms-free.cc\",\n  \"count\": 24,\n  \"numbers\": [\n    {\"phone\": \"12543207594\", \"country\": \"USA\"},\n    {\"phone\": \"447700900000\", \"country\": \"UK\"}\n  ],\n  \"warning\": \"Public shared numbers — anyone can read messages\"\n}\n```\n\n#### `read_free_sms`\n\nRead recent SMS messages on a public number. Each message is scanned for OTP codes.\n\n| Parameter | Type | Description |\n|---|---|---|\n| `phone` | string | Phone number from `list_free_sms_numbers` |\n\n**Returns:**\n```json\n{\n  \"phone\": \"12543207594\",\n  \"source\": \"receive-sms-free.cc\",\n  \"count\": 20,\n  \"messages\": [\n    {\n      \"from\": \"19543583114\",\n      \"text\": \"Your Uber code is 4829\",\n      \"date\": \"2 min ago\",\n      \"otps\": [\"4829\"]\n    }\n  ]\n}\n```\n\n#### `wait_for_sms`\n\nPoll until a new SMS arrives on a free public number or timeout.\n\n| Parameter | Type | Default | Description |\n|---|---|---|---|\n| `phone` | string | — | Phone number to watch |\n| `timeout` | int | `120` | Max seconds to wait (max 300) |\n| `poll_interval` | int | `10` | Seconds between polls (min 5) |\n\n### SMS Tools — Paid\n\n#### `get_sms_providers`\n\nList all SMS providers and whether they are configured.\n\n**Returns:**\n```json\n[\n  {\"name\": \"receive-sms-free\", \"type\": \"free\", \"auth\": \"none\", \"ready\": true},\n  {\"name\": \"5sim\", \"type\": \"paid\", \"env_var\": \"FIVESIM_API_KEY\", \"ready\": false},\n  {\"name\": \"smspool\", \"type\": \"paid\", \"env_var\": \"SMSPOOL_API_KEY\", \"ready\": false}\n]\n```\n\n#### `buy_temp_number`\n\nBuy a private temporary phone number.\n\n| Parameter | Type | Default | Description |\n|---|---|---|---|\n| `country` | string | — | Country code: `\"russia\"`, `\"usa\"`, `\"india\"`, etc. |\n| `service` | string | — | Target service: `\"telegram\"`, `\"whatsapp\"`, `\"google\"`, `\"any\"` |\n| `provider` | string | `\"5sim\"` | `5sim` \\| `smspool` |\n\n#### `check_paid_sms`\n\nCheck if an SMS arrived on a paid number.\n\n| Parameter | Type | Description |\n|---|---|---|\n| `order_id` | string | Order ID from `buy_temp_number` |\n\n### Utility\n\n#### `extract_otp_from_text`\n\nExtract OTP codes and verification links from any text. Useful for processing messages from other sources.\n\n| Parameter | Type | Description |\n|---|---|---|\n| `text` | string | Any text to scan |\n\n**Returns:**\n```json\n{\n  \"otps\": [\"847291\"],\n  \"links\": [\"https:\u002F\u002Fexample.com\u002Fverify?token=abc123\"]\n}\n```\n\n---\n\n## Usage Examples\n\n### Sign up for a website\n\n```\nYou: Create a temp email, sign up on example.com, and get the verification code\n\nAgent:\n1. create_temp_email(provider=\"grabmail\")\n   → {\"address\": \"tmp1794926042@grabmail.io\"}\n\n2. [fills registration form with that email]\n\n3. wait_for_email(address=\"tmp1794926042@grabmail.io\", timeout=60)\n   → {\n       \"status\": \"received\",\n       \"otps\": [\"847291\"],\n       \"links\": [\"https:\u002F\u002Fexample.com\u002Fverify?token=abc123def\"]\n     }\n\n4. [enters OTP 847291 on the website]\n```\n\n### Get an SMS verification code\n\n```\nYou: Get a phone number and wait for the Telegram verification code\n\nAgent:\n1. list_free_sms_numbers()\n   → {\"count\": 24, \"numbers\": [{\"phone\": \"12543207594\", \"country\": \"USA\"}, ...]}\n\n2. [uses 12543207594 as the phone number on Telegram]\n\n3. wait_for_sms(phone=\"12543207594\", timeout=120)\n   → {\n       \"status\": \"received\",\n       \"text\": \"Telegram code: 48291\",\n       \"otps\": [\"48291\"]\n     }\n```\n\n### Use a custom email username\n\n```\nYou: Create a temp email with username \"john.doe\"\n\nAgent:\n1. create_temp_email(provider=\"grabmail\", username=\"john.doe\")\n   → {\"address\": \"john.doe@grabmail.io\"}\n```\n\n### Extract OTP from arbitrary text\n\n```\nYou: What's the OTP in \"Your verification code is 482917. It expires in 10 minutes.\"\n\nAgent:\n1. extract_otp_from_text(text=\"Your verification code is 482917. It expires in 10 minutes.\")\n   → {\"otps\": [\"482917\"], \"links\": []}\n```\n\n### Private SMS with paid provider\n\n```\nYou: Buy a private US number for WhatsApp verification\n\nAgent:\n1. get_sms_providers()\n   → [... {\"name\": \"5sim\", \"ready\": true} ...]\n\n2. buy_temp_number(country=\"usa\", service=\"whatsapp\", provider=\"5sim\")\n   → {\"order_id\": \"12345\", \"phone\": \"+12025551234\"}\n\n3. [uses +12025551234 on WhatsApp]\n\n4. check_paid_sms(order_id=\"12345\")\n   → {\"status\": \"RECEIVED\", \"otps\": [\"583921\"]}\n```\n\n---\n\n## Architecture\n\n```\notpkit (MCP Server)\n├── Email Backends\n│   ├── grabmail.io    ─── REST API, no auth\n│   ├── catchmail.io   ─── REST API, no auth\n│   ├── guerrillamail  ─── REST API, session-based\n│   └── maildrop.cc    ─── GraphQL, no auth\n├── SMS Backends\n│   ├── receive-sms-free.cc  ─── HTML scraper, no auth\n│   ├── 5sim.net             ─── REST API, API key (optional)\n│   └── smspool.net          ─── REST API, API key (optional)\n├── Extraction Engine\n│   ├── OTP regex: 4-8 digit codes\n│   └── Link scorer: verification keywords ranked first\n└── MCP Transport: stdio\n```\n\n- **Python 3.10+** with async\u002Fawait throughout\n- **httpx** for all HTTP requests (async, connection pooling)\n- **mcp** SDK — compatible with both v1 (`FastMCP`) and v2 (`MCPServer`)\n- **No database** — session state is in-memory only\n- **No dependencies** beyond `mcp` and `httpx`\n\n---\n\n## Troubleshooting\n\n### \"Unknown address\" error\n\nYou must create an address with `create_temp_email` before checking it. Addresses only exist for the current session.\n\n### No messages showing up\n\n- **grabmail \u002F catchmail**: Addresses are instant — if no messages appear, the sender hasn't delivered yet. Try `wait_for_email` with a longer timeout.\n- **guerrillamail**: Addresses expire after ~1 hour. Create a new one if expired.\n- **maildrop**: Public inbox — if someone else is using the same username, you'll see their messages too.\n\n### SMS numbers return 0 messages\n\nFree SMS numbers are scraped from a public site. If the site layout changes or the number has no recent messages, results may be empty. Try a different number from `list_free_sms_numbers`.\n\n### Paid SMS \"API key not set\"\n\nSet the environment variable before starting otpkit:\n\n```bash\nexport FIVESIM_API_KEY=\"your-key\"\notpkit\n```\n\nOr pass it through your MCP client config (see [Setup](#setup)).\n\n### MCP import error\n\notpkit supports both MCP v1 and v2. If you see an import error, update the `mcp` package:\n\n```bash\npip install --upgrade mcp\n```\n\n---\n\n## Requirements\n\n- Python 3.10+\n- [`mcp`](https:\u002F\u002Fpypi.org\u002Fproject\u002Fmcp\u002F) >= 1.0.0\n- [`httpx`](https:\u002F\u002Fpypi.org\u002Fproject\u002Fhttpx\u002F) >= 0.27.0\n\n---\n\n## License\n\nMIT\n","otpkit 是一个基于 Model Context Protocol（MCP）标准的轻量级服务，用于自动化接收和解析一次性验证码（OTP）、验证链接及确认码。它无需 API 密钥即可集成多个免费临时邮箱（如 grabmail、guerrillamail）和公共短信源，支持创建临时邮箱\u002F号码、轮询收件箱、并自动提取 4–8 位数字 OTP 及含 verify\u002Fconfirm\u002Ftoken 等关键词的验证 URL。核心特点是零配置依赖、端到端自动解析、原生 MCP 工具接口，适用于 AI 编程助手（如 Claude Code、Cursor）驱动的自动化注册、账号验证与测试场景。","2026-11-24 04:53:14","CREATED_QUERY"]