Twilio Call Service Server
БесплатноНе проверенEnables AI-driven interaction with Twilio call services, including initiating outbound calls and retrieving call history via FastMCP tools.
Описание
Enables AI-driven interaction with Twilio call services, including initiating outbound calls and retrieving call history via FastMCP tools.
README
This microservice replicates Axiom's Swift/Vapor IVR functionality using Python 3.11.9 and FastAPI.
Features
- Interactive Voice Response (IVR) system powered by Twilio.
- REST API endpoints for managing call sessions and handling Twilio webhooks.
- Proxy integration with PEAK API for user authentication.
- FastMCP Integration: Enables AI-driven tools and streaming capabilities for enhanced functionality.
- Supports deployment to Heroku with PostgreSQL.
Local Development
Prerequisites
- Python 3.11.9
- Twilio account credentials
- PostgreSQL (optional, SQLite is supported for local testing)
Setup
- Create a virtual environment and install dependencies:
python -m venv env && source env/bin/activate pip install -r requirements.txt - Copy the example environment file and edit credentials:
cp .env.example .env # edit credentials - Start the FastAPI server:
uvicorn app.main:app --reload
Expose port 8000 via ngrok for Twilio testing:
ngrok http 8000
Set your Twilio Voice webhooks:
- Incoming:
https://<ngrok>/twilio/voice/incoming(POST) - Outbound (when creating calls):
https://<ngrok>/twilio/call
Deploy to Heroku
heroku create my-twilio-call-svc
heroku addons:create heroku-postgresql:hobby-dev
heroku config:set TWILIO_ACCOUNT_SID=... TWILIO_AUTH_TOKEN=... TWILIO_PHONE_NUMBER=...
Push the code:
git push heroku Head:main
Heroku provides DB_URL automatically.
Triggering an outbound call via Twilio REST API
from twilio.rest import Client
from dotenv import load_dotenv
import os
load_dotenv()
client = Client(os.getenv("TWILIO_ACCOUNT_SID"), os.getenv("TWILIO_AUTH_TOKEN"))
call = client.calls.create(
to="<patient_phone>",
from_=os.getenv("TWILIO_PHONE_NUMBER"),
url="https://<app_url>/twilio/call?name=John&referrer=Dr.%20Smith"
)
print(call.sid)
Invoke-RestMethod -Method Post "https://dev-qa-axiom-cms-server-03e5df5ab8f3.herokuapp.com/test-call?to=+12345678900"
FastMCP Integration
This project uses FastMCP to provide AI-driven tools and streaming capabilities. Key features include:
- Tooling: Custom tools like
list_historyandmake_callare exposed via the MCP server. - Streaming: Supports Server-Sent Events (SSE) for real-time communication.
- OpenAPI Compatibility: Automatically generates OpenAPI documentation for MCP endpoints.
FastMCP is mounted at /mcp, and its streaming endpoint is available at /sse.
Example Usage
You can interact with the MCP server using HTTP requests or AI tools. For example:
- List Call History: Use the
list_historytool to retrieve call session data. - Make a Call: Use the
make_calltool to initiate a Twilio call.
For more details, refer to the FastMCP documentation: FastMCP Documentation.
Установка Twilio Call Service Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/caleb-overbay4/mcp-serverFAQ
Twilio Call Service Server MCP бесплатный?
Да, Twilio Call Service Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Twilio Call Service Server?
Нет, Twilio Call Service Server работает без API-ключей и переменных окружения.
Twilio Call Service Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Twilio Call Service Server в Claude Desktop, Claude Code или Cursor?
Открой Twilio Call Service Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Twilio Call Service Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
