
X402 Sms
io.github.UltraStarzPublished by GitHub account UltraStarzv0.1.0Updated Oct 24, 2026
Pay-per-call MCP server. $0.03 USDC sends one transactional SMS to a US phone number via x402.
Overview
Lets an assistant send transactional SMS to US phone numbers, paying a per-message USDC fee from a configured wallet.
- What you can do
- Exposes a send_sms tool that dispatches a transactional SMS to a US (+1 E.164) number through a third-party seller's toll-free number. Each call costs $0.03 USDC, signed automatically from the configured buyer wallet via x402, and the tool returns a Twilio SID plus an on-chain settlement hash. The server appends opt-out language when the message body lacks it, and surfaces distinct error shapes for pending approval, rate limits, and Twilio rejections.
- When to use it
- Useful when an assistant needs to notify a consenting US recipient by text, for example alerting someone that a long-running task finished. It suits one-off transactional notifications rather than marketing, bulk, or non-US messaging.
- Requirements
- Runs locally via npx (Node.js) as a stdio MCP server, desktop client only. Requires BUYER_PRIVATE_KEY, an Ethereum private key for a wallet funded on Base Sepolia with a little ETH for gas and USDC for payments. SMS_URL is optional and defaults to the seller's public endpoint. Network access is needed.
Installation
In SourceWeft
- Open X402 Sms in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
x402-sms-mcp
A paid MCP server that lets AI agents send SMS messages to US phone numbers.
Each send_sms tool call:
- Sends a transactional SMS via the seller's toll-free number (Twilio verification in progress)
- Auto-appends
Reply STOP to opt outif the body doesn't include opt-out language - Costs $0.03 USDC per message, paid automatically from the configured wallet via x402
No API keys. No Twilio account. The agent pays the toll, the message goes out.
Status (2026-05-22): Public beta on Base Sepolia (testnet). The seller's toll-free number is undergoing Twilio TFV approval (submitted 2026-05-14, still in queue). During this window
/sendcalls short-circuit to a503 delivery_pending_tfv_approvalresponse before the buyer wallet signs anything, so no USDC is moved. The day Twilio approves the number, delivery flips on; pricing flips to Base mainnet shortly after.
Install in Claude Desktop / Cursor / Windsurf
Add this to your MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Restart your MCP client. A send_sms tool will appear.
What you need
A wallet on Base Sepolia (testnet) funded with:
- A small amount of ETH for gas (free from https://www.coinbase.com/faucets/base-ethereum-sepolia-faucet)
- USDC for payments (free from https://faucet.circle.com, select Base Sepolia)
Generate a throwaway key:
Use the printed address to claim from faucets, then put the printed key into your MCP config.
Try it
In Claude Desktop, ask:
Text my cell at +15551234567 when this long-running task finishes. The recipient (me) consents to receive this message.
Claude will call send_sms with opt_in_attestation: true. You'll get back a Twilio SID + the on-chain settlement hash. The transfer is visible at https://sepolia.basescan.org.
Compliance — please read
This MCP wraps a regulated SMS gateway. The operator (you) is responsible for ensuring every recipient has consented to receive messages before invoking send_sms. The opt_in_attestation: true argument is your legal attestation under TCPA and CTIA short-code/long-code rules.
Do NOT use this MCP to:
- Send marketing or promotional content
- Text strangers, scraped lists, or anyone who hasn't opted in
- Send to non-US numbers (the seller currently rejects non-
+1E.164) - Send anything related to S.H.A.F.T.-C (Sex, Hate, Alcohol, Firearms, Tobacco, Cannabis)
The seller-side automatically:
- Appends
Reply STOP to opt outto every message - Honors carrier-level STOP/HELP keyword handling
- Logs each send for audit purposes
If you have any doubt about consent, do not call this tool.
Configuration
To point the MCP server at your own seller deployment, override SMS_URL.
Errors you might see
The MCP surfaces three distinct error shapes so the model can explain what happened to the user and decide whether to retry.
For the full mapping of Twilio error codes the MCP recognizes, see TWILIO_HINTS in src/index.ts.
How it works
The MCP server doesn't talk to Twilio directly. It signs an x402 payment with the buyer's wallet, sends the payment + message details to the seller endpoint, and the seller's toll-free number dispatches the SMS. Your private key never leaves your machine. The seller never sees it.
Roadmap
- Now (2026-05-22): Base Sepolia testnet, TFV pending. Payment flow verified end-to-end; deliveries gated on Twilio approval.
- Once TFV clears: Real US SMS delivery, testnet pricing held while we collect early traffic.
- A few weeks out: A2P 10DLC Brand approval → higher per-day throughput tier.
- Mainnet flip: Production launch, USDC settles on Base mainnet; Solana facilitator on roadmap after.
License
MIT
Source: README.md at commit 61115a4
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.