textbee-mcp
Official@textbee/mcp
MCP-сервер для textbee.dev — открытого SMS-шлюза, который превращает Android-телефон в SMS API. Даёт Claude Desktop, Claude Code, Cursor и любому MCP-клиенту возможность отправлять и читать SMS через ваш собственный телефон и ваш номер.
Три инструмента, без разметки для каждого сообщения, работает с самостоятельно размещёнными экземплярами textbee.
Настройка
Вам нужна учётная запись textbee с сопряжённым Android-устройством и API-ключ из панели управления. Ключ имеет полный доступ к учётной записи; обращайтесь с ним как с паролем.
Claude Code
claude mcp add textbee -s user -e TEXTBEE_API_KEY=your-key -- npx -y @textbee/mcpClaude Desktop
Добавьте в claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"textbee": {
"command": "npx",
"args": ["-y", "@textbee/mcp"],
"env": { "TEXTBEE_API_KEY": "your-key" }
}
}
}Cursor
Тот же объект в ~/.cursor/mcp.json.
Медленный первый запуск
npx загружает пакет при первом запуске. Если ваш клиент выходит по тайм-ауту, установите пакет глобально один раз и укажите в конфигурации путь к бинарному файлу:
npm install -g @textbee/mcp{ "mcpServers": { "textbee": { "command": "textbee-mcp", "env": { "TEXTBEE_API_KEY": "your-key" } } } }Related MCP server: clicksend-mcp
Инструменты
send_sms
Отправляет SMS одному или нескольким получателям (формат E.164, например +15550100123). Телефон для отправки выбирается автоматически: ваше устройство по умолчанию, иначе включённое устройство с самым недавним heartbeat. Необязательные параметры: device_id, sim_subscription_id и scheduled_at. Возвращает sms_batch_id для проверки доставки, когда в учётной записи используется очередь SMS.
get_messages
Читает сообщения со всех устройств учётной записи. По умолчанию — полученные сообщения, сначала новые. Фильтры: direction (received, sent, all), произвольный текст search, sms_batch_id (статус доставки по каждому получателю), device_ids и временное окно from/to. Поддерживает курсорную пагинацию для опроса без дубликатов и пропусков.
list_devices
Телефоны в учётной записи: идентификаторы, состояние включения, какой отправляет по умолчанию, последняя проверка и количество сообщений.
Самостоятельно размещённый textbee
Укажите серверу ваш собственный экземпляр:
"env": {
"TEXTBEE_API_KEY": "your-key",
"TEXTBEE_BASE_URL": "https://sms.example.com"
}Суффикс /api/v1 необязателен и добавляется автоматически. Развёртывания с подпутями, например https://example.com/textbee, тоже работают. Неверный URL вызывает ошибку, а не тихий откат, поэтому опечатка никогда не отправит ваш ключ в публичный API.
Переменные окружения
Переменная | Обязательна | По умолчанию | Назначение |
| да | нет | API-ключ из панели управления textbee |
| нет |
| URL вашего экземпляра при самостоятельном размещении |
| нет |
| Тайм-аут запроса в миллисекундах |
Примечания
Ваш ключ остаётся на вашей машине: этот сервер общается только с API textbee по указанному выше базовому URL.
Отправки учитываются в квоте вашего тарифа textbee, а ограничения скорости тарифа применяются на стороне сервера.
Все диагностические сообщения идут в stderr; stdout зарезервирован для протокола MCP.
Использование в качестве библиотеки
Пакет также экспортирует определения своих инструментов для встраивания в другой MCP-хост (именно так размещённая удалённая конечная точка переиспользует их):
import { createTextbeeMcpServer, staticCredentials, loadConfig } from '@textbee/mcp'
const server = createTextbeeMcpServer({
credentials: staticCredentials(loadConfig(process.env)),
})Учётные данные разрешаются при каждом вызове инструмента, поэтому многопользовательский хост может подставлять разный ключ для каждого запроса. См. credentialsFromAuthInfoExtra.
Лицензия
MIT. Часть проекта textbee.
Available Tools
3 toolsget_messagesRead messagesARead-only
Read the SMS messages on the user's textbee account, covering every device, no device id needed. direction defaults to "received": checking for a reply or a one-time code is the usual case. Pass direction "sent" to review what went out (each row carries its delivery status), or "all" for a conversation in order. Pass the sms_batch_id from a send to see that send's per-recipient delivery status. To poll for new messages without missing or repeating any: use order "asc" with a from bound, then keep calling with the next_cursor each result prints. from is inclusive and to is exclusive, so consecutive windows tile exactly. Reading does not consume the plan send quota. Messages reach textbee within a few seconds of arriving on the phone, so when waiting for a code, wait briefly and call again rather than tight-polling.
Inputs: to, from, limit, order, +5 more.
list_devicesList devicesARead-only
List the Android phones registered to this textbee account: id, name, enabled state, which one is the default sender, when each last checked in, and message counts. Call this when a send fails with a device error, when the user asks which phone will be used, or when you need a device_id. Takes no arguments and sends no SMS.
Inputs: no named parameters.
send_smsSend SMSA
Send an SMS through the user's own textbee account and Android phone. Recipients are phone numbers or short codes, sent as the user gives them. A local number or short code reaches recipients in the sending phone's country. For a number in another country, use international format with the country code, such as +15550100123. Sender names such as MYBANK cannot receive SMS. The sending phone is chosen automatically: the account default device, otherwise the enabled device with the most recent heartbeat. Only pass device_id when the user explicitly names a phone; ids come from list_devices. Sending costs the user a real message against their textbee plan quota, so do not send speculatively and do not retry a send that may already have gone out. When the account has SMS queueing enabled the result includes an sms_batch_id; pass it to get_messages as sms_batch_id to check per-recipient delivery status.
Inputs: message (required), recipients (required), device_id, sim_number, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool occupies a distinct role: send_sms writes, get_messages reads, list_devices enumerates devices. The descriptions explicitly clarify boundaries (e.g. list_devices sends no SMS, get_messages covers all devices without a device id), leaving no realistic chance of misselection.
All three names follow a consistent snake_case verb_noun pattern: send_sms, get_messages, list_devices. The verb choice (send/get/list) is semantically appropriate per tool rather than arbitrary, so the set reads predictably.
Three tools is exactly right for a narrow SMS gateway: send, read, and device discovery, with each tool earning its place. Nothing is padded and nothing feels thin given the constrained domain.
The core lifecycle is covered and cross-referenced well: sms_batch_id from send feeds get_messages, device_id from list_devices feeds send, and pagination/cursor rules prevent dead ends. Minor gaps remain (no account/quota info, no way to enable or disable a device when a send fails with a device error, no message deletion).
Maintenance
Related MCP Connectors
Send and read WhatsApp, email and SMS from Claude, ChatGPT, Cursor or any MCP client, from your own accounts: your WhatsApp number (linked by QR code), your mailbox (IMAP/SMTP) and your Android phone (SMS from its SIM). Tools: list-accounts, get-account, add-account, add-email-account, list-messages, send-message (one channel or several in one call). Hosted, OAuth 2.1, nothing to install. Free plan with unlimited messages; paid plans from 19 EUR/month remove the footer and add media and webhooks. Docs and client configs: github.com/UnlimitedMessaging/unlimited-messaging-mcp
SMS alerts for AI agents and scripts. Text your own phone and read replies. API key required.
Send texts (SMS) from your own Android phone and your own number, from any AI app.
Text your own phone from Claude and ChatGPT: reminders, alerts, scheduled SMS. Free 5 texts/mo.
Related MCP Servers
- AlicenseBqualityDmaintenanceAndroidAPI.net MCP Connector lets Claude send SMS, WhatsApp messages, and OTPs via your linked Android device or gateway credits. Features * 52 tools covering SMS, WhatsApp, OTP, Contacts, Android devices * Works with Claude Desktop and Claude Code * Install: npx -y androidapi-mcp Setup Set ANDROIDAPI_SECRET env var with your API key from AndroidAPI.net → Tools → API Keys5239 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables Claude to read, organize, and send SMS messages through your ClickSend account.-
- FlicenseNot gradedqualityDmaintenanceEnables an AI-powered SMS assistant that receives inbound messages via TextBee, processes them with a local Ollama model and optional MCP tools, and sends replies back to the sender.1-
- FlicenseNot gradedqualityCmaintenanceEnables AI applications to send and receive real iMessage/SMS messages through a local MCP service, with tools for sending texts, checking new messages, browsing history, and querying line status.4-