RetellAI MCP 服务器
一种模型上下文协议服务器的实现,使人工智能助手能够与RetellAI的语音服务进行交互,以管理呼叫、座席、电话号码和语音选项。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"retellai-mcp-server": {
"args": [
"-y",
"@abhaybabbar/retellai-mcp-server"
],
"command": "npx",
"env": {
"RETELL_API_KEY": "\u003cyour_retellai_token\u003e"
}
}
}
}
该服务需要配置环境变量:RETELL_API_KEY
可用工具 (24 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
create_phone_call
Creates a new phone call
该工具无需必填参数,直接调用即可
create_web_call
Creates a new web call
该工具无需必填参数,直接调用即可
get_call
Gets a call by ID
该工具无需必填参数,直接调用即可
list_calls
Lists all calls
该工具无需必填参数,直接调用即可
update_call
Updates an existing call
该工具无需必填参数,直接调用即可
delete_call
Deletes a call
该工具无需必填参数,直接调用即可
list_agents
Lists all Retell agents
该工具无需必填参数,直接调用即可
create_agent
Creates a new Retell agent
该工具无需必填参数,直接调用即可
get_agent
Gets a Retell agent by ID
该工具无需必填参数,直接调用即可
update_agent
Updates an existing Retell agent
该工具无需必填参数,直接调用即可
delete_agent
Deletes a Retell agent
该工具无需必填参数,直接调用即可
get_agent_versions
Gets all versions of a Retell agent
该工具无需必填参数,直接调用即可
list_phone_numbers
Lists all Retell phone numbers
该工具无需必填参数,直接调用即可
create_phone_number
Creates a new phone number
该工具无需必填参数,直接调用即可
get_phone_number
Gets details of a specific phone number
该工具无需必填参数,直接调用即可
update_phone_number
Updates a phone number
该工具无需必填参数,直接调用即可
delete_phone_number
Deletes a phone number
该工具无需必填参数,直接调用即可
list_voices
Lists all available Retell voices
该工具无需必填参数,直接调用即可
get_voice
Gets details of a specific voice
该工具无需必填参数,直接调用即可
list_retell_llms
Lists all Retell LLMs
该工具无需必填参数,直接调用即可
create_retell_llm
Creates a new Retell LLM
该工具无需必填参数,直接调用即可
get_retell_llm
Gets a Retell LLM by ID
该工具无需必填参数,直接调用即可
update_retell_llm
Updates an existing Retell LLM
该工具无需必填参数,直接调用即可
delete_retell_llm
Deletes a Retell LLM
该工具无需必填参数,直接调用即可
服务介绍
RetellAI MCP 服务器
这是一个为 RetellAI 实现的模型上下文协议(MCP)服务器,允许 AI 助手与 RetellAI 的语音服务进行交互。
功能
RetellAI MCP 服务器提供了以下工具:
- 呼叫管理:创建和管理电话呼叫和网络呼叫
- 代理管理:使用不同的 LLM 配置创建和管理语音代理
- 电话号码管理:提供和配置电话号码
- 语音管理:访问和使用不同的语音选项
Claude 桌面设置
- 打开
Claude Desktop并按CMD + ,进入设置。 - 点击
开发者标签页。 - 点击
编辑配置按钮。 - 这将打开文件浏览器中的
claude_desktop_config.json文件。 - 从 Retell 仪表板获取您的 Retell API 密钥 (https://dashboard.retellai.com/apiKey)。
- 将以下内容添加到您的
claude_desktop_config.json文件中。更多详情请参见 这里。 - 编辑配置文件后重启 Claude Desktop。
json
{
"mcpServers": {
"retellai-mcp-server": {
"command": "npx",
"args": ["-y", "@abhaybabbar/retellai-mcp-server"],
"env": {
"RETELL_API_KEY": "<your_retellai_token>"
}
}
}
}
示例用例:
- 列出我在 RetellAI 中的所有电话号码
- 列出我所有的代理
- 告诉我更多关于披萨配送代理的信息
- 创建代理并进行呼叫示例:
- 创建一个代理,该代理会拨打我的本地披萨店电话,确保对话简短且切题。
- 订购一份玛格丽塔披萨
- 支付方式为货到付款
- 发送到 <地址>
- 代理应假装是我。我的名字是 <你的名字>
- 使用美国号码拨打我的本地披萨店电话 <电话号码>
仓库设置
-
安装依赖项:
bash
npm i -
创建一个包含您的 RetellAI API 密钥的
.env文件:RETELL_API_KEY=your_api_key_here
-
运行服务器:
bash
node src/retell/index.js
可用工具
呼叫工具
list_calls: 列出所有 Retell 呼叫create_phone_call: 创建一个新的电话呼叫create_web_call: 创建一个新的网络呼叫get_call: 获取特定呼叫的详细信息delete_call: 删除特定呼叫
代理工具
list_agents: 列出所有 Retell 代理create_agent: 创建一个新的 Retell 代理get_agent: 通过 ID 获取 Retell 代理update_agent: 更新现有的 Retell 代理delete_agent: 删除 Retell 代理get_agent_versions: 获取 Retell 代理的所有版本
电话号码工具
list_phone_numbers: 列出所有 Retell 电话号码create_phone_number: 创建一个新的电话号码get_phone_number: 获取特定电话号码的详细信息update_phone_number: 更新电话号码delete_phone_number: 删除电话号码
语音工具
list_voices: 列出所有可用的 Retell 语音get_voice: 获取特定语音的详细信息
许可证
MIT