Twilio 短信 MCP 服务器

Twilio 短信 MCP 服务器

通过 Twilio API 实现短信发送的 MCP 服务器。

快速入门

  1. 安装

    • 使用 npx 直接运行:

      npx twilio-messaging-mcp-server

    • 或全局安装:

      npm install -g twilio-messaging-mcp-server twilio-messaging-mcp-server

  2. 配置参数说明

    • accountSid: Twilio 账户 SID(以 'AC' 开头)
    • apiKey: Twilio API 密钥(以 'SK' 开头)
    • apiSecret: Twilio API 密钥密码
    • number: 发送短信的 Twilio 电话号码(E.164 格式,如 +1234567890)
  3. 本地开发配置 在 Claude Desktop 配置文件中添加以下内容:

    { "mcpServers": { "twilio-messaging": { "command": "node", "args": [ "/path/to/index.js", "your_account_sid_here", "your_api_key_here", "your_api_secret_here", "+1234567890" ] } } }

  4. 运行服务

    • 手动运行:

      node build/index.js "your_account_sid_here" "your_api_key_here" "your_api_secret" "+1234567890"

    • 或使用 npm 脚本:

      npm run dev -- "your_account_sid_here" "your_api_key_here" "your_api_secret" "+1234567890"

  5. 测试功能

    • 使用命令发送短信示例:

      Can you send an SMS to +1234567890 saying "Hello from MCP!"