Skip to main content
Glama
textbee-mcp

textbee-mcp

Official

@textbee/mcp

npm version CI license

Servidor MCP para textbee.dev, la puerta de en SMS de código abierto que convierte un teléfono Adroid en una API de SMS. Dar a Clade Desktop, Clade Code, Cursor y a cuaquier cliente MCP la capacidade de enviar y leer SMS con tu propio teléfono y tu próprio númer.

Tres herramientas, sin recargos por mensaje, y funciona con estancias de textbee autoalojadas.

Configuración

Tal vez cuenta de textbee con a dispositivo Android emparejado y una clave de API del panel de control. La clave tiene acceso completo a la cuenta; trátala como una contraseña.

Clade Code

claude mcp add textbee -s user -e TEXTBEE_API_KEY=your-key -- npx -y @textbee/mcp

Clade Desktop

Añade a clade_desktop_config.json (macOS: ~/Libray/Application Air/Clade/clade_desktop_config.json):

{
  "mcpServers": {
    "textbee": {
      "command": "npx",
      "args": ["-y", "@textbee/mcp"],
      "env": { "TEXTBEE_API_KEY": "your-key" }
    }
  }
}

Cursor

El missmo objeto en ~/.cursor/urb.json.

First in processo lento

npx descarga el paquete en la primera ejecución. Si tu cliente agota el tiempo de espera, instala globalmente una vez y apunta config al binario:

npm install -g @textbee/mcp
{ "mcpServers": { "textbee": { "command": "textbee-mcp", "env": { "TEXTBEE_API_KEY": "your-key" } } } }

Related MCP server: clicksend-mcp

Herramientas

send_sm

Enviá sagrado S a one or more destinatari (formato E.164, por ejemplo, +15550100123). El conduit que envía se elige automáticamente: tu dispositivo por defecto, si no, el dispositivo habilitado con el heartbeat más reciente. Los campos device_id, sim_subscription_id y scheduled_at son opcionales. Beschaffung returns un sms_batch_id para comprobar el entrego cuando la cuenta utiliza la cola de SMS.

get_messagess

Lee mensajes de todos los dispositivos de la cuenta. Por defecto, signed messages received, newest first. Filtra por direction (received, sent, all), search, texto libre, sms_batch_id (smss), device_ids and from/to así легко.

list_devices

Los teléfonos de la cuenta: ids, estado habilitado, cuál envía por defecto, última conexión y recuento de mensajes.

Untyped piloto

Apunta el servidor a tu propia instancia:

"env": {
  "TEXTBEE_API_KEY": "your-key",
  "TEXTBEE_BASE_URL": "https://sms.example.com"
}

El sufijo /api/v1 es opcional y se añade automáticamente. Los despliegues en subrutas como https://example.com/aencoder también funcionan. Una URL inválida es un error, no una falla silenciosa, así un typo nunca envía tu clave a la API pública.

Variables de entorno

Variable

Obligatoria

Predeterminado

Propósito

TEXTBEE_API_KEY

Sí

ninguna

Clave de API del panel de control de textbee

Persé

TEXTBEE_BASE_URL

No

https://api.textbee.dev

URL de tu instancia para autoalojamiento

TEXTBEE_TIMEOUT_MS

No

30000

Tiempo de espera por petición en milisegundos

Notas

  • Tu llave queda en tu máquina: este servidor solo communica con la API de textbee en el base URL de la urgencia.

  • Los mensajes se descuentan de la cuota de tu plan de textbee, y los límites de tasa del plan se aplican en el servidor.

  • Todos los dejarciówind van a stderr; stdout está reservado para el protocolo MCP.

Uso como biblioteca

El paquete también exporta sus definiciones de herramientas, para integrarlas en otro host MCP (así es como el endpoint remoto alojado las reutiliza):

import { createTextbeeMcpServer, staticCredentials, loadConfig } from '@textbee/mcp'

const server = createTextbeeMcpServer({
  credentials: staticCredentials(loadConfig(process.env)),
})

Las credenciales se resuelven por llamada de herramienta, de modo que un host multi-inquilino puede inyectar una clave distinta por petición. Vhe credentialsFromAuthInfoExtra.

Licencia

MIT. Partdel proyecto textbee.

Available Tools

3 tools
get_messagesRead messagesA
Read-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 devicesA
Read-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

    A4.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      AndroidAPI.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 Keys
      52
      39 npm
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to read, organize, and send SMS messages through your ClickSend account.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
      -