Purpose
textbee-mcp is the MCP server for textbee.dev. textbee.dev is an open-source SMS gateway that turns an Android phone into an SMS API. This server lets Claude, Cursor, and any MCP client send and read SMS through your own phone and number.
Main capabilities
Provides three tools:
- Send SMS: can send to one or more recipients (E.164 format, e.g. +15550100123). The sending phone is selected automatically: the default device, otherwise the most recently enabled device with a heartbeat. Optional parameters include device_id, sim_subscription_id, scheduled_at. When the account uses the SMS queue, returns sms_batch_id for delivery checks.
- Read messages: reads SMS from all devices under the account, by default showing received messages in reverse chronological order by receipt time. Can filter by direction (received, sent, all), free-text search, sms_batch_id (per-recipient delivery status for a given send), device_ids, and from/to time windows. Supports cursor pagination, making polling easy without duplicates or omissions.
- View devices: lists the phones in the account, including id, enabled status, default sending device, last check-in time, and message count.
Usage
Before use you need: a textbee account with a paired Android device, and an API key obtained from the dashboard. The key has full account access and should be kept as securely as a password.
Hosted endpoint (no installation required, works with claude.ai, Claude Desktop, and the Claude mobile app): Use the hosted endpoint https://mcp.textbee.dev/mcp,其运行的工具与本包相同。在 in claude.ai or Claude Desktop, open Customize, go to Connectors, click + Add and select Add custom connector. Enter the name textbee and the URL https://mcp.textbee.dev/mcp,然后连续点击两次 Continue. Select Sign in now, keep the recommended option for the OAuth client, and click Add. On the textbee login page, paste the API key and click Connect. One connection works for the web version, Claude Desktop, and the Claude mobile app (the mobile app itself cannot add connectors). On Team and Enterprise plans, an owner must first add the connector for the organization. The connection is valid for 90 days, after which Claude will ask you to reconnect. textbee checks the key but does not store it; the key passes through textbee's servers. You can revoke the key in the dashboard to disconnect. If you want the key to stay only on your machine, use the local setup below.
Local use (key kept in your own configuration): Two methods are supported: run locally with the key written into the configuration; or use the hosted endpoint and sign in via the browser to submit the key. Then run /mcp in Claude Code, select textbee, and choose Authenticate.
Claude Desktop local configuration: Add the configuration object to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json; Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop. Cursor uses the same object in ~/.cursor/mcp.json. Remote server clients that support headers can instead use https://mcp.textbee.dev/mcp,并通过 x-textbee-api-key or Authorization: Bearer <key> to send the key. See textbee.dev/docs/agents/mcp for the full setup guide.
First startup is slower: npx downloads the package on first run. If the client times out while waiting, install it globally once first, then point the configuration at that binary.
Self-hosted textbee: Point the server at your own instance. The /api/v1 suffix is optional and will be added automatically. Like https://example.com/textbee Deployment in such a subpath also works. Invalid URLs will error out rather than silently falling back, so a typo won't send your key to a public API.
Environment variables: The key stays on your machine: this server only communicates with the textbee API at the base URL above. Send volume counts against your textbee plan quota, and the plan's rate limits apply server-side. All diagnostic information is output to stderr; stdout is reserved for the MCP protocol.
Using as a library: This package also exports its tool definitions, which can be embedded in another MCP host (this is how the hosted remote endpoint reuses them). Credentials are resolved per tool call, so a multi-tenant host can inject a different key for each request. See credentialsFromAuthInfoExtra.
When to use
Suitable for scenarios where an AI agent needs to send and receive SMS via your own number, such as replying to messages, verification codes, delivery status queries, etc. It also supports self-hosted textbee instances, which is convenient for users with requirements about data flow.
Limitations
- Requires a textbee account, a paired Android device, and an API key.
- The API key has full account access and must be kept carefully; when using the hosted endpoint, the key passes through the textbee server, so you can switch to a local setup or revoke the key to disconnect.
- Hosted connections are valid for 90 days, after which you need to reconnect.
- Send volume counts against the textbee plan quota, and rate limits are enforced server-side.
- The project uses the MIT license and is part of the textbee project.
- Other details are not provided for now.