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
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.
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
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?
What is MCP and how does it work with SMS?
Can Claude send bulk SMS to multiple recipients?
How much does it cost to send SMS through Claude?
Does Claude support New Zealand and Australian phone numbers?
Can I send OTP verification codes through Claude?
Is the Claude SMS integration secure?
What AI platforms support the WebSMS MCP?
How do I install the WebSMS MCP server?
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?
What happens if I send a long message with emojis?
Can Claude check my SMS delivery status?
Other Integrations
Explore more ways to integrate SMS