mcp-twilio-sms

mcp-twilio-sms

MCP server for sending SMS messages via Twilio and checking their delivery status through MCP tools.

Category
Visit Server

README

MCP Twilio SMS

MCP server that lets Claude send SMS text messages via Twilio. Single-file Python server (server.py) exposing two MCP tools: send_sms and get_sms_status.

How It Works

Claude → send_sms(to, body)              → Twilio API → SMS delivered
Claude → get_sms_status(message_sid)     → Twilio API → delivery status

The server speaks MCP over stdio. Claude (Code or Desktop) launches it as a subprocess, Twilio credentials are supplied via environment variables, and the two tools wrap the official twilio Python SDK.

Tools

send_sms

Send a text message. Parameters:

  • to — Recipient phone number in E.164 format (e.g. +33612345678)
  • body — Message text (max 1600 characters)
  • from_number — Optional sender override (default: TWILIO_PHONE_NUMBER env var)

Returns message_sid, status, to, from, and segments.

get_sms_status

Check delivery status of a sent message by its message_sid. Returns one of: queued, sending, sent, delivered, failed, or undelivered (plus error_code/error_message on failure).

Setup

1. Prerequisites

  • uv — install with curl -LsSf https://astral.sh/uv/install.sh | sh
  • Python ≥ 3.11 (uv will fetch it if missing)
  • A Twilio account

2. Get Twilio credentials

From the Twilio Console:

  1. Copy your Account SID and Auth Token from the dashboard.
  2. Get an SMS-capable phone number (Console → Phone Numbers → Buy a number, or use the trial number). It must be in E.164 format, e.g. +1234567890.

Trial accounts can only send SMS to phone numbers you have verified in the Console (Verified Caller IDs), and messages are prefixed with a trial notice. Upgrade the account to remove both limits.

3. Install dependencies

git clone git@github.com:sebastienfi/mcp-twilio-sms.git
cd mcp-twilio-sms
uv sync

4. Configure secrets

Create a secrets file (shared with other MCP servers) and lock it down:

mkdir -p ~/.config/mcp
cat > ~/.config/mcp/secrets.env <<'EOF'
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=your-auth-token
TWILIO_PHONE_NUMBER=+1234567890
EOF
chmod 600 ~/.config/mcp/secrets.env

See .env.example for the full list of variables.

5. Verify it runs

# Load secrets and start the server (Ctrl-C to stop — it waits for a client on stdio)
set -a; source ~/.config/mcp/secrets.env; set +a
uv run python server.py

The server has no console UI; it waits for an MCP client on stdio. Register it with Claude (below) to actually use it.

6. Register with Claude Code

Add to ~/.claude.json under mcpServers (use absolute paths):

{
  "twilio-sms": {
    "command": "/bin/bash",
    "args": [
      "-c",
      "set -a; source /Users/you/.config/mcp/secrets.env; set +a; exec /opt/homebrew/bin/uv run --directory /path/to/mcp-twilio-sms python server.py"
    ]
  }
}

Or with the CLI:

claude mcp add twilio-sms -- /bin/bash -c \
  "set -a; source ~/.config/mcp/secrets.env; set +a; exec uv run --directory $(pwd) python server.py"

Restart Claude Code, then confirm with /mcp that twilio-sms is connected.

7. Register with Claude Desktop

Add the same block to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Use absolute paths for both uv and the project directory, then restart Claude Desktop.

Running directly

server.py carries PEP 723 inline metadata, so it runs standalone without uv sync:

uv run --script server.py

Development

uv sync                   # Install dependencies
uv run python server.py   # Run the MCP server (stdio transport)

No test suite or linter is configured.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured