# Twilio (MCP Server)

> Expose Twilio's APIs for messaging, voice and more as MCP tools

- Type: MCP server
- Publisher: Twilio (official)
- Categories: Communication, Development
- Website: https://github.com/twilio-labs/mcp
- Source: https://github.com/twilio-labs/mcp
- Transport: stdio
- Launch command: npx -y @twilio-alpha/mcp YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET
- Sign-in: api-key
- GitHub stars: 113
- Listed: 2025-03-24

## About

Twilio Labs' MCP server generates MCP tools from Twilio's OpenAPI specs, so agents can call Twilio APIs such as messaging and phone numbers. It runs locally via npx and authenticates with your Account SID plus an API key and secret passed as an argument. It is published as an alpha package and lets you filter which services are loaded.

## Install

1. **Add the server to Codex**

   Codex CLI:

   ```bash
   codex mcp add twilio -- npx -y @twilio-alpha/mcp YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET
   ```

   config.toml:

   ```toml
   [mcp_servers.twilio]
   command = "npx"
   args = ["-y", "@twilio-alpha/mcp", "YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET"]
   ```

   Agents SDK:

   ```python
   from agents import Agent, Runner
   from agents.mcp import MCPServerStdio
   
   async with MCPServerStdio(
       name="Twilio",
       params={"command": "npx", "args": ["-y", "@twilio-alpha/mcp", "YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET"]},
   ) as server:
       agent = Agent(name="Assistant", mcp_servers=[server])
       result = await Runner.run(agent, "Send an SMS to +15551234567 saying the order has shipped")
       print(result.final_output)
   ```

## Example prompts

- "Send an SMS to +15551234567 saying the order has shipped"
- "List the phone numbers on my Twilio account"
- "Show the last 20 messages that failed to deliver"
- "Buy a local phone number with a 415 area code"

## Also available as

- plugin: [Twilio Developer Kit](https://chatgptplugins.directory/plugins/twilio-developer-kit.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/twilio · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
