Server data from the Official MCP Registry
Voice Calls, SMS, and WhatsApp for Claude Code with cross-channel context sharing.
Voice Calls, SMS, and WhatsApp for Claude Code with cross-channel context sharing.
Valid MCP server (2 strong, 2 medium validity signals). 7 known CVEs in dependencies (0 critical, 2 high severity) Package registry verified. Imported from the Official MCP Registry.
4 files analyzed ยท 8 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Set these up before or after installing:
Environment variable: BETTERCALLCLAUDE_PHONE_PROVIDER
Environment variable: BETTERCALLCLAUDE_PHONE_NUMBER
Environment variable: BETTERCALLCLAUDE_PHONE_ACCOUNT_SID
Environment variable: BETTERCALLCLAUDE_PHONE_AUTH_TOKEN
Environment variable: BETTERCALLCLAUDE_USER_PHONE_NUMBER
Environment variable: BETTERCALLCLAUDE_OPENAI_API_KEY
Environment variable: BETTERCALLCLAUDE_WHATSAPP_NUMBER
Environment variable: BETTERCALLCLAUDE_PORT
Environment variable: TAILSCALE_HOSTNAME
Environment variable: BETTERCALLCLAUDE_WHATSAPP_PROVIDER
Environment variable: BETTERCALLCLAUDE_BAILEYS_AUTH_DIR
Environment variable: BETTERCALLCLAUDE_WHATSAPP_CHAT_HISTORY_SIZE
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-sns45-better-call-claude": {
"env": {
"NGROK_AUTHTOKEN": "your-ngrok-authtoken-here",
"BETTERCALLCLAUDE_PHONE_NUMBER": "your-bettercallclaude-phone-number-here",
"BETTERCALLCLAUDE_PHONE_PROVIDER": "your-bettercallclaude-phone-provider-here",
"BETTERCALLCLAUDE_PHONE_AUTH_TOKEN": "your-bettercallclaude-phone-auth-token-here",
"BETTERCALLCLAUDE_PHONE_ACCOUNT_SID": "your-bettercallclaude-phone-account-sid-here"
},
"args": [
"-y",
"better-call-claude"
],
"command": "npx"
}
}
}From the project's GitHub README.
๐ "Hey Claude, refactor the auth module and call me when you're done or need a decision."
[20 minutes later, phone rings]
๐ค "I've finished the refactor but found a security issue. Should I fix it now or create a ticket?"
๐ฌ Or via SMS/WhatsApp:
You: "Claude, how's the deployment going?"
Claude: "Deployment complete. 3 services updated, all health checks passing."
โ ๏ธ Testing Status
Channel Provider Status Voice Twilio โ Tested & Working Twilio Sandbox โ Tested & Working SMS Twilio โณ Pending A2P 10DLC verification Voice Telnyx ๐ฌ Not yet tested SMS Telnyx ๐ฌ Not yet tested Telnyx ๐ฌ Not yet tested Baileys (free) ๐ฌ New - testing welcome Contributions welcome for testing other provider/channel combinations!
| Setup | What You Get | Cost | Accounts Needed |
|---|---|---|---|
| Baileys only | WhatsApp messaging | Free | None |
| Twilio/Telnyx | Voice + SMS + WhatsApp | ~$1/mo + usage | Twilio/Telnyx + OpenAI |
| Hybrid | Voice + SMS (Twilio) + WhatsApp (Baileys) | ~$1/mo + voice usage | Twilio/Telnyx + OpenAI |
Just want WhatsApp? Skip to Option C: Baileys โ no accounts, no API keys, completely free.
/webhook/telnyx/inbound/webhook/telnyx/sms/webhook/telnyx/whatsapp/webhook/twilio/inbound/webhook/twilio/sms/webhook/twilio/whatsappBaileys connects directly to WhatsApp's Web protocol via WebSocket. It uses your personal WhatsApp account โ no business verification, no API costs, no Twilio/Telnyx required.
How it works: Same as WhatsApp Web โ you link a device by scanning a QR code.
Step 1: Clone and install
git clone https://github.com/sns45/better-call-claude
cd better-call-claude
bun install
Step 2: Pair your WhatsApp
bun run baileys:pair
Your session is saved in data/baileys-auth/ โ you won't need to scan again.
Step 3: Add to Claude Code (~/.claude.json or ~/.claude/settings.json):
{
"mcpServers": {
"better-call-claude": {
"command": "bun",
"args": ["run", "/path/to/better-call-claude/src/index.ts"],
"env": {
"BETTERCALLCLAUDE_WHATSAPP_PROVIDER": "baileys",
"BETTERCALLCLAUDE_USER_PHONE_NUMBER": "+1234567890"
}
}
}
}
That's it! No Tailscale, no Twilio, no OpenAI keys needed.
Step 4: Restart Claude Code and test
Send a WhatsApp message to yourself (or have someone message you) โ Baileys receives it and spawns a Claude task. Or ask Claude to send you a WhatsApp:
"Send me a WhatsApp saying hello"
Get the best of both worlds: Twilio/Telnyx handles voice calls and SMS, Baileys handles WhatsApp for free.
bun run baileys:pair to pair your WhatsApp{
"env": {
"BETTERCALLCLAUDE_PHONE_PROVIDER": "twilio",
"BETTERCALLCLAUDE_WHATSAPP_PROVIDER": "baileys",
"BETTERCALLCLAUDE_PHONE_ACCOUNT_SID": "your-account-sid",
"BETTERCALLCLAUDE_PHONE_AUTH_TOKEN": "your-auth-token",
"BETTERCALLCLAUDE_PHONE_NUMBER": "+15551234567",
"BETTERCALLCLAUDE_USER_PHONE_NUMBER": "+15559876543",
"BETTERCALLCLAUDE_OPENAI_API_KEY": "sk-..."
}
}
Voice calls and SMS go through Twilio. WhatsApp goes through Baileys (free).
Skip this step if you're using Baileys-only mode (Option C). Baileys doesn't need webhooks.
Tailscale Funnel provides free, stable public URLs for receiving webhooks from your phone provider.
Why Tailscale? Free unlimited tunnels, stable URLs (no random subdomains), enterprise-grade security.
Path: Better Call Claude uses
/bccpath (e.g.,https://your-hostname.ts.net/bcc) to avoid conflicts with other services.
First-time setup (automated):
When you first start the MCP server, it will guide you through setup:
Install Tailscale (if not installed):
# macOS
brew install tailscale
# Linux
curl -fsSL https://tailscale.com/install.sh | sh
Authenticate - The server will auto-run tailscale up and open your browser
Enable Funnel - Visit the URL shown in the terminal to enable Funnel on your tailnet (one-time admin step)
That's it! The server handles the rest automatically.
# Quick start with bunx (recommended)
bunx better-call-claude
# Or install globally
bun install -g better-call-claude
better-call-claude
Add to ~/.claude/settings.json:
{
"mcpServers": {
"better-call-claude": {
"command": "bunx",
"args": ["better-call-claude"],
"env": {
"BETTERCALLCLAUDE_PHONE_PROVIDER": "telnyx",
"BETTERCALLCLAUDE_PHONE_ACCOUNT_SID": "your-connection-id",
"BETTERCALLCLAUDE_PHONE_AUTH_TOKEN": "your-api-key",
"BETTERCALLCLAUDE_PHONE_NUMBER": "+15551234567",
"BETTERCALLCLAUDE_USER_PHONE_NUMBER": "+15559876543",
"BETTERCALLCLAUDE_OPENAI_API_KEY": "sk-..."
}
}
}
}
Note: Tailscale setup is automatic on first run. The server will guide you through installation and authentication if needed.
Restart Claude Code. Done!
| Variable | Description |
|---|---|
BETTERCALLCLAUDE_PHONE_PROVIDER | telnyx or twilio |
BETTERCALLCLAUDE_PHONE_ACCOUNT_SID | Provider account/connection ID |
BETTERCALLCLAUDE_PHONE_AUTH_TOKEN | Provider API key/auth token |
BETTERCALLCLAUDE_PHONE_NUMBER | Your Telnyx/Twilio phone number (E.164) |
BETTERCALLCLAUDE_WHATSAPP_NUMBER | WhatsApp number if different (e.g., Twilio Sandbox) |
BETTERCALLCLAUDE_USER_PHONE_NUMBER | Your personal phone number |
BETTERCALLCLAUDE_OPENAI_API_KEY | OpenAI API key for TTS/STT |
| Variable | Default | Description |
|---|---|---|
BETTERCALLCLAUDE_WHATSAPP_PROVIDER | (unset) | Set to baileys to enable free WhatsApp |
BETTERCALLCLAUDE_BAILEYS_AUTH_DIR | data/baileys-auth | Session credential directory |
Baileys-only mode: When
WHATSAPP_PROVIDER=baileysand no Twilio/Telnyx credentials are set, onlyUSER_PHONE_NUMBERis required. No Tailscale, no OpenAI key needed.
| Variable | Default | Description |
|---|---|---|
TAILSCALE_HOSTNAME | auto-detected | Override Tailscale hostname |
| Variable | Default | Description |
|---|---|---|
BETTERCALLCLAUDE_TTS_VOICE | onyx | OpenAI voice (alloy, echo, fable, onyx, nova, shimmer) |
BETTERCALLCLAUDE_PORT | 3333 | Local HTTP server port |
BETTERCALLCLAUDE_TRANSCRIPT_TIMEOUT_MS | 180000 | Speech timeout (3 min) |
BETTERCALLCLAUDE_STT_SILENCE_DURATION_MS | 800 | End-of-speech detection |
Call your Telnyx/Twilio phone number from your personal phone:
๐ฑ "Hey Claude, I need you to write unit tests for the payment module. Call me when you're done."
Claude will acknowledge and start working. When done, it calls you back.
Claude can initiate calls when it needs your input:
๐ค "I found 3 different approaches for the caching layer. Want me to explain them so you can choose?"
Text your Telnyx/Twilio number:
๐ฌ "Hey Claude, what's the status of the deployment?"
Claude will respond via SMS:
๐ค "Deployment is 80% complete. Running integration tests now. ETA: 5 minutes."
Claude can send you text updates:
๐ค "Build failed on line 42 of auth.ts. Reply with 'fix' to auto-fix or 'skip' to continue."
Send a WhatsApp message to your business number:
๐ฌ "Show me the error logs from the last hour"
Claude responds in WhatsApp:
๐ค "Found 3 errors:\n1. Connection timeout at 14:32\n2. Auth failure at 14:45\n3. Rate limit at 15:01\n\nWant me to investigate any of these?"
Claude can send rich WhatsApp messages:
๐ค "Code review complete! Found 2 issues:\nโข Line 23: Unused variable\nโข Line 67: Missing error handling\n\nReply 'fix' to auto-fix or 'details' for more info."
Start a task on voice and seamlessly continue on WhatsApp - Claude remembers everything.
Call Claude:
๐ "Hey Claude, run the todo app in dev mode and let's continue on WhatsApp"
Claude starts the app and enters WhatsApp listening mode:
๐ค "Todo app running on port 5173. Send me WhatsApp messages for more instructions."
Send WhatsApp message:
๐ฌ "Expose it via localtunnel and add the URL to allowed hosts"
Claude responds via WhatsApp:
๐ค "Done! Localtunnel URL: https://xyz.loca.lt - I've added it to vite.config.ts allowedHosts"
Continue the conversation:
๐ฌ "What's the public IP so I can access it remotely?"
๐ค "Your public IP is 203.0.113.42. Access the app at https://xyz.loca.lt"
Key phrases to trigger WhatsApp listening:
For testing, you can use Twilio's WhatsApp Sandbox instead of a full WhatsApp Business account.
{your-tailscale-url}/bcc/webhook/twilio/whatsapp"BETTERCALLCLAUDE_WHATSAPP_NUMBER": "+14155238886"
Note: Sandbox requires re-joining every 72 hours.
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your Phone โโโโโโโโโ>โ Phone Provider โ
โ ๐ Voice โ<โโโโโโโโโ (Telnyx/Twilio) โ
โ ๐ฌ SMS โ โ โ
โ ๐ฑ WhatsApp โ โ โข Voice API โ
โโโโโโโโโโโโโโโโโโโ โ โข Messaging API โ
โ โข WhatsApp Business API โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
โ webhooks
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Transport Layer โ
โ (Tailscale Funnel) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude Code โโโโโโโโโบ โ Better Call Claude MCP Server โ
โ (your IDE) โ stdio โ (local, port 3333) โ
โโโโโโโโโโโโโโโโโโโ โ โ
โ โข Voice handling โ
โ โข SMS handling โ
โ โข WhatsApp handling โ
โ โข Conversation management โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenAI API โ
โ (Whisper STT + TTS) โ
โ (Voice calls only) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Voice:
SMS:
WhatsApp:
receive_inbound_callAccept and process an incoming call from the user.
initiate_callStart a phone call to the user.
const { callId, response } = await initiate_call({
message: "Hey! I finished the refactor. What should I work on next?"
});
continue_callContinue an active call with follow-up messages.
const response = await continue_call({
call_id: callId,
message: "Got it. Should I also add the caching layer?"
});
speak_to_userSpeak without waiting for a response (for acknowledgments).
await speak_to_user({
call_id: callId,
message: "Let me search for that. One moment..."
});
end_callEnd an active call.
await end_call({
call_id: callId,
message: "Perfect, I'll get started. Talk soon!"
});
get_call_statusCheck status of current or recent calls.
const status = await get_call_status({ call_id: callId });
// { state: "active", duration: 45, transcript: [...] }
receive_inbound_messageCheck for incoming SMS or WhatsApp messages.
const result = await receive_inbound_message({
channel: "any", // "sms", "whatsapp", or "any"
timeout_ms: 5000 // How long to wait
});
// { success: true, channel: "sms", conversation_id: "...", message: "Deploy now" }
send_smsSend an SMS message to the user.
const result = await send_sms({
message: "Build complete! 42 tests passed.",
wait_for_reply: true,
timeout_ms: 180000
});
// { success: true, conversation_id: "...", reply: "Great, deploy it" }
send_whatsappSend a WhatsApp message to the user.
const result = await send_whatsapp({
message: "Found 3 issues in code review:\nโข Issue 1\nโข Issue 2\nโข Issue 3",
wait_for_reply: true
});
// { success: true, conversation_id: "...", reply: "Fix issue 1 first" }
reply_to_conversationReply to an existing conversation (works for voice, SMS, or WhatsApp).
const result = await reply_to_conversation({
conversation_id: "abc-123",
message: "Got it, fixing issue 1 now.",
wait_for_reply: false
});
get_conversation_historyGet the full message history for any conversation.
const history = await get_conversation_history({
conversation_id: "abc-123"
});
// { success: true, channel: "whatsapp", messages: [...], state: "active" }
| Service | Cost |
|---|---|
| Telnyx outbound calls | ~$0.007/min |
| Twilio outbound calls | ~$0.014/min |
| OpenAI Whisper (STT) | ~$0.006/min |
| OpenAI TTS | ~$0.015/1K chars |
Typical voice conversation: ~$0.03-0.05/minute
| Service | Cost |
|---|---|
| Telnyx SMS (US) | ~$0.004/message |
| Twilio SMS (US) | ~$0.0079/message |
Typical SMS exchange: ~$0.01-0.02/exchange
| Service | Cost |
|---|---|
| Baileys (personal WhatsApp) | Free |
| Telnyx WhatsApp | ~$0.005/message |
| Twilio WhatsApp | ~$0.005/message + conversation fees |
Typical WhatsApp exchange: Free (Baileys) or ~$0.01-0.02 (Twilio/Telnyx)
| Service | Cost |
|---|---|
| Phone number | ~$1/month |
| Tailscale Funnel | Free |
claude --debugBETTERCALLCLAUDE_USER_PHONE_NUMBER is correctBETTERCALLCLAUDE_TTS_VOICE=novaBETTERCALLCLAUDE_STT_SILENCE_DURATION_MS=1000/webhook/telnyx/sms or /webhook/twilio/sms/webhook/telnyx/whatsapp or /webhook/twilio/whatsappThe QR code cannot display inside the MCP server (stdout is reserved for MCP protocol). Run the pairing script separately:
cd /path/to/better-call-claude
bun run baileys:pair
Once paired, the session is saved and the MCP server connects automatically.
Run bun run baileys:pair to pair your WhatsApp first, then restart Claude Code.
Delete the auth directory and re-pair:
rm -rf data/baileys-auth
bun run baileys:pair
[Baileys] Connected in stderr)sudo systemctl start tailscaled && tailscale uptailscale funnel status shows /bcc pointing to your port/bcc path)curl https://your-hostname.ts.net/bcc/health# Clone the repo
git clone https://github.com/sns45/better-call-claude
cd better-call-claude
# Install dependencies
bun install
# Run in development mode
bun run dev
# Start the MCP server
bun run dev
# In another terminal, test with MCP inspector
npx @anthropics/mcp-inspector
PRs welcome! Please see CONTRIBUTING.md for guidelines.
MIT
Be the first to review this server!
by Modelcontextprotocol ยท Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.
by Microsoft ยท Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace ยท Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm โ conversationally
by mcp-marketplace ยท Finance
Free stock data and market news for any MCP-compatible AI assistant.