# x402-sms [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/UltraStarz/x402-sms-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 138  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/x402-sms

## Description
Pay-per-call MCP server. $0.03 USDC sends one transactional SMS to a US phone number via x402.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "x402-sms": {
    "command": "npx",
    "args": ["-y","x402-sms-mcp"],
    "env": {
      "BUYER_PRIVATE_KEY": "",
      "SMS_URL": ""
    }
  }
}
```

**Requires environment variables:** `BUYER_PRIVATE_KEY`, `SMS_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What x402-sms does

The x402-sms MCP server exposes one agent-facing operation, `send_sms`, for sending transactional text messages to US phone numbers. The local MCP package does not connect to Twilio itself. Instead, it submits the recipient, message, consent attestation, and an x402 payment to a seller-operated endpoint. That service uses its toll-free number and Twilio to attempt delivery.

Each successful request costs $0.03 USDC. The payment is made from the wallet configured on the buyer's machine, and the result can include both a Twilio message identifier and an on-chain settlement hash. The seller automatically adds `Reply STOP to opt out` when the body lacks opt-out wording and supports carrier-level STOP and HELP handling.

## How it works

An MCP client such as Claude Desktop calls `send_sms` through the locally installed package. The package signs an x402 payment with `BUYER_PRIVATE_KEY` and sends the payment and SMS data to the configured seller URL. The private key stays local; it is not sent to the seller. The seller processes the payment request and asks Twilio to dispatch the message.

The public beta currently uses Base Sepolia. A wallet needs testnet ETH for gas and Base Sepolia USDC for message payments. The seller's toll-free number is undergoing Twilio verification, so requests can currently return a pre-launch `503` before the wallet signs and no funds move. Once delivery is available, Twilio-side failures may occur after payment is attempted.

## Setup and configuration

Install the package through `npx` in an MCP client's stdio configuration:

```json
{
  "mcpServers": {
    "x402-sms": {
      "command": "npx",
      "args": ["-y", "x402-sms-mcp"],
      "env": {
        "BUYER_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
      }
    }
  }
}
```

Set `BUYER_PRIVATE_KEY` to a wallet private key funded with Base Sepolia ETH and USDC. The optional `SMS_URL` variable changes the seller endpoint from the published default and can point to another seller deployment. Restart the MCP client after adding the configuration.

## Tools and capabilities

- Send one transactional SMS to a `+1` US E.164 number with `send_sms`.
- Attach `opt_in_attestation: true` to attest that the recipient consented.
- Pay per request with USDC through x402.
- Return delivery or payment-related details, including a Twilio SID and settlement hash when available.
- Surface distinct guidance for service unavailability, buyer-wallet rate limits, and Twilio rejection codes.

## Limitations and notes

The x402-sms MCP server is intended only for recipients who have opted in. The operator is responsible for TCPA and CTIA compliance. Do not use it for marketing, promotional messages, unsolicited texts, scraped contact lists, or non-US numbers. The seller currently rejects numbers that are not in the `+1` format and blocks content related to S.H.A.F.T.-C categories.

The seller logs sends for audit purposes. A wallet rate-limit response does not take payment and includes retry timing. A Twilio rejection, such as an invalid or opted-out number, can happen after the send was attempted and may still incur payment. The current deployment is a Base Sepolia beta; the roadmap describes a later Base mainnet launch and possible Solana support, but those are not current capabilities.

_Full upstream README: https://allmcps.com/mcp/x402-sms/readme_

