New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

sms8-mcp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sms8-mcp

MCP server for SMS + OTP. Twilio alternative for AI agents — let Claude Code, Cursor, Windsurf, and OpenCode send SMS, OTPs, and verification codes through your own Android phone. Free 5-day trial at sms8.io. No per-message fees, no markups, no A2P 10DLC.

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
27
-89.66%
Maintainers
1
Weekly downloads
 
Created
Source

sms8-mcp — SMS gateway MCP server for Claude Code, Cursor, Windsurf

npm version npm downloads MCP 2024-11-05 Node 18+ License: MIT

Plug SMS into any AI coding tool that speaks the Model Context Protocol. Your assistant can now send SMS, generate and verify OTPs, wait for incoming codes, list inbox messages, and configure webhooks — through your own Android phone rather than Twilio.

Add to any MCP client config and you're done:

{
  "mcpServers": {
    "sms8": {
      "command": "npx",
      "args": ["-y", "sms8-mcp"],
      "env": { "SMS8_API_KEY": "sk_xxx" }
    }
  }
}

What it does

Exposes 9 tools to your AI assistant:

ToolWhat it does
setup_sms8Validate the API key, return account context and code samples
send_smsSend one SMS to one phone number
send_otpGenerate and send a verification code
verify_otpCompare a typed code against the latest issued OTP
wait_for_otpBlock until an OTP arrives on the paired Android; extract the code
list_devicesList paired Android phones (model, primary flag, enabled)
get_messagesRecent inbox or sent items, filter by direction, limit, phone
get_balanceAccount credits + expiry + paired-device count
create_webhookRegister an inbound-SMS webhook URL

Why use this

  • Real SMS from your AI assistant — Claude / Cursor / Windsurf can text users without a Twilio account
  • OTP loops your AI can complete end-to-end — send_otp → wait_for_otp lets agents handle phone verification in tests, signups, password resets
  • No CPaaS fees — your own Android SIM is the sender; $29/month flat unlimited
  • No A2P 10DLC paperwork (US) — these are P2P messages from a real phone

Install

You don't have to install anything — npx -y sms8-mcp does it on demand inside the MCP config. The launcher is ~10 KB.

To install globally:

npm install -g sms8-mcp

Node 18 or newer.

Get an API key

Client config

Claude Code

~/.claude/config.json or per-project .mcp.json:

{
  "mcpServers": {
    "sms8": {
      "command": "npx",
      "args": ["-y", "sms8-mcp"],
      "env": { "SMS8_API_KEY": "sk_xxx" }
    }
  }
}

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "sms8": {
      "command": "npx",
      "args": ["-y", "sms8-mcp"],
      "env": { "SMS8_API_KEY": "sk_xxx" }
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "sms8": {
      "command": "npx",
      "args": ["-y", "sms8-mcp"],
      "env": { "SMS8_API_KEY": "sk_xxx" }
    }
  }
}

OpenCode

Add to opencode.json:

{
  "mcp": {
    "sms8": {
      "command": "npx",
      "args": ["-y", "sms8-mcp"],
      "env": { "SMS8_API_KEY": "sk_xxx" }
    }
  }
}

Claude.ai web (Custom Connector)

Connect directly to the hosted MCP — no local install needed. Add https://mcp.sms8.io as a connector in claude.ai → Settings → Connectors. Then ask: "Send SMS via SMS8 to +1234 saying Hi".

Example prompts to try

After adding the connector and restarting your client:

  • "Use sms8 to send +14155550100 'Test from Claude'"
  • "Send an OTP code to +14155550100, then wait until it arrives and tell me the code"
  • "Show me my SMS8 inbox from the last hour"
  • "Which Android devices are paired with my SMS8 account?"

How it works

  • Your AI client launches npx -y sms8-mcp over stdio
  • The launcher forwards JSON-RPC frames to the hosted MCP server at https://mcp.sms8.io, adding Authorization: Bearer <SMS8_API_KEY> to each call
  • The MCP server validates the key, runs the tool against your SMS8 account, and queues the SMS
  • Your paired Android phone polls SMS8, sends the SMS via its real SIM, and reports back
  • The result returns up the chain to your AI assistant

Round-trip is typically under 4 seconds.

Environment variables

VariableDefaultPurpose
SMS8_API_KEY(required)Your API key from app.sms8.io
SMS8_BASE_URLhttps://mcp.sms8.ioOverride server (rare; for self-hosted)

Want CLI instead?

If you want to call SMS8 from shell scripts, cron, CI without an AI loop, use the companion package sms8-cli:

npx sms8-cli send +14155550100 "Hi"
npx sms8-cli otp send +14155550100
CODE=$(npx sms8-cli otp wait +14155550100 --timeout=120)

License

MIT

Keywords

mcp

FAQs

Package last updated on 19 Sep 2026

Related posts