Twilio MCP Server
A Model Context Protocol (MCP) server that enables Claude and other AI assistants to send SMS and MMS messages using Twilio.
Demo
Features
- Send SMS messages 📱
- Pre-built prompts for common messaging scenarios 📝
- Secure handling of Twilio credentials 🔒
Requirements
- Node.js >= 18
- If you need to update Node.js, we recommend using
nvm
(Node Version Manager):Copy - If you encounter any errors in Claude Desktop, try running the following command in your terminal to verify the installation:Copy
- If you need to update Node.js, we recommend using
Configuration
The server requires three environment variables:
ACCOUNT_SID
: Your Twilio account SIDAUTH_TOKEN
: Your Twilio auth tokenFROM_NUMBER
: Your Twilio phone number (in E.164 format, e.g., +11234567890)
Claude Desktop Configuration
To use this server with Claude Desktop, add the following to your configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
After that, restart Claude Desktop to reload the configuration. If connected, you should see Twilio under the 🔨 menu.
Example Interactions with Claude
Here are some natural ways to interact with the server through Claude:
- Simple SMS:
- Creative SMS:
Important Notes
- Phone Number Format: All phone numbers must be in E.164 format (e.g., +11234567890)
- Rate Limits: Be aware of your Twilio account's rate limits and pricing
- Security: Keep your Twilio credentials secure and never commit them to version control
Troubleshooting
Common error messages and solutions:
- "Phone number must be in E.164 format"
- Make sure the phone number starts with "+" and the country code
- "Invalid credentials"
- Double-check your ACCOUNT_SID and AUTH_TOKEN. You can copy them from the Twilio Console
Contributing
Contributions are welcome! Please read our contributing guidelines before submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Security
Please do not include any sensitive information (like phone numbers or Twilio credentials) in GitHub issues or pull requests.
This server cannot be installed
A Model Context Protocol server that enables Claude and other AI assistants to send SMS and MMS messages using Twilio.
Related MCP Servers
- -securityFlicense-qualityAn MCP (Model Context Protocol) server that lets users send SMS messages through Twilio API directly from Claude Desktop via natural language commands.Last updated -1TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables AI models and applications to interact directly with Twitter/X, providing capabilities to create posts, reply to tweets, retrieve user data, and manage account actions.Last updated -874TypeScriptMIT License
- -securityFlicense-qualityA server that connects Claude AI to Twilio through the Model Context Protocol, enabling prompt-assisted management of Twilio accounts, phone numbers, and regulatory compliance.Last updated -Python
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI agents like Claude to interact with the Aligo SMS API to send text messages and retrieve related information.Last updated -JavaScriptMIT License