
popcornspace/voice-call-mcp-server 是从 https://github.com/popcornspace/voice-call-mcp-server. 导入的 MCP 服务器候选
概览
popcornspace/voice-call-mcp-server 是从 https://github.com/popcornspace/voice-call-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一款模型上下文协议(MCP)服务器,使Claude及其他AI助手能够利用Twilio和OpenAI(GPT-4o实时模型)发起和管理语音通话。
以此为基础,启动你AI驱动的语音通话探索,节省时间,并在基础上开发更多功能。
时序图
特色
- 通过Twilio 📞进行外拨电话
- 使用 GPT-4o 实时模型🎙️实时处理通话音频
- 通话🌐中的实时语言切换
- 预设的常见通话场景提示(如餐厅预订) 🍽️
- 使用 ngrok 🔄 实现的自动公共 URL 隧道
- 安全管理凭证 🔒
为什么是MCP?
模型上下文协议(MCP)弥合了人工智能助手与现实世界动作之间的桥梁。通过实现MCP,该服务器使像Claude这样的人工智能模型能够:
- 代表用户发起实际电话
- 处理并响应实时音频对话
- 执行需要语音交流的复杂任务
这一开源实现提供了透明度和可定制性,使开发者能够在保持对数据和隐私的控制的同时扩展功能。
要求
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Voice Call MCP Server
A Model Context Protocol (MCP) server that enables Claude and other AI assistants to initiate and manage voice calls using Twilio and OpenAI (GPT-4o Realtime model).
Use this as a base to kick-start your AI-powered voice calling explorations, save time and develop additional functionality on top of it.
Sequence Diagram
sequenceDiagram
participant AI as AI Assistant (e.g., Claude)
participant MCP as MCP Server
participant Twilio as Twilio
participant Phone as Destination Phone
participant OpenAI as OpenAI
AI->>MCP: 1) Initiate outbound call request (POST /calls)
MCP->>Twilio: 2) Place outbound call via Twilio API
Twilio->>Phone: 3) Ring the destination phone
Twilio->>MCP: 4) Call status updates & audio callbacks (webhooks)
MCP->>OpenAI: 5) Forward real-time audio to OpenaAI's realtime model
OpenAI->>MCP: 6) Return voice stream
MCP->>Twilio: 7) Send voice stream
Twilio->>Phone: 8) Forward voice stream
Note over Phone: Two-way conversation continues until the call ends
Features
- Make outbound phone calls via Twilio 📞
- Process call audio in real-time with GPT-4o Realtime model 🎙️
- Real-time language switching during calls 🌐
- Pre-built prompts for common calling scenarios (like restaurant reservations) 🍽️
- Automatic public URL tunneling with ngrok 🔄
- Secure handling of credentials 🔒
Why MCP?
The Model Context Protocol (MCP) bridges the gap between AI assistants and real-world actions. By implementing MCP, this server allows AI models like Claude to:
- Initiate actual phone calls on behalf of users
- Process and respond to real-time audio conversations
- Execute complex tasks requiring voice communication
This open-source implementation provides transparency and customizability, allowing developers to extend functionality while maintaining control over their data and privacy.
Requirements
- Node.js >= 22
- If you need to update Node.js, we recommend using
nvm(Node Version Manager):nvm install 22 nvm use 22
- If you need to update Node.js, we recommend using
- Twilio account with API credentials
- OpenAI API key
- Ngrok Authtoken
Installation
Manual Installation
-
Clone the repository
git clone https://github.com/lukaskai/voice-call-mcp-server.git cd voice-call-mcp-server -
Install dependencies and build
npm install npm run build
Configuration
The server requires several environment variables:
TWILIO_ACCOUNT_SID: Your Twilio account SIDTWILIO_AUTH_TOKEN: Your Twilio auth tokenTWILIO_NUMBER: Your Twilio numberOPENAI_API_KEY: Your OpenAI API keyNGROK_AUTHTOKEN: Your ngrok authtokenRECORD_CALLS: Set to “true” to record calls (optional)
Claude Desktop Configuration
To use this server with Claude Desktop, add the following to your configuration file:
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"voice-call": {
"command": "node",
"args": ["/path/to/your/mcp-new/dist/start-all.cjs"],
"env": {
"TWILIO_ACCOUNT_SID": "your_account_sid",
"TWILIO_AUTH_TOKEN": "your_auth_token",
"TWILIO_NUMBER": "your_e.164_format_number",
"OPENAI_API_KEY": "your_openai_api_key",
"NGROK_AUTHTOKEN": "your_ngrok_authtoken"
}
}
}
}