Twilio
VerifiedCommunication APIs for SMS, voice, and video
What is Twilio?
Twilio is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to twilio mcp server enables ai agents to send sms, make voice calls, manage phone numbers, and handle communication workflows through twilio's global infrastructure.
Twilio MCP server enables AI agents to send SMS, make voice calls, manage phone numbers, and handle communication workflows through Twilio's global infrastructure.
This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- SMS sending and receiving
- Voice call management
- Phone number provisioning
- Message templates
- Call recording
- Webhook handling
Use Cases
Maintainer
Works with
Installation
NPM
npm install @twilio/mcp-serverManual Installation
npx @twilio/mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Security
Authentication
Performance
Response Metrics
Resource Usage
How to Set Up and Use Twilio
The Twilio MCP server connects AI assistants directly to Twilio's communications platform, enabling programmatic control over SMS messaging, voice calls, phone number provisioning, and call recordings through natural language. It wraps Twilio's REST APIs as MCP tools so that Claude and other MCP clients can send messages, retrieve call logs, and manage phone numbers without requiring custom integration code. Teams building communication workflows or needing to automate customer outreach will benefit most from this server.
Prerequisites
- Node.js 18+ and npm installed
- A Twilio account with an Account SID and Auth Token (console.twilio.com)
- At least one purchased or verified Twilio phone number
- An MCP-compatible client such as Claude Desktop or Claude Code
Install the Twilio MCP server
Install the package globally or use npx to run it directly without a permanent installation.
npm install -g @twilio/mcp-server
# or run directly:
npx @twilio/mcp-serverLocate your Twilio credentials
Log in to the Twilio Console at console.twilio.com. Your Account SID and Auth Token are on the dashboard homepage. Copy both values.
Configure environment variables
Set your Twilio credentials as environment variables that the server will read at startup.
export TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export TWILIO_AUTH_TOKEN=your_auth_token_hereAdd the server to your MCP client configuration
Edit your Claude Desktop or Claude Code config file to register the Twilio MCP server with your credentials.
Test the connection
Ask your AI assistant to list your Twilio phone numbers. A successful response confirms credentials are working and the server is connected.
Twilio Examples
Client configuration
Claude Desktop config for the Twilio MCP server using npx with credentials passed as environment variables.
{
"mcpServers": {
"twilio": {
"command": "npx",
"args": ["-y", "@twilio/mcp-server"],
"env": {
"TWILIO_ACCOUNT_SID": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"TWILIO_AUTH_TOKEN": "your_auth_token_here"
}
}
}
}Prompts to try
Example prompts for sending messages and managing Twilio resources through an AI assistant.
- "Send an SMS to +1234567890 saying 'Your order has shipped'"
- "List all phone numbers on my Twilio account"
- "Show me the call log for the last 24 hours"
- "What messages were sent from +1987654321 this week?"
- "Retrieve the recording from call SID CAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Troubleshooting Twilio
Authentication error: 20003 or 'Permission denied' when calling Twilio APIs
Verify that TWILIO_ACCOUNT_SID starts with 'AC' and that TWILIO_AUTH_TOKEN is the live token, not the test token. Regenerating the auth token in the Twilio Console resets it.
SMS fails to send with error about an unverified number
On trial Twilio accounts, you can only send to verified caller IDs. Upgrade to a paid account or add the recipient number to your verified callers list at console.twilio.com/phone-numbers/verified.
npx @twilio/mcp-server exits immediately with no output
Ensure Node.js 18+ is installed (node --version). If the package is not found, run npm install -g @twilio/mcp-server first, or check that your npm registry is accessible.
Frequently Asked Questions about Twilio
What is Twilio?
Twilio is a Model Context Protocol (MCP) server that communication apis for sms, voice, and video It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Twilio?
Install via npm with the command: npm install @twilio/mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Twilio?
Twilio works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Twilio free to use?
Yes, Twilio is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Twilio Alternatives — Similar Communication Servers
Looking for alternatives to Twilio? Here are other popular communication servers you can use with Claude, Cursor, and VS Code.
Slack
★ 86.1kEnables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
LibreChat
★ 37.3kEnhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
Note Gen
★ 11.9kA cross-platform Markdown AI note-taking software.
DeepChat
★ 5.8k🐬DeepChat - A smart assistant that connects powerful AI to your personal world
WhatsApp MCP
★ 5.7kConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without
Apple
★ 3.1kEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
Browse More Communication MCP Servers
Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Twilio in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Twilio?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.