Save 44% with yearly billing, 5 months free.View Plans
textbee Logotextbee.dev
How to Send SMS from Claude with MCP (Claude Desktop, Claude Code, and claude.ai)

How to Send SMS from Claude with MCP (Claude Desktop, Claude Code, and claude.ai)

A hands-on guide to sending and reading SMS from Claude Desktop, Claude Code, and claude.ai with the textbee MCP server. Setup, example prompts, delivery checks, reading replies, and guardrails.

TT

textbee team

Updated 9 min read
Share

TL;DR

  • Claude can send and read SMS through your own Android phone once you connect the textbee MCP server.
  • claude.ai, Claude Desktop and the Claude mobile apps: add https://mcp.textbee.dev/mcp as a custom connector and paste your API key on the textbee sign-in page. Nothing to install.
  • Claude Code: one command, either the same hosted connector or the local npx -y @textbee/mcp server.
  • Three tools: send_sms, get_messages, list_devices. The examples below show a send, a delivery check, reading a reply, and reading an OTP.
  • Messages go out from your number and plan limits are enforced on the server. With the local server, the key stays in your own client config.

What you need

  1. A textbee account with the Android app installed on a phone you own and paired to the account. The free tier is enough for this guide.
  2. An API key from the dashboard. Create a dedicated one for Claude so you can revoke it on its own later.
  3. A Claude account (claude.ai, Claude Desktop or the mobile apps) or Claude Code.

If you have not set up the phone yet, the quickstart takes about five minutes.

Step 1: connect textbee to Claude

claude.ai, Claude Desktop and the Claude mobile apps

The fastest path. One connection works on the web, on the desktop and on your phone, and you need no Node.js and no config file.

  1. In claude.ai or Claude Desktop, open Customize, then Connectors.
  2. Click + Add, then Add custom connector.
  3. Enter the name textbee and the MCP server URL https://mcp.textbee.dev/mcp. Click Continue.
  4. Click Continue on the settings Claude detects. Under Authentication, choose Sign in now. Leave OAuth client on the recommended option. Click Add.
  5. The textbee sign-in page opens. Paste your API key and click Connect. If the page does not open, click Connect on the textbee connector.

In a new chat, click the + button in the message box, open Connectors and check that textbee is on. The mobile apps cannot add connectors, so add it on the web or in Claude Desktop first. On the Free plan, Claude allows one custom connector. On Team and Enterprise plans, an owner adds the connector for the organization first, then each member connects with their own key.

The connection lasts 90 days. After that, Claude asks you to reconnect: click Connect and paste the key again. With the hosted connector your key passes through textbee's server on each request. textbee does not store it. Claude keeps it inside an encrypted token, and revoking the key in the dashboard disconnects it. If you want the key to stay on your machine, use the local server below.

Claude Code

Add the hosted connector for your user, so it is available in every project:

Shell
claude mcp add --transport http -s user textbee https://mcp.textbee.dev/mcp

Then run /mcp in Claude Code, select textbee and choose Authenticate. Paste your API key on the sign-in page that opens in your browser.

Or run the server locally, with the key in your own config:

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

Run claude mcp list to confirm it shows as connected.

Claude Desktop with a local server

If you prefer the key on your machine, or you run a self-hosted textbee, open claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json) and add:

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

Restart Claude Desktop. The three textbee tools appear in the tools menu of every new conversation. This needs Node.js installed.

If the client times out on the first start (npx downloads the package the first time), install it globally once with npm install -g @textbee/mcp and set "command": "textbee-mcp" with no args.

Step 2: send your first message

Ask Claude in plain language:

Send an SMS to +1 555 0134 saying "Build 412 passed, deploying to staging now."

Claude calls send_sms with the recipient in international format (+15550134) and the text. The tool picks the sending phone for you: your default device, otherwise the enabled device that checked in most recently. The result includes an sms_batch_id when your account uses the send queue, which is what the next step uses.

A few things worth knowing about send_sms:

  • Several recipients at once: "text these three numbers the same message" becomes one call with a list of recipients.
  • Pick the phone: if you run more than one gateway phone, ask Claude to send from a specific device; it will call list_devices first and pass the device_id.
  • Dual-SIM: sim_number selects the SIM on a dual-SIM phone (1 is SIM 1, 2 is SIM 2).
  • Schedule: "send this tomorrow at 9am" maps to scheduled_at.

Step 3: check delivery instead of assuming it

This is where an agent beats a fire-and-forget script. Ask:

Was that message delivered?

Claude calls get_messages with the sms_batch_id from the send and reports the per-recipient status (sent, delivered, failed). If a recipient failed, the error text tells Claude whether to retry (a transient device issue) or stop (a quota or permission problem).

Step 4: read replies and verification codes

get_messages reads across every phone on the account, newest first, received messages by default. That enables two patterns:

Wait for a reply.

I texted Sam about tomorrow's 2pm slot. Check whether they replied and tell me what they said.

Claude filters by direction received and a free-text search for Sam's number or name, and reads back the reply.

Read an OTP. Sign up for a service that texts a verification code to your gateway phone's number, then:

A verification code was just sent to my gateway number. Read it and paste it here.

Claude searches recent received messages, finds the six-digit code, and returns it. This is the pattern that turns a gateway phone into a verification inbox for agents that register accounts or log in on your behalf.

For polling over time, get_messages supports cursor pagination, so Claude can ask "anything new since last time?" without missing or repeating a message.

Example: a deploy watcher in Claude Code

A realistic Claude Code session, with the server added in step 1:

Run the production deploy script. When it finishes, text me at +1 555 0134 whether it succeeded or failed, then confirm the text was delivered.

Claude runs the script, calls send_sms with the outcome, then get_messages with the batch id and reports delivered. You walk away from the terminal and still get the result on your phone.

Guardrails

Handing an agent the ability to text people deserves care. What is in place:

  • Plan limits are enforced server-side. A loop that goes wrong cannot outspend your plan; over-quota sends fail with an error Claude is told not to retry.
  • Recipients are validated before a send, and status is reported from the device, not assumed.
  • Your key stays local with the local server; the server talks only to the textbee API and the code is open source. The hosted connector checks the key and never stores it.
  • Use a dedicated key for Claude and revoke it in the dashboard if you ever want to cut it off.
  • Keep humans in the loop for bulk. For one-to-many sends to customers, have Claude draft and show the recipient list before sending, and keep the compliance basics in mind.

Self-hosted textbee

If you run your own textbee backend, add one variable and Claude talks to your instance instead of the cloud API:

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

The /api/v1 suffix is added for you, subpath deployments work, and an invalid URL is an error rather than a silent fallback. The hosted endpoint talks to the cloud API only; self-hosted instances use the local server.

Troubleshooting

  • Every call fails with a key error: the TEXTBEE_API_KEY value is missing or revoked. Create a fresh key in the dashboard and restart the client.
  • The connector shows "needs reconnect": the 90-day connection ended or the key was revoked. Open Customize, then Connectors, click Connect on textbee and paste a valid key.
  • Claude Code lists textbee as needing authentication: run /mcp, select textbee and choose Authenticate.
  • "No enabled device found": enable a device in the Android app or the dashboard, or ask Claude to list devices and send from a specific one.
  • Claude says the tools are not available: in claude.ai, click + in the message box, open Connectors and turn textbee on; with the local server in Claude Desktop, confirm the JSON is valid and restart; in Claude Code, run claude mcp list.
  • Slow first call: npx is downloading the package; install it globally as described above.

Frequently asked questions

Does this work with Cursor or other MCP clients?

Yes. The same config object works in ~/.cursor/mcp.json and in any MCP-compatible client. This guide focuses on Claude because that is where most readers start.

Does Claude need my phone unlocked or the app open?

No. The textbee Android app runs in the background and the backend wakes it over push when there is a message to send. The phone needs power, signal, and SMS permission granted (see the Android 15+ permission guide if the permission is greyed out).

What does it cost per message?

Nothing per message from textbee. Sends count against your plan's quota, and your carrier's SMS plan covers the actual delivery. There is no per-message markup for agent traffic.

Can Claude read messages without sending?

Yes. get_messages does not consume send quota, so a read-only workflow (monitoring a shared inbox, picking up OTPs) costs nothing against the send limit.

Is there an alternative to MCP for automations?

The same account works over plain HTTP for n8n, Make, Zapier, or your own code. The agent quickstart has the endpoints, and the n8n guide covers the no-code path.

Get started

  1. Create a textbee account and pair the Android app.
  2. Add the textbee connector in Claude, or the local server with the snippet for your client above.
  3. Ask Claude to text you, then ask whether it was delivered.

The MCP page and the docs have the full reference.

Get more textbee in Google Search

Add textbee.dev as a preferred source. Our posts show up more often in your Google results.

Add as a preferred source