by twilio-labs
Transforms OpenAPI specifications into Model Context Protocol (MCP) tools and exposes the full suite of Twilio APIs for AI assistants and other MCP‑compatible services.
Twilio MCP Monorepo provides a Model Context Protocol server that can either generate MCP tools directly from any OpenAPI spec or serve all public Twilio APIs as MCP tools. It enables AI assistants and other services to interact with Twilio functionality through a standardized protocol.
The quickest way is to run the server with npx:
{
"mcpServers": {
"twilio": {
"command": "npx",
"args": ["-y", "@twilio-alpha/mcp", "YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET"]
}
}
}
Replace the credential placeholder with your Twilio Account SID, API Key, and API Secret. Additional configuration can be supplied via command‑line flags, e.g., --services
or --tags
to limit which APIs are exposed, or --apiPath
when using the OpenAPI MCP Server.
mcp
(full Twilio API exposure) and openapi-mcp-server
(any OpenAPI spec).--services
and --tags
to stay within LLM context limits.npx
without a global install.npm test
, npm run lint
).Q: Do I need to install anything globally?
A: No. The recommended approach is to run the server with npx
, which fetches the package on demand.
Q: How do I limit the APIs exposed to stay within LLM token limits?
A: Use the --services
or --tags
flags to select specific Twilio services.
Q: Can I serve my own OpenAPI definition?
A: Yes. Use the openapi-mcp-server
package and provide the spec path with --apiPath
.
Q: What if I encounter authentication errors?
A: Verify that the credential string follows ACCOUNT_SID/API_KEY:API_SECRET
and that the API Key has the required permissions.
Q: Is there any risk in running community MCP servers alongside the official one? A: The ETI team recommends running only official Twilio MCP servers to prevent untrusted code from accessing your Twilio data.
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.
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "twilio": { "command": "npx", "args": [ "-y", "@twilio-alpha/mcp", "YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET" ], "env": { "API_KEY": "<YOUR_API_KEY>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.