Claude Code MCP Integration

Send SMS with natural language using AI

What is Claude Code MCP?

The Model Context Protocol (MCP) is an open standard that allows AI assistants like Claude to interact with external tools and services. The WebSMS MCP server enables Claude Code to send SMS messages, check delivery status, and manage your messaging directly through natural language commands.

Instead of writing code or using APIs directly, simply tell Claude what you want to do: "Send an SMS to 027 123 4567 asking if they want coffee" - and Claude handles the rest, including phone number normalization, cost calculations, and delivery confirmation.

Built-in Safeguards

The WebSMS MCP includes intelligent safeguards to prevent accidental costs:

  • Cost warnings - See the cost before sending, especially for multi-segment messages
  • Phone normalization - Local formats like "027 123 4567" are automatically converted to international format
  • Character counting - Warns about Unicode (emoji) messages that use more segments
  • Rate limiting - Built-in 10 messages/second limit to prevent runaway costs
  • Credential protection - Warns if credentials are stored insecurely

Example Commands

Just tell Claude what you want to do

Send SMS

"Send an SMS to 027 123 4567 saying the delivery is on its way"

✓ Number normalized: 027 123 4567 → 64271234567 (NZ)

Message: 32 characters (GSM)

Cost: 1 credit ($0.10 NZD)

✓ SMS sent successfully!

Bulk SMS

"Send a reminder to 021 111 2222, 022 333 4444, and 027 555 6666 about the meeting tomorrow at 2pm"

✓ 3 numbers normalized

Total: 3 credits ($0.30 NZD)

✓ 3 SMS sent successfully!

Send Verification Code

"Send a verification code to 021 234 5678 for Acme Corp"

✓ OTP sent successfully!

Code: 847291

Expires in: 600 seconds

Check Balance

"What's my WebSMS balance?"

Balance: $45.50 NZD

Number Lookup

"Look up the carrier for 027 123 4567"

Number: 64271234567

Valid: Yes

Carrier: Spark

Country: NZ

Check Replies

"Check for any SMS replies"

From: 64271234567

Message: "Yes please!"

Received: 2024-01-15 10:30

Quick Setup

1

Get Your API Credentials

Log in to the WebSMS Members Area and go to API Keys. Create a new API key and copy your Client ID and Client Secret.

2

Configure Claude Desktop

Add this to your Claude Desktop configuration file:

{
  "mcpServers": {
    "websms": {
      "command": "npx",
      "args": ["@websms-nz/websms-mcp"],
      "env": {
        "WEBSMS_CLIENT_ID": "your-client-id",
        "WEBSMS_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Config file locations:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json

3

Start Sending SMS

Restart Claude Desktop and start using natural language. Try: "Check my WebSMS balance"

Claude will automatically download the MCP server on first use.

npm package: @websms-nz/websms-mcp

Key Benefits

Natural Language

No API calls or code required. Just describe what you want to do in plain English.

Smart Normalization

Phone numbers in any format are automatically converted. "027 123 4567" becomes "64271234567".

Cost Transparency

See exactly what each message will cost before sending. No surprises.

Smart Warnings

Automatic warnings for multi-segment messages and emoji usage that increases costs.

NZ & AU Support

Supports New Zealand (02x) and Australian (04x) mobile number formats.

Open Source

View source code on GitLab →

Ready to Get Started?

Set up WebSMS MCP in Claude Code and start sending SMS with natural language in minutes.

Frequently Asked Questions

Common questions about sending SMS with Claude and AI agents

How can I send SMS messages from Claude or an AI agent?
You can send SMS from Claude using the WebSMS MCP (Model Context Protocol) server. Simply install the MCP server, add your API credentials to Claude Desktop config, and use natural language commands like "Send an SMS to 027 123 4567 saying hello". Claude handles phone number normalization, cost calculation, and delivery confirmation automatically.
What is MCP and how does it work with SMS?
MCP (Model Context Protocol) is an open standard by Anthropic that allows AI assistants like Claude to interact with external tools and services. The WebSMS MCP server connects Claude to the WebSMS API, enabling you to send SMS, check balances, look up numbers, and track deliveries using natural language instead of writing code or calling APIs directly.
Can Claude send bulk SMS to multiple recipients?
Yes, Claude can send bulk SMS using the WebSMS MCP. Simply list the phone numbers in your request, like "Send a reminder to 021 111 2222, 022 333 4444, and 027 555 6666 about the meeting tomorrow". Claude will normalize all numbers, calculate the total cost, and show you exactly what you'll pay before sending.
How much does it cost to send SMS through Claude?
The MCP integration itself is completely free. You only pay standard WebSMS rates of $0.10 NZD per SMS segment. The MCP includes built-in cost safeguards that show you the exact cost before sending, and automatically warn you about multi-segment messages or emoji usage that may increase costs.
Does Claude support New Zealand and Australian phone numbers?
Yes, the WebSMS MCP automatically normalizes phone numbers for both New Zealand and Australia. You can use local formats like "027 123 4567" (NZ) or "0412 345 678" (AU), and they will be converted to international format (64271234567 or 61412345678) automatically.
Can I send OTP verification codes through Claude?
Yes, the WebSMS MCP includes a dedicated OTP (one-time password) tool. Simply say "Send a verification code to 021 234 5678 for My Company" and Claude will send a branded 6-digit code. The code is returned so you can verify it later, and it expires after 10 minutes for security.
Is the Claude SMS integration secure?
Yes, the WebSMS MCP prioritizes security. API credentials are stored in the Claude Desktop config file in your user directory (not in project directories that could be committed to git). The MCP includes built-in warnings if it detects credentials stored insecurely, and all API communication uses HTTPS encryption.
What AI platforms support the WebSMS MCP?
The WebSMS MCP works with Claude Desktop, Claude Code CLI, and any platform that supports the Model Context Protocol (MCP) standard. It runs on macOS, Windows, and Linux. As MCP adoption grows, it may work with additional AI platforms in the future.
How do I install the WebSMS MCP server?
The easiest way is via npm: add the MCP config to your Claude Desktop settings with npx @websms-nz/websms-mcp as the command. Alternatively, you can clone from GitLab and build from source. See the setup instructions above for detailed steps.
Can I automate SMS workflows with Claude?
Yes, Claude with the WebSMS MCP can be used for SMS automation workflows. You can send appointment reminders, order notifications, verification codes, marketing messages, and bulk communications. The built-in rate limiting (10 messages/second) prevents accidental runaway costs.
What happens if I send a long message with emojis?
The MCP automatically detects Unicode characters (including emojis) and warns you about increased costs. Standard GSM SMS allows 160 characters per segment, but Unicode messages only allow 70 characters per segment. Claude will show you the segment count and total cost before sending, so there are no surprises.
Can Claude check my SMS delivery status?
Yes, the WebSMS MCP includes a delivery status tool. After sending a message, you can ask Claude "What is the delivery status of message abc123?" and it will return whether the message was delivered, pending, or failed, along with the timestamp.