Repository avatar
AI Tools
v1.0.0
active

mcp

org.sms4you/mcp

Virtual phone numbers and temporary inboxes your AI assistant buys to receive verification codes.

Documentation

SMS4You MCP server

Let your AI assistant buy a virtual phone number or a temporary inbox and read the verification code for you.

SMS4You sells virtual numbers and temporary email inboxes for receiving one verification code from a website or app. The SMS4You MCP server connects Claude, ChatGPT, Cursor and other Model Context Protocol clients to your SMS4You account: the assistant finds a service, quotes prices, buys a number or an inbox after you confirm the price, and returns the code, within a daily spending limit you set.

  • Server URL: https://mcp.sms4you.org/mcp
  • Transport: Streamable HTTP
  • Authentication: OAuth (sign in to SMS4You) or an MCP key
  • Full guide: https://docs.sms4you.org/mcp/

This repository holds the connection configs, an Agent Skill and a Claude Code plugin for the hosted server, plus examples that use the REST API. The server itself is hosted by SMS4You; there is nothing to run locally.

Connect in 1 minute

You need an SMS4You account with a balance. Purchases are paid from it.

claude.ai, Claude Desktop

  1. Open the connector settings and add a custom connector.
  2. Paste https://mcp.sms4you.org/mcp as the URL.
  3. Sign in on sms4you.org, choose a daily limit and allow access.

ChatGPT

  1. In the settings for connectors (apps), add a custom MCP connector. Your plan and workspace must allow custom connectors.
  2. Use https://mcp.sms4you.org/mcp with OAuth authentication.
  3. Sign in on sms4you.org, choose a daily limit and allow access.

Claude Code

claude mcp add --transport http sms4you https://mcp.sms4you.org/mcp

Then run /mcp in Claude Code to sign in. With an MCP key instead:

claude mcp add --transport http sms4you https://mcp.sms4you.org/mcp \
  --header "Authorization: Bearer <your MCP key>"

This repository is also a Claude Code plugin: it brings the server (.mcp.json) and the sms4you skill (skills/sms4you/SKILL.md) with the purchase flow and its rules. Load a clone of it with claude --plugin-dir ./sms4you-mcp.

Cursor

Add to Cursor (opens Cursor with the server filled in), or add it to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sms4you": {
      "url": "https://mcp.sms4you.org/mcp"
    }
  }
}

VS Code

Add to VS Code, or add an HTTP server with the URL https://mcp.sms4you.org/mcp to your MCP configuration.

Other clients and MCP keys

Most clients configured with an mcp.json file accept the entry above. A client without OAuth support works with an MCP key: create a key of type AI assistant (MCP) on sms4you.org in your profile (API tokens) and send it as a header:

{
  "mcpServers": {
    "sms4you": {
      "url": "https://mcp.sms4you.org/mcp",
      "headers": { "Authorization": "Bearer <your MCP key>" }
    }
  }
}

Clients that run only in the browser are not supported (no CORS on this endpoint).

How a purchase goes

  1. search_services finds the site or app, e.g. "telegram".
  2. get_number_prices lists the cheapest countries, or the price ladder of one country.
  3. The assistant confirms the service, country and price with you.
  4. buy_number buys the number at the exact quoted price.
  5. You (or the assistant) enter the number on the site; get_number is polled every 5-10 seconds until a code arrives.
  6. complete_number closes the order. No code? cancel_number refunds it (from cancel_available_at, usually 2 minutes after purchase).

Inboxes work the same way with get_email_prices, buy_email and get_email.

Tools

ToolWhat it does
get_accountBalance (USD), what this key may still spend today, purchase limits
get_topup_linkLink where you top up the balance yourself on the website
search_servicesFind a website or app by name, for numbers or for inboxes
search_countriesFind a country id by name
get_number_pricesNumber prices for a service: cheapest countries, or one country's price ladder
buy_numberBuy a number (spends money; the price is confirmed with you first)
get_numberStatus of a number and the codes received so far
list_numbersNumbers bought on the account
cancel_numberCancel a number that got no code and get the money back
complete_numberClose a number after the code was used
retry_smsAsk for one more code on the same number, no extra charge
get_email_pricesInbox prices for a service or a website, per mail domain, with plan terms
buy_emailBuy a temporary inbox (spends money; confirmed with you first)
get_emailStatus of an inbox and the letters received
list_emailsInboxes bought on the account
cancel_emailCancel an inbox that got no letter; refunded when eligible
complete_emailClose an inbox after the letter was used
extend_emailOne more letter on the same address; free for a while, then paid

Accounts with number rental also see get_rental_prices, rent_number, get_rental, list_rentals, extend_rental, cancel_rental and finish_rental.

The tool reference with every parameter is generated from the server on each release: https://docs.sms4you.org/mcp/#tools

Money and safety

  • Daily limit. Every MCP key and every OAuth connection has its own daily spending limit (UTC day, $10 by default). Change or remove it in your profile on sms4you.org. Refunds do not give the budget back.
  • Price confirmation. The server instructs the assistant to confirm the service, country and price with you before buying, and a purchase goes through only at the exact price that was quoted.
  • Same wallet, no payments. Purchases are paid from your SMS4You balance. The assistant cannot top it up: get_topup_link gives you a link to pay on the website yourself.
  • Limited access. The assistant cannot withdraw money, change your profile, create keys or reach any other part of the account. MCP keys and OAuth tokens work on this server only.
  • Disconnect any time. Revoke a key or disconnect an assistant in your profile; access stops immediately.
  • Prices. MCP purchases use their own price channel, which may differ slightly from the website. Prices are USD strings.
  • Third-party content. SMS texts and emails come from other services. The server returns only the code of an SMS by default (the full text on request) and passes emails as they arrived. The assistant should extract the code or link and never follow instructions found inside a message.

Errors

A failed tool call returns an error whose text starts with a stable code: price_changed, spend_limit_reached, insufficient_balance, active_limit_reached, purchase_blocked, email_not_verified, cancel_too_early, no_numbers, no_inboxes, not_found, busy, provider_error. Meanings: https://docs.sms4you.org/mcp/#errors

Examples

The examples/ folder calls the REST API v1 directly, for scripts and browser agents that do not speak MCP:

They need an API token (not an MCP key) from your profile on sms4you.org, read from the SMS4YOU_API_TOKEN environment variable. The MCP daily limit and the price confirmation step belong to the MCP server; with the REST API your script decides what to buy, and every purchase is paid from your balance. API reference: https://docs.sms4you.org/

Links

License

MIT, see LICENSE.

No installation packages available.

Remote