YS

yiyangli/sms-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

15 stars 7 forks 质量 65 趋势 21MIT

一个模型背景协议(MCP)服务器,它使克洛德和其他AI助手能够使用Twilio发送短消息.

概览

一个模型上下文协议(MCP)服务器,使克洛德和其他AI助手能够使用Twilio发送短信和MMS消息. - 发送短消息 QQ - 预建常见消息预告 QQ - 安全处理 Twilio 证书 QQ - 节点.js... 18 - 如果您需要更新Node.js, 我们建议使用 nvm( 节点版本管理器): - 如果您在 Claude 桌面中遇到任何错误, 请尝试在终端中运行以下命令以验证安装 : 服务器需要三种环境变量: - Account SID: 您的Twilio账户 SID - AUTH TOKEN: 您的Twilio 认证符号 - from Number: 您的Twilio 电话号码(E.164格式,例如+11234567890) 要使用 Claude Desktop 的服务器, 请在您的配置文件中添加以下内容 : :~/图书馆/应用程序支持/Claude/claude desktop config.json :% APPDATA\\\ Claude desktop config.json

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,使克洛德和其他AI助手能够使用Twilio发送短信和MMS消息.

□ 德莫语

□ 特性

  • 发送短消息QQ
  • 预建常见信息预告
  • 安全处理Twilio证书

□ 要求

  • 节点.js 18

  • 如果你需要更新节点.js,我们建议使用nvm(节点版本管理器):

  • 如果您在克洛德桌面中遇到任何错误, 请尝试在终端中运行以下命令以验证安装 :

□ 配置

服务器需要三种环境变量:

  • [[T1]: 您的Twilio 账户 SID
  • [[T2]: 你的Twilio 认证符
  • FROM_NUMBER:您的Twilio电话号码(E.164格式,例如+11234567890)

XQ 克劳德桌面配置

要使用 Claude Desktop 的服务器, 请在您的配置文件中添加以下内容 :

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

** 窗户**:%APPDATA%\Claude\claude_desktop_config.json

在此之后,重新启动克洛德桌面以重新装入配置. 如果连接, 您应该在 QQ 菜单下看到 Twilio 。

□ 实例与克洛德的互动

本页由 AI 翻译,技术细节请以原文为准。

README

Twilio MCP Server

A Model Context Protocol (MCP) server that enables Claude and other AI assistants to send SMS and MMS messages using Twilio.

Demo

Features

  • Send SMS messages 📱
  • Pre-built prompts for common messaging scenarios 📝
  • Secure handling of Twilio credentials 🔒

Requirements

  • Node.js >= 18
    • If you need to update Node.js, we recommend using nvm (Node Version Manager):
      nvm install 18.14.2
      nvm alias default 18.14.2
      
    • If you encounter any errors in Claude Desktop, try running the following command in your terminal to verify the installation:
      npx -y @yiyang.1i/sms-mcp-server
      

Configuration

The server requires three environment variables:

  • ACCOUNT_SID: Your Twilio account SID
  • AUTH_TOKEN: Your Twilio auth token
  • FROM_NUMBER: Your Twilio phone number (in E.164 format, e.g., +11234567890)

Claude Desktop Configuration

To use this server with Claude Desktop, add the following to your configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "twilio": {
      "command": "npx",
      "args": [
        "-y",
        "@yiyang.1i/sms-mcp-server"
      ],
      "env": {
        "ACCOUNT_SID": "your_account_sid",
        "AUTH_TOKEN": "your_auth_token",
        "FROM_NUMBER": "your_twilio_number"
      }
    }
  }
}

After that, restart Claude Desktop to reload the configuration. If connected, you should see Twilio under the 🔨 menu.

Example Interactions with Claude

Here are some natural ways to interact with the server through Claude:

  1. Simple SMS:
Send a text message to the number +11234567890 saying "Don't forget about dinner tonight!"
  1. Creative SMS:
Write a haiku about autumn and send it to my number +11234567890

Important Notes

  1. Phone Number Format: All phone numbers must be in E.164 format (e.g., +11234567890)
  2. Rate Limits: Be aware of your Twilio account’s rate limits and pricing
  3. Security: Keep your Twilio credentials secure and never commit them to version control

Troubleshooting

Common error messages and solutions:

  1. “Phone number must be in E.164 format”

    • Make sure the phone number starts with “+” and the country code
  2. “Invalid credentials”

    • Double-check your ACCOUNT_SID and AUTH_TOKEN. You can copy them from the Twilio Console

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Security

Please do not include any sensitive information (like phone numbers or Twilio credentials) in GitHub issues or pull requests.

在 GitHub 查看完整 README

安装

npx -y @yiyang.1i/sms-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "twilio": { "command": "npx", "args": [ "-y", "@yiyang.1i/sms-mcp-server" ], "env": { "ACCOUNT_SID": "your_account_sid", "AUTH_TOKEN": "your_auth_token", "FROM_NUMBER": "your_twilio_number" } } } }