Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

sms-mcp-server

MCP.Pizza Chef: YiyangLi

sms-mcp-server is a Model Context Protocol (MCP) server that allows AI assistants like Claude to send SMS and MMS messages through Twilio. It features secure credential handling, pre-built messaging prompts, and requires Node.js 18+. This server facilitates real-time, programmatic SMS communication integrated into AI workflows.

Use This MCP server To

Send SMS notifications from AI assistants using Twilio Enable AI-driven customer support via SMS messaging Automate SMS alerts for system monitoring or incidents Integrate SMS communication into AI-enhanced workflows Send MMS messages with media content through AI commands Securely manage Twilio credentials for messaging Use pre-built prompts for common SMS scenarios Test SMS sending capabilities in AI development environments

README

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

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):
      nvm install 18.14.2
      nvm alias default 18.14.2
    • If you encounter any errors in Claude Desktop, try running the following command in your terminal to verify the installation:
      npx -y @yiyang.1i/sms-mcp-server

Configuration

The server requires three environment variables:

  • ACCOUNT_SID: Your Twilio account SID
  • AUTH_TOKEN: Your Twilio auth token
  • FROM_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

{
  "mcpServers": {
    "twilio": {
      "command": "npx",
      "args": [
        "-y",
        "@yiyang.1i/sms-mcp-server"
      ],
      "env": {
        "ACCOUNT_SID": "your_account_sid",
        "AUTH_TOKEN": "your_auth_token",
        "FROM_NUMBER": "your_twilio_number"
      }
    }
  }
}

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:

  1. Simple SMS:
Send a text message to the number +11234567890 saying "Don't forget about dinner tonight!"
  1. Creative SMS:
Write a haiku about autumn and send it to my number +11234567890

Important Notes

  1. Phone Number Format: All phone numbers must be in E.164 format (e.g., +11234567890)
  2. Rate Limits: Be aware of your Twilio account's rate limits and pricing
  3. Security: Keep your Twilio credentials secure and never commit them to version control

Troubleshooting

Common error messages and solutions:

  1. "Phone number must be in E.164 format"

    • Make sure the phone number starts with "+" and the country code
  2. "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.

sms-mcp-server FAQ

How do I configure the sms-mcp-server with Twilio credentials?
Set environment variables ACCOUNT_SID, AUTH_TOKEN, and FROM_NUMBER with your Twilio account SID, auth token, and phone number respectively.
What Node.js version is required to run sms-mcp-server?
Node.js version 18 or higher is required, with recommendations to use nvm for installation.
Can sms-mcp-server send MMS messages or only SMS?
It supports sending both SMS and MMS messages via Twilio.
Is sms-mcp-server compatible with AI assistants other than Claude?
Yes, it supports Claude and other AI assistants that implement the MCP protocol.
How does sms-mcp-server handle Twilio credentials securely?
Credentials are managed via environment variables and not hardcoded, ensuring secure handling.
Can I use sms-mcp-server to send bulk SMS messages?
While primarily designed for AI-driven messaging, it can be adapted for bulk messaging within Twilio limits.
How do I test if sms-mcp-server is installed correctly?
Run `npx -y @yiyang.1i/sms-mcp-server` in your terminal to verify installation and functionality.
Does sms-mcp-server support integration with other LLM providers like OpenAI or Gemini?
Yes, it works with any MCP-compatible AI assistants including OpenAI, Claude, and Gemini.