textbee-mcp
Official@textbee/mcp
MCP-Server für textbee.dev, das Open-Source-SMS-Gateway, das ein Android-Telefon in eine SMS-API verwandelt. Gibt Claude Desktop, Claude Code, Cursor und jedem MCP-Client die Möglichkeit, SMS über dein eigenes Telefon und deine eigene Nummer zu senden und zu lesen.
Drei Tools, kein Aufschlag pro Nachricht, funktioniert mit selbst gehosteten textbee-Instanzen.
Setup
Du benötigst ein textbee-Konto mit einem gekoppelten Android-Gerät und einen API-Schlüssel aus dem Dashboard. Der Schlüssel hat vollen Kontozugriff; behandle ihn wie ein Passwort.
Claude Code
claude mcp add textbee -s user -e TEXTBEE_API_KEY=your-key -- npx -y @textbee/mcpClaude Desktop
Füge Folgendes zu claude_desktop_config.json hinzu (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"textbee": {
"command": "npx",
"args": ["-y", "@textbee/mcp"],
"env": { "TEXTBEE_API_KEY": "your-key" }
}
}
}Cursor
Dasselbe Objekt in ~/.cursor/mcp.json.
Langsamer erster Start
npx lädt das Paket beim ersten Start herunter. Wenn dein Client beim Warten ein Timeout hat, installiere es einmal global und weise die Konfiguration auf die Binärdatei:
npm install -g @textbee/mcp{ "mcpServers": { "textbee": { "command": "textbee-mcp", "env": { "TEXTBEE_API_KEY": "your-key" } } } }Related MCP server: clicksend-mcp
Tools
send_sms
Sende eine SMS an einen oder mehrere Empfänger (E.164-Format, zum Beispiel +15550100123). Das sendende Telefon wird automatisch gewählt: dein Standardgerät, andernfalls das aktivierte Gerät mit dem neuesten Heartbeat. Optional device_id, sim_subscription_id und scheduled_at. Gibt eine sms_batch_id für Zustellprüfungen zurück, wenn das Konto die SMS-Warteschlange verwendet.
get_messages
Lies Nachrichten von allen Geräten des Kontos. Standardmäßig werden empfangene Nachrichten angezeigt, neueste zuerst. Filtere nach direction (received, sent, all), Freitext-search, sms_batch_id (Zustellstatus pro Empfänger einer Sendung), device_ids und einem from/to-Zeitfenster. Unterstützt Cursor-Pagination für Polling ohne Duplikate oder Lücken.
list_devices
Die Telefone des Kontos: IDs, Aktivierungsstatus, welches standardmäßig sendet, letzter Check-in und Nachrichtenzahlen.
Selbst gehostetes textbee
Weise den Server auf deine eigene Instanz hin:
"env": {
"TEXTBEE_API_KEY": "your-key",
"TEXTBEE_BASE_URL": "https://sms.example.com"
}Das Suffix /api/v1 ist optional und wird automatisch hinzugefügt. Subpfad-Bereitstellungen wie https://example.com/textbee funktionieren ebenfalls. Eine ungültige URL ist ein Fehler und kein stiller Fallback, sodass ein Tippfehler deinen Schlüssel niemals an die öffentliche API sendet.
Umgebungsvariablen
Variable | Erforderlich | Standard | Zweck |
| ja | keine | API-Schlüssel aus dem textbee-Dashboard |
| nein |
| Die URL deiner Instanz bei Selbsthosting |
| nein |
| Zeitlimit pro Anfrage in Millisekunden |
Hinweise
Dein Schlüssel bleibt auf deinem Rechner: Dieser Server spricht nur mit der textbee-API unter der obigen Basis-URL.
Sendungen zählen gegen dein textbee-Plan-Kontingent, und die Ratenlimits des Plans gelten serverseitig.
Alle Diagnosen gehen an stderr; stdout ist für das MCP-Protokoll reserviert.
Verwendung als Bibliothek
Das Paket exportiert auch seine Tool-Definitionen zur Einbettung in einen anderen MCP-Host (so verwendet der gehostete Remote-Endpunkt sie wieder):
import { createTextbeeMcpServer, staticCredentials, loadConfig } from '@textbee/mcp'
const server = createTextbeeMcpServer({
credentials: staticCredentials(loadConfig(process.env)),
})Anmeldeinformationen werden pro Tool-Aufruf aufgelöst, sodass ein Multi-Tenant-Host pro Anfrage einen anderen Schlüssel einfügen kann. Siehe credentialsFromAuthInfoExtra.
Lizenz
MIT. Teil des textbee-Projekts.
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-