这是一个用于 SMS.ir 消息服务的 Model Context Protocol (MCP) 服务器。它能让像 Claude 这样的 AI 助手,借助 SMS.ir API 来发送 SMS 短信,为消息通信提供了便捷的解决方案。
你可以直接通过 npx 从 npm 进行安装:
# 不需要安装;npx 可以按需运行
此方法更受推荐,因为它让你无需手动下载即可使用服务器,而且更新也很方便。
如果你更倾向于手动安装并自定义服务器,可以按以下步骤操作:
git clone https://github.com/your-username/mcp-sms-ir.git
cd mcp-sms-ir
bun install
# 或
npm install
npm run build
npm start
请访问 官方文档 了解详细信息。
在终端中运行以下命令:
npx mcp-sms-ir send_sms --mobile=09121234567 --message="Hello from Claude"
在终端中运行以下命令:
npx mcp-sms-ir send_bulk_sms --mobiles=09121234567,09123456789 --messageText="Hello from Claude"
在终端中运行以下命令:
npx mcp-sms-ir send_verification_code --mobile=09121234567 --templateId=100000 --parameters='[{"name":"CODE","value":"123456"}]'
在终端中运行以下命令:
npx mcp-sms-ir check_credit
本项目采用 MIT 许可证。