Monorepo providing 1) OpenAPI to MCP Tool generator 2) Exposing all of Twilio's API as MCP Tools
This is a monorepo for the Model Context Protocol server that exposes all of Twilio APIs.
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.
This monorepo contains two main packages:
Each package has its own comprehensive README with detailed documentation:
The easiest way to get started is by using npx:
{
"mcpServers": {
"twilio": {
"command": "npx",
"args": [
"-y",
"@twilio-alpha/mcp",
"YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET"
]
}
}
}
Visit Twilio API Keys docs for information on how to find/create your API Key and Secret.
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.
Both packages accept configuration parameters. Here's a brief overview:
--services
and --tags
to filter which APIs to expose--apiPath
to specify OpenAPI spec files locationFor complete configuration details, refer to the package-specific documentation linked above.
# Run tests
npm test
# Run linting
npm run lint
# Fix linting issues
npm run lint:fix
--services
or --tags
For detailed troubleshooting guidance, see the package-specific documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the ISC License - see the LICENSE file for details.