twilio mcp
通过Twilio发送短信的简单MCP服务器。纯TypeScript,无构建步骤。
用法
npx tsx src/index.ts --account-sid --auth-token --messaging-service-sid [--default-to ]参数
--account-sid-Twilio帐户SID(必需)--auth-token-Twilio认证令牌(必填)--messaging-service-sid-Twilio消息服务SID(必需)--default-to-默认收件人电话号码(可选)
Claude代码配置
添加 ~/.claude/settings.json:
{
"mcpServers": {
"twilio": {
"command": "npx",
"args": [
"tsx",
"/path/to/twilio-mcp/src/index.ts",
"--account-sid", "YOUR_ACCOUNT_SID",
"--auth-token", "YOUR_AUTH_TOKEN",
"--messaging-service-sid", "YOUR_MESSAGING_SERVICE_SID",
"--default-to", "+1987654321"
]
}
}
}工具
send_text
发送短信。
参数:
to(可选,如果--default-to已设置)-E.164格式的收件人电话号码message(必填)-要发送的短信
