X402 Sms logo

X402 Sms

Paid MCP tool for sending consented transactional SMS to US numbers with USDC payments on Base Sepolia.

Install X402 Sms

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "x402-sms": {
      "command": "npx",
      "args": [
        "-y",
        "x402-sms-mcp"
      ],
      "env": {
        "BUYER_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "SMS_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env BUYER_PRIVATE_KEY=YOUR_VALUE_HERE --env SMS_URL=YOUR_VALUE_HERE --transport stdio x402-sms -- npx -y x402-sms-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y x402-sms-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The x402-sms MCP server lets AI agents send transactional SMS messages to US phone numbers through a seller endpoint backed by Twilio. Each send_sms call uses x402 to pay $0.03 USDC from a configured wallet, while the private key remains on the local machine. The current public beta runs on Base Sepolia, but delivery is paused until the seller's toll-free number completes Twilio verification. Use it for consented, non-promotional US messaging when wallet-based per-call payment is acceptable.

Use cases

  • Send consented completion notifications to a US phone
  • Notify a user when a long-running task finishes
  • Pay per SMS from an agent-controlled Base Sepolia wallet
  • Test x402 messaging flows without a Twilio account

Key features

  • Transactional SMS to US +1 numbers
  • $0.03 USDC per message
  • x402 wallet payment signing
  • Automatic STOP opt-out text
  • Twilio SID and settlement hash results
  • Structured delivery and payment errors

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

19/22 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · x402-sms-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads138Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How X402 Sms works

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:

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about X402 Sms

x402-sms is an MCP server that connects AI agents to a seller-operated SMS gateway using Twilio and x402 payments. Its main tool, send_sms, sends transactional messages to US +1 numbers after an opt-in attestation, charging $0.03 USDC from a configured Base Sepolia wallet while keeping the private key local.

Install it by adding an npx stdio entry for x402-sms-mcp to your MCP client configuration and setting BUYER_PRIVATE_KEY. The README provides configurations for Claude Desktop, Cursor, and Windsurf. Restart the client so the send_sms tool becomes available.

x402-sms currently requires a wallet on Base Sepolia with ETH for gas and USDC for payments. Fund the wallet from the listed testnet faucets, then provide its private key through BUYER_PRIVATE_KEY. The public beta charges $0.03 USDC per attempted message flow.

Delivery is currently gated while the seller's toll-free number waits for Twilio verification. During this period, the endpoint returns a 503 before the buyer wallet signs, so no USDC moves. After approval, the service is intended to deliver transactional SMS to eligible US numbers.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewX402 Sms AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/x402-sms?style=directory)](https://allmcps.com/mcp/x402-sms)
HTML Embed
<a href="https://allmcps.com/mcp/x402-sms"><img src="https://allmcps.com/api/badge/x402-sms?style=directory" alt="X402 Sms on AllMCPs" /></a>