Twilio Messaging MCP Server

Twilio Messaging MCP Server

site icon
2025.03.24 0
TypeScript短信服务Twilio 集成交流协作
Twilio Messaging MCP Server 是一个基于 MCP(Model Context Protocol)的服务,用于通过 Twilio API 发送短信。它提供了安全的凭证处理方式,无需环境变量,并使用 Twilio API 密钥以提高安全性。该服务可以与 MCP 客户端(如 Claude Desktop)集成,适用于需要发送短信的各种场景。
View on GitHub

Overview

基本能力

产品定位

Twilio Messaging MCP Server 是一个用于发送短信的服务,通过与 Twilio API 集成,提供安全、高效的短信发送能力。

核心功能

  • 通过 Twilio API 发送短信
  • 与 MCP 客户端(如 Claude Desktop)集成
  • 安全的凭证处理,无需环境变量
  • 使用 Twilio API 密钥以提高安全性

适用场景

  • 需要发送短信的通知系统
  • 与 Claude Desktop 集成的自动化短信发送
  • 需要安全凭证管理的短信服务

工具列表

  • send-sms:发送短信的工具
  • 参数:to(目标电话号码,E.164 格式)、message(短信内容)
  • 示例:Can you send an SMS to +1234567890 saying "Hello from MCP!"

常见问题解答

  • 如何获取 Twilio 凭证?:需要从 Twilio 控制台获取 Account SID、API Key 和 API Secret。
  • 如何配置 Claude Desktop?:需要在 Claude Desktop 的配置文件中添加 MCP 服务器的命令和参数。

使用教程

使用依赖

  • Node.js 环境
  • Twilio 账户(包含 Account SID、API Key 和 API Secret)

安装教程

  1. 通过 npx 直接使用: bash npx twilio-messaging-mcp-server <accountSid> <apiKey> <apiSecret> <number>
  2. 全局安装: bash npm install -g twilio-messaging-mcp-server twilio-messaging-mcp-server <accountSid> <apiKey> <apiSecret> <number>

调试方式

  1. 手动启动服务器: bash node build/index.js "your_account_sid_here" "your_api_key_here" "your_api_secret" "+1234567890"
  2. 使用开发脚本: bash npm run dev -- "your_account_sid_here" "your_api_key_here" "your_api_secret" "+1234567890"
  3. 检查输出: [TwilioMessagingServer] Server started successfully

许可证

该项目遵循 MIT 开源许可条款。