Exposes Twilio's APIs to AI assistants, allowing interaction with Twilio's communication services like messaging, voice calls, and other Twilio products through a Model Context Protocol server.
This is a monorepo for the Model Context Protocol server that exposes all of Twilio APIs.
What is MCP?
The Model Context Protocol (MCP) is a protocol for exchanging model context information between AI tools and services. This implementation allows you to expose Twilio's APIs to AI assistants and other tools that support the MCP protocol.
Packages
This monorepo contains two main packages:
- mcp - MCP Server for all of Twilio's Public API
- openapi-mcp-server - An MCP server that serves the given OpenAPI spec
Each package has its own comprehensive README with detailed documentation:
Quick Start
The easiest way to get started is by using npx:
Visit Twilio API Keys docs for information on how to find/create your API Key and Secret.
Security Recommendations
To guard against injection attacks that may allow untrusted systems access to your Twilio data, the ETI team advises users of Twilio MCP servers to avoid installing or running any community MCP servers alongside our official ones. Doing so helps ensure that only trusted MCP servers have access to tools interacting with your Twilio account, reducing the risk of unauthorized data access.
Basic Configuration Options
Both packages accept configuration parameters. Here's a brief overview:
- MCP Server: Use
--services
and--tags
to filter which APIs to expose - OpenAPI MCP Server: Use
--apiPath
to specify OpenAPI spec files location
For complete configuration details, refer to the package-specific documentation linked above.
Development
Troubleshooting Common Issues
- Context Size Limitations: Due to LLM context limits, load specific APIs using
--services
or--tags
- Authentication Issues: Verify your Twilio API credentials format and permissions
- API Versioning: Check you're using the correct API version (v1, v2, v3) for your needs
For detailed troubleshooting guidance, see the package-specific documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the ISC License - see the LICENSE file for details.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An implementation of the Model Context Protocol (MCP) server that exposes Twilio APIs to AI assistants and tools, allowing them to interact with Twilio services through the MCP protocol.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server implementation that enables connection between OpenAI APIs and MCP clients for coding assistance with features like CLI interaction, web API integration, and tool-based architecture.Last updated -28Python
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI agents like Claude to interact with the Aligo SMS API to send text messages and retrieve related information.Last updated -JavaScriptMIT License
- -securityFlicense-qualityAn MCP server that enables interaction with Twilio's Routes service through natural language, allowing users to manage SIP domains, trunks, and call routing configurations.Last updated -Python
- -securityAlicense-qualityA Model Context Protocol (MCP) server that provides AI capabilities to Teambition applications, enabling programmatic access to user management, organization data, and project collaboration features through natural language.Last updated -TypeScriptMIT License