FlowTruxFlowTrux/Docs
Docsmcp

Twilio MCP Server

Send SMS, make voice calls, and send WhatsApp messages from workflows

The Twilio MCP server lets your workflows send SMS messages, make voice calls with TwiML instructions, and send WhatsApp messages.

Setup

  1. Sign up at twilio.com and get your credentials from the Twilio Console dashboard.
  2. Go to Settings > MCP Servers > Add Server.
  3. Select Twilio.
  4. Enter the configuration:
FieldRequiredDescription
accountSidYesTwilio Account SID (starts with AC)
authTokenYesTwilio Auth Token
fromNumberNoDefault sender phone number in E.164 format (e.g., +14155551234)
  1. Click Save.

For WhatsApp, you need a Twilio-approved WhatsApp sender. Follow Twilio's WhatsApp setup guide to configure your number.

Tools

send_sms

Send an SMS message.

ParameterTypeRequiredDescription
tostringYesRecipient phone number in E.164 format (e.g., +14155551234)
bodystringYesSMS message body (max 1600 characters)
fromstringNoSender number (defaults to configured fromNumber)

Returns the message SID and delivery status.

make_call

Make a voice call using TwiML for call instructions.

ParameterTypeRequiredDescription
tostringYesRecipient phone number in E.164 format
twimlstringYesTwiML instructions (e.g., <Response><Say>Hello!</Say></Response>)
fromstringNoCaller number (defaults to configured fromNumber)
timeoutnumberNoSeconds to wait for answer (default: 30, max: 600)

send_whatsapp

Send a WhatsApp message.

ParameterTypeRequiredDescription
tostringYesRecipient phone number in E.164 format
bodystringYesMessage body
fromstringNoSender number (defaults to configured fromNumber with whatsapp: prefix)
media_urlstringNoURL of media to attach (image, PDF, etc.)

The whatsapp: prefix is added automatically to both sender and recipient numbers if not already present.

get_message_status

Check the delivery status of a sent message.

ParameterTypeRequiredDescription
message_sidstringYesMessage SID (returned from send_sms or send_whatsapp)

Returns status, delivery timestamps, price, and any error details.

list_messages

List recent sent and received messages.

ParameterTypeRequiredDescription
tostringNoFilter by recipient number
fromstringNoFilter by sender number
limitnumberNoMax messages to return (default: 20, max: 100)

get_account_info

Get Twilio account details and current balance. No required parameters.

Example Workflow

An alert notification workflow:

  1. Trigger -- Webhook receives an alert from a monitoring system
  2. Agent -- Analyze alert severity and compose message
  3. Logic -- Switch on severity level
    • Critical: twilio:make_call with TwiML voice alert
    • High: twilio:send_sms with alert details
    • Medium: twilio:send_whatsapp with summary