Twilio MCP Server
for AI Agents
Connect your AI agent to StackOne's Twilio MCP server and give it 59 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
59 Agent Actions
Create, read, update, and delete across Twilio — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Twilio MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Twilio tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Twilio call.
Tools Discovery →What is the Twilio MCP Server?
A Twilio MCP server lets AI agents read and write Twilio data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Twilio MCP server ships with 59 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Twilio MCP Tools
Every action from Twilio's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Messages
- Create Message
Create a new SMS or MMS message
- List Messages
List all messages sent or received by your Twilio account
- Get Message
Retrieve details of a specific message by SID
- Update Message
Update a message (redact message body or cancel scheduled message)
- Delete Message
Delete a message record
Message Medias
- List Message Media
List all media associated with a message
- Get Message Media
Retrieve details of a specific media item attached to a message
- Delete Message Media
Delete a specific media instance
Calls
- List Calls
List all calls made to and from your Twilio account
- Get Call
Retrieve details of a specific call by SID
- Update Call
Modify an in-progress call (redirect, cancel, or complete)
- Delete Call
Delete a call record
Accounts
- Create Account
Create a new account under the main account
- Get Account
Retrieve account information and current status
- List Accounts
List all accounts including the main account and subaccounts
- Update Account
Update account properties (friendly name or status)
Conversations
- Create Conversation
Create a new conversation
- List Conversations
List all conversations in your account
- Get Conversation
Retrieve details of a specific conversation by SID
- Update Conversation
Update an existing conversation
- Delete Conversation
Delete a conversation
Conversation Messages
- Create Conversation Message
Create a new message in a conversation
- List Conversation Messages
List all messages in a conversation
- Get Conversation Message
Retrieve details of a specific message in a conversation
- Update Conversation Message
Update an existing message in a conversation
- Delete Conversation Message
Delete a message from a conversation
Conversation Participants
- Create Conversation Participant
Create a new participant in a conversation
- List Conversation Participants
List all participants in a conversation
- Get Conversation Participant
Retrieve details of a specific participant in a conversation
- Update Conversation Participant
Update a participant in a conversation
- Delete Conversation Participant
Delete a participant from a conversation
Conversation Users
- Create Conversation User
Create a new user in the conversations service
- List Conversation Users
List all users in the conversations service
- Get Conversation User
Retrieve details of a specific user
- Update Conversation User
Update an existing user
- Delete Conversation User
Delete a user from the conversations service
Unified Organizations
- List Unified Organizations
List unified organizations for the connected Twilio account.
- Get Unified Organization
Get a unified Twilio organization by ID.
Unified Roles
- List Unified Roles
List unified roles in the connected Twilio Organization.
- Get Unified Role
Get a unified Twilio Organization role by ID.
Unified Users
- List Unified Users
List unified users in the connected Twilio Organization.
- Get Unified User
Get a unified Twilio Organization user by ID.
Event Sinks
- Create Event Sink
Create a new Event Streams Sink (webhook destination) to receive Twilio events.
- Get Event Sink
Retrieve details of a specific Event Streams Sink by SID.
- List Event Sinks
List all Event Streams Sinks in the Twilio account.
- Delete Event Sink
Delete an Event Streams Sink. The Sink must not be referenced by any active Subscriptions.
Event Subscriptions
- Create Event Subscription
Create a new Event Streams Subscription to link event types to a Sink.
- Get Event Subscription
Retrieve details of a specific Event Streams Subscription by SID.
- List Event Subscriptions
List all Event Streams Subscriptions in the Twilio account.
- Delete Event Subscription
Delete an Event Streams Subscription. Events will stop being delivered to the associated Sink.
Event Types
- List Event Types
List all available Twilio Event Streams event types.
- Get Event Type
Retrieve details of a specific Event Streams event type.
Other (7)
- List Call Recordings
List all recordings for a specific call
- List Conversation Webhooks
List all webhooks configured for a specific conversation
- List User Conversations
List all conversations a specific user belongs to
- Get Unified Credentials
Get the current Twilio Organizations connection's unified credentials and identity.
- List Subscribed Events
List all event types subscribed under a specific Subscription.
- Make Call
Initiate an outbound call
- IAM Auth Test
Validate the current OAuth client_credentials token against the Twilio Organizations API and return the raw, unmapped Role API response (limited to 1 record). Bypasses the unified IAM credentials schema — use this for debugging token expiry, scope mismatches, or organizationSid mis-configuration, not for normal app flows.
Set Up Your Twilio MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Twilio in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What Hundreds of Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building hundreds of connectors that serve both, here's when each approach wins.
14 min read
Twilio MCP Server FAQ
Does StackOne have a Twilio MCP server?
Twilio MCP server vs direct API integration — what's the difference?
How does Twilio authentication work for AI agents?
origin_owner_id.Are Twilio MCP tools vulnerable to prompt injection?
What is the context bloat of a Twilio agent and how do I avoid it?
Can I limit which actions my Twilio agent can access?
Can I create custom agent actions for my Twilio MCP server?
When should I NOT use a Twilio MCP server?
What AI frameworks and AI clients does the StackOne Twilio MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.