Twilio

Verified
v1.0.0Communicationstable

Communication APIs for SMS, voice, and video

smsvoicecommunicationmessagingtelephony
Share:
290
Stars
0
Downloads
0
Weekly
0/5

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

Send SMS and voice messages
Build phone and video communication systems
Integrate messaging into applications
Twilio Inc.

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedJun 14, 2025
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npm install @twilio/mcp-server

Manual Installation

npx @twilio/mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Security

Authentication

RequiredYes

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-server
2

Locate 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.

3

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_here
4

Add 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.

5

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.

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.

Quick Config Preview

{ "mcpServers": { "twilio": { "command": "npx", "args": ["-y", "@twilio/mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides