Skip to main content
Glama
textbee-mcp

textbee-mcp

Official

@textbee/mcp

npm version CI license

textbee.dev 用の MCP サーバーです。textbee.dev は、Android スマートフォンを SMS API に変えるオープンソースの SMS ゲートウェイです。Claude Desktop、Claude Code、Cursor、および任意の MCP クライアントに、自分の電話と自分の番号を使って SMS を送受信する機能を提供します。

3つのツール、メッセージごとのマークアップなし、セルフホストの textbee インスタンスで動作します。

セットアップ

textbee アカウントと、ペアリングした Android デバイス、および ダッシュボード から取得した API キーが必要です。キーはアカウントへの完全なアクセス権を持ちます。パスワードのように扱ってください。

Claude Code

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

Claude 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

1人以上の受信者に SMS を送信します (E.164 形式、例: +15550100123)。送信元の電話は自動的に選択されます: デフォルトのデバイス、そうでない場合は最も新しいハートビートを持つ有効なデバイス。オプションで device_id、sim_subscription_id、scheduled_at を指定できます。アカウントが SMS キューを使用する場合、配信確認用の sms_batch_id を返します。

get_messages

アカウント上のすべてのデバイスからメッセージを読み取ります。デフォルトは受信メッセージで、新しい順に表示されます。direction (received、sent、all)、フリーテキストの search、sms_batch_id (送信の受信者ごとの配信ステータス)、device_ids、および from/to の時間範囲でフィルタリングできます。重複や欠落のないポーリングのためのカーソルページネーションをサポートしています。

list_devices

アカウント上の電話: ID、有効状態、デフォルトで送信するもの、最終チェックイン、メッセージ数。

セルフホストの textbee

サーバーを自分のインスタンスに向けます:

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

/api/v1 サフィックスはオプションで、自動的に追加されます。https://example.com/textbee のようなサブパス展開も機能します。無効な URL はエラーとなり、静かにフォールバックすることはないため、タイプミスが公開 API にキーを送信することはありません。

環境変数

変数

必須

デフォルト

目的

TEXTBEE_API_KEY

はい

なし

textbee ダッシュボードからの API キー

TEXTBEE_BASE_URL

いいえ

https://api.textbee.dev

セルフホスト時のインスタンスの URL

TEXTBEE_TIMEOUT_MS

いいえ

30000

リクエストごとのタイムアウト(ミリ秒)

注意事項

  • あなたのキーはマシン上に留まります: このサーバーは上記のベース URL の textbee API とのみ通信します。

  • 送信は 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 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
      -