Make outbound phone calls via Twilio with AI
## Twilio Voice MCP Server: Programmable Voice The **Twilio Voice MCP Server** provides voice calling capabilities from Twilio within Google Antigravity. This enables making and receiving phone calls, building IVR systems, and voice-based automation. ### Why Twilio Voice MCP? Twilio Voice powers phone automation: - **Global Calling**: 180+ countries - **Programmable IVR**: Custom call flows - **Recording**: Call recording and storage - **Transcription**: Speech to text - **SIP**: Enterprise telephony integration ### Key Features #### 1. Make Calls ```python from twilio.rest import Client client = Client(account_sid, auth_token) call = client.calls.create( twiml="<Response><Say>Hello! Your order has shipped.</Say></Response>", to="+15559876543", from_="+15551234567" ) print(f"Call SID: {call.sid}") ``` #### 2. IVR Menu ```python from twilio.twiml.voice_response import VoiceResponse, Gather @app.route("/voice", methods=["POST"]) def voice_menu(): resp = VoiceResponse() gather = Gather(num_digits=1, action="/handle-key") gather.say("Press 1 for order status. Press 2 for support.") resp.append(gather) return str(resp) @app.route("/handle-key", methods=["POST"]) def handle_key(): digit = request.form["Digits"] resp = VoiceResponse() if digit == "1": resp.say("Your order is on the way!") elif digit == "2": resp.dial("+15551234567") # Transfer to support return str(resp) ``` #### 3. Recording ```python # Record call call = client.calls.create( twiml="<Response><Record maxLength='60' action='/recording-complete'/></Response>", to="+15559876543", from_="+15551234567" ) # Get recording recordings = client.recordings.list(call_sid=call.sid) for recording in recordings: print(f"Recording URL: {recording.uri}") ``` ### Configuration ```json { "mcpServers": { "twilio-voice": { "command": "npx", "args": ["-y", "@anthropic/mcp-twilio-voice"], "env": { "TWILIO_ACCOUNT_SID": "ACxxxxx", "TWILIO_AUTH_TOKEN": "your-token", "TWILIO_PHONE_NUMBER": "+15551234567" } } } } ``` ### Use Cases **Voice Alerts**: Critical notifications via phone. **IVR Systems**: Automated phone menus. **Call Tracking**: Record and analyze calls. The Twilio Voice MCP Server brings voice calling to Antigravity.
{
"mcpServers": {
"twilio-voice": {
"mcpServers": {
"twilio-voice": {
"env": {
"TWILIO_AUTH_TOKEN": "YOUR_TOKEN",
"TWILIO_ACCOUNT_SID": "YOUR_SID",
"TWILIO_PHONE_NUMBER": "+1234567890"
},
"args": [
"-y",
"@lukaskai/voice-call-mcp"
],
"command": "npx"
}
}
}
}
}