Build Communications Applications with your Twilio MCP and the OpenAI Responses API

May 21, 2025
Written by
Paul Kamp
Twilion

Our friends at OpenAI just added support for remote MCP servers in their Responses API, building on the release of MCP support in their Agents SDK

Model Context Protocol (or MCP for short) is a protocol that standardizes how applications provide context to LLMs. OpenAI’s release enables developers to connect their models to tools and data made accessible via MCP servers across the internet with just a few lines of code.

If you’re eager to learn how to use remote MCP servers with your setup, we demonstrate some examples below. Here’s a demo of what’s possible:

 

Leveraging Twilio's capabilities through OpenAI's Responses API

Ready to dive in? Here are tutorials and repositories showing how to build with Twilio APIs, a self-deployed Twilio MCP Server, and the OpenAI Responses API:

Tutorials

The following tutorial shows how to spin up your own Twilio MCP server and experiment with any use case you can imagine. In our example, we show how to use this setup to purchase a Twilio phone number and send an SMS saying 'Hello from your Twilio MCP Server!'.

Sample repos

You can access our repository which has our CLI plugin, and our repo which demos how to deploy an MCP server with Twilio Functions and use it with the Responses API:

Get started today

We're excited to be on this journey with OpenAI, helping to unlock the full potential of this new technology for our customers. We know you are already accessing tools through MCP and building agents – and we want to help accelerate that. We have many more solutions coming in this space… stay tuned.

We can’t wait to see what you build with Twilio and OpenAI!

Rikki Singh is a product and engineering leader based in Bay Area, California. At Twilio, she leads the Emerging Technology and Innovation group. Outside of work, Rikki enjoys dancing, hiking, and camping with her husband and toddler.

Kousha Talebian is a Principal Engineer from Vancouver, BC, working on the Emerging Technology and Innovation team. You can reach him at ktalebain [at] twilio.com . Outside of work, Kousha enjoys running with his dogs and experimenting with interesting cuisines worldwide.

Paul Kamp is the Technical Editor-in-Chief of the Twilio Blog. You can reach him at pkamp [at] twilio.com