SMS8 MCP documentation
Checking the server
SMS8 MCP connects AI tools to your SMS8 account. Your assistant can send SMS, MMS and iMessage, send and check login codes, read replies and set up webhooks. Every message leaves from a phone you own.
You need: an SMS8 account, an Android phone paired with the SMS8 app (or a Mac with SMS8 Gateway for iMessage), and an AI tool that supports MCP. The server lives at https://mcp.sms8.io/mcp.
Quickstart
- Create your account and pair an Android phone from the Devices page.
- Add the server to your AI tool. In Claude Code:
claude mcp add --transport http sms8 https://mcp.sms8.io/mcp- Type
/mcp, pick sms8 and sign in. Then ask: "Text my own number: SMS8 is connected."
Sign in and API keys
There are two ways to connect. Both give the same tools.
- Sign in (OAuth). Claude and Claude Code open an SMS8 sign-in window and connect on their own. Nothing to paste.
- API key. Other tools send your key in a header:
Authorization: Bearer YOUR_SMS8_API_KEY. Copy the key from the API page of your dashboard.
Install
Pick your tool. The server address is always https://mcp.sms8.io/mcp.
Step-by-step pages: Claude, ChatGPT, Grok, Gemini CLI, Cursor, OpenCode, OpenClaw.
Claude
- In Claude (web or desktop), open Settings, then Connectors.
- Choose Add custom connector, name it SMS8 and paste the URL.
- Click Connect, sign in to SMS8 and approve. No API key to copy.
https://mcp.sms8.io/mcpClaude Code
- Run the command in your terminal.
- In Claude Code, type
/mcp, pick sms8 and sign in to SMS8. - Ask it to list my SMS8 devices. Prefer an API key? See the full guide.
claude mcp add --transport http sms8 https://mcp.sms8.io/mcpTo use an API key instead of signing in, add the header:
claude mcp add --transport http sms8 https://mcp.sms8.io/mcp --header "Authorization: Bearer YOUR_SMS8_API_KEY"ChatGPT
- In ChatGPT settings, open the connectors page, then Advanced, and turn on developer mode.
- Create a connector named SMS8 with this URL and choose OAuth.
- Sign in to SMS8 and approve. Custom connectors and actions depend on your ChatGPT plan.
https://mcp.sms8.io/mcpGrok (xAI API)
- Remote MCP tools work in the xAI API, for apps and agents you build with Grok.
- Add this entry to the
toolslist of your request, with your API key. - Grok calls the SMS8 tools when a task needs a text.
[
{
"type": "mcp",
"server_label": "sms8",
"server_url": "https://mcp.sms8.io/mcp",
"headers": { "Authorization": "Bearer YOUR_SMS8_API_KEY" }
}
]Gemini CLI
- Open
~/.gemini/settings.json, or create it. - Paste the config and put in your API key.
- Start Gemini CLI and type
/mcpto check SMS8 is listed.
{
"mcpServers": {
"sms8": {
"httpUrl": "https://mcp.sms8.io/mcp",
"headers": { "Authorization": "Bearer YOUR_SMS8_API_KEY" }
}
}
}Cursor
- Open Settings, then MCP, then Add new MCP server, or edit the file directly.
- Paste the config and put in your API key.
- Reload Cursor. SMS8 shows up with its tools.
{
"mcpServers": {
"sms8": {
"url": "https://mcp.sms8.io/mcp",
"headers": { "Authorization": "Bearer YOUR_SMS8_API_KEY" }
}
}
}Windsurf
- Open the Cascade panel, then MCP servers, then View raw config.
- Paste the config and put in your API key.
- Press Refresh. The SMS8 tools appear in Cascade.
{
"mcpServers": {
"sms8": {
"serverUrl": "https://mcp.sms8.io/mcp",
"headers": { "Authorization": "Bearer YOUR_SMS8_API_KEY" }
}
}
}VS Code
- Create
.vscode/mcp.jsonin your project. - Paste the config and put in your API key.
- Open Copilot Chat in agent mode and pick the SMS8 tools.
{
"servers": {
"sms8": {
"type": "http",
"url": "https://mcp.sms8.io/mcp",
"headers": { "Authorization": "Bearer YOUR_SMS8_API_KEY" }
}
}
}Any client (npx)
- For tools that only run local (stdio) servers.
- The
sms8-sdkpackage starts a small bridge to the hosted server. - Needs Node.js 18 or newer. Put in your API key and restart the tool.
{
"mcpServers": {
"sms8": {
"command": "npx",
"args": ["-y", "sms8-sdk", "mcp"],
"env": { "SMS8_API_KEY": "YOUR_SMS8_API_KEY" }
}
}
}Claude Code plugin
The plugin adds the server and a short skill that teaches Claude how to use it. Run these inside Claude Code:
/plugin marketplace add 1fancy/sms8-sms-gateway
/plugin install sms8-sms-gatewayOpenCode and OpenClaw
Step-by-step guides: SMS8 with OpenCode and SMS8 with OpenClaw.
Tools
Your assistant chooses the tool from what you ask. You never call them by name, but knowing them helps.
| Tool | What it does |
|---|---|
setup_sms8 | Checks your key and returns your devices, links and next steps. |
send_sms | Texts one person from your own number: SMS from a phone, iMessage from a Mac. |
send_sms_list | Sends the same text to up to 100 of your own contacts, by SMS or iMessage. |
send_otp | Sends a login or sign-up code to a phone number. |
verify_otp | Checks the code a person typed against the last code sent. |
wait_for_otp | Waits for a code to arrive on your phone and reads it back. |
get_messages | Reads recent sent and received texts, by number if you like. |
list_devices | Lists your paired phones and Macs, and what each one sends. |
create_webhook | Sends replies and delivery updates to your server. |
get_balance | Shows your plan and when it renews. Quick to call. |
usage | A readable summary of your account and days left. |
setup_sms8
Start here. Checks your SMS8 API key and returns what the assistant needs to work with your account: your paired devices, dashboard links and short setup notes.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Your SMS8 API key. Not needed when the key is already sent in the Authorization header or you signed in with OAuth. |
Try asking: Set up SMS8 with my API key.
send_sms
Sends one message to one person from your own device. An Android phone sends SMS, or MMS when you add media links. A Mac with the SMS8 Gateway app sends iMessage from your Apple ID. If your account has several devices or SIMs, the tool asks which one to use, then you retry with that device and SIM.
| Parameter | Type | Description |
|---|---|---|
phonerequired | string | Number in international format, for example +14155550100. |
messagerequired | string | The text. Up to about 1,600 characters. |
device_id | integer | Send from this paired device. Default: your primary device. |
sim_slot | string | SIM slot on that device, for dual-SIM and eSIM phones. |
devices | array | A list of device IDs, or "deviceID|simSlot" pairs. Overrides device_id. |
option | integer | 0 uses the devices you set (default), 1 sends from all devices, 2 from all SIMs. |
random_device | boolean | Pick one sender at random from the list, to spread the load. |
attachments | array | Public HTTPS links to images, video or PDF. Sends as MMS. |
prioritize | boolean | Put this message at the front of the phone's queue. |
Try asking: Text +14155550142: "Your table is ready."
send_sms_list
Sends the same message to a short list of people you know, up to 100 numbers per call. The assistant confirms the text and the number of people with you first. Returns a sent or failed result for each number.
| Parameter | Type | Description |
|---|---|---|
phonesrequired | array | Up to 100 numbers in international format. Only people you have permission to text. |
messagerequired | string | The text every person gets. |
device_id | integer | Send from this paired device. Default: your primary device. |
sim_slot | string | SIM slot on that device. |
Try asking: Send "Office closed Friday" to the five numbers in team.csv.
send_otp
Sends a one-time code and keeps it on the server, so you can check it later with verify_otp. By default the code has 6 digits, expires in 5 minutes, allows 5 tries and can be resent after 60 seconds. Each phone number can get at most 5 codes in 24 hours.
| Parameter | Type | Description |
|---|---|---|
phonerequired | string | Number in international format. |
length | integer | Digits in the code, 4 to 8. Default 6. |
template | string | The text, with {code} where the code goes. Default: "Your verification code is {code}". |
expires_in | integer | Seconds until the code expires, 60 to 900. Default 300. |
max_attempts | integer | Tries allowed, 1 to 10. Default 5. |
device_id | integer | Send from this paired device. |
sim_slot | string | SIM slot on that device. |
devices | array | A list of device IDs or "deviceID|simSlot" pairs. |
option | integer | 0 uses the devices you set (default), 1 all devices, 2 all SIMs. |
random_device | boolean | Pick one sender at random from the list. |
Try asking: Send a 6-digit login code to +14155550142.
verify_otp
Checks the code a person typed against the latest code sent to that number. Returns verified true or false, and a reason when it fails.
| Parameter | Type | Description |
|---|---|---|
phonerequired | string | The number the code was sent to. |
coderequired | string | The code the person typed. |
Try asking: The user typed 482913. Is it right?
wait_for_otp
Waits until a text with a code arrives on your paired phone, then returns the code, the full message and the sender. Useful when an agent fills in a sign-up or login form that sends a code to your number.
| Parameter | Type | Description |
|---|---|---|
sender_phone | string | Only match texts from this number. |
device_id | integer | Only watch this paired device. |
sim_slot | integer | Only watch this SIM slot (0 or 1). |
timeout_seconds | integer | How long to wait, 5 to 180 seconds. Default 60. |
code_min_length | integer | Shortest code to accept. Default 4. |
code_max_length | integer | Longest code to accept. Default 8. |
contains | string | Text the message must include, for example the app name. |
Try asking: Sign me up on the test site, then wait for the code on my phone.
get_messages
Returns recent messages on your account. Filter by direction and by phone number. Good for checking replies, showing a conversation or seeing what was delivered.
| Parameter | Type | Description |
|---|---|---|
direction | string | received, sent or all. Default all. |
limit | integer | How many messages, 1 to 100. Default 25. |
phone | string | Only messages to or from this number. |
Try asking: Did anyone reply in the last hour?
list_devices
Lists the devices paired with your account, with their ID, model, SIMs, whether each is your primary device and whether it is on. The channel field says what a device sends: sms for an Android phone, imessage for a Mac with SMS8 Gateway. An empty list means nothing is paired yet.
No parameters.
Try asking: Which phones do I have connected?
create_webhook
Sets the HTTPS address where SMS8 posts incoming messages and delivery updates. Returns a sample of what will arrive, so the assistant can write the code that receives it. Set enabled to false to turn it off.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | An HTTPS address on your server. |
enabled | boolean | Default true. False removes the webhook. |
Try asking: Send my replies to https://example.com/sms and write the handler.
get_balance
Returns your plan, its expiry date and a one-line summary of your account. Light and safe to call any time, for example before a large send.
No parameters.
Try asking: Check my SMS8 plan before this send.
usage
Shows an easy-to-read summary of your account: plan, expiry date and days left. Use it when you want an overview. Use get_balance when a program needs the numbers.
No parameters.
Try asking: Show my SMS8 usage.
Verify a phone number
Use send_otp and verify_otp to add phone checks to a sign-up or login form.
- Your app asks the assistant, or calls the tool, to send a code:
send_otpwith the phone number. - The person types the code they received.
- Check it with
verify_otp. You getverified: true, orfalsewith a reason such as expired or wrong code.
Defaults: 6 digits, 5 minutes to use it, 5 tries, 60 seconds before a new code can be sent. Only the latest code for a number counts.
Read a code in tests
When an agent tests a sign-up or login flow that texts a code to your number, wait_for_otp waits for the text on your phone and returns the code. Set contains to the app name when several tests run at once, and keep timeout_seconds between 5 and 180.
Get replies on your server
Ask the assistant to run create_webhook with an HTTPS address. SMS8 then posts every incoming text and delivery update there as JSON. The tool returns a sample payload, so the assistant can write the code that receives it.
Each delivery is signed, so your server can check it came from SMS8. Turn the webhook off with enabled: false. For the full payload and signing details, see the REST API docs.
Choose the phone and SIM
With one phone, there is nothing to choose. With several phones or a dual-SIM phone, send_sms returns needs_clarification and a list of your devices. The assistant asks you which one, then sends again with device_id and sim_slot.
devicestakes a list such as["123|0", "456|1"](device ID and SIM slot).option: 1sends from all devices,option: 2from all SIMs.random_device: truepicks one sender from the list each time, to spread the load.- A Mac paired with the SMS8 Gateway app (macOS 14 or newer) is a device too. Messages sent through it go out as iMessage from your Apple ID. New iMessage contacts are paced to 50 a day per Mac.
Limits
| What | Limit |
|---|---|
| Codes per phone number | 5 in any 24 hours, cannot be turned off |
| Code length | 4 to 8 digits, default 6 |
| Code expiry | 60 to 900 seconds, default 300 |
| Tries per code | 1 to 10, default 5 |
| New code after | 60 seconds by default |
Recipients per send_sms_list | 100 |
| Message length | About 1,600 characters |
Messages per get_messages call | 1 to 100, default 25 |
wait_for_otp timeout | 5 to 180 seconds, default 60 |
Errors
When a send fails, the tool says why in plain words and includes a link to fix it. Common reasons:
- Plan expired. Renew from your dashboard.
- No phone online. Open the SMS8 app on the phone and turn off battery optimization for it.
- Invalid number. Use international format, for example +14155550142.
- needs_clarification. Not an error: choose a phone and SIM, then send again.
Every send_sms reply also carries an account block with your plan, expiry date and device health.
FAQ
Do I need a new phone number?
No. Texts go out from the SIM in your paired phone, so people see your normal number.
Does the phone have to stay on?
Yes. Keep it on Wi-Fi and a charger, and turn off battery optimization for the SMS8 app so Android does not stop it.
Can the assistant text anyone?
It texts the numbers you give it. Lists are limited to 100 people and the assistant confirms the message and the count with you first.
What does it cost?
The MCP server comes with every SMS8 plan, from USD 29 a month, with no fee per message. See pricing. You can try it for 3 days with 30 messages, no card needed.
Where is the code?
The Claude Code plugin and examples are on GitHub.