通过一条命令将MNotify集成到您的AI IDE中。
此包将MNotify短信API作为MCP服务器公开,因此工具如Cursor可以通过stdio安全地调用真实的MNotify操作(发送短信、管理联系人/群组/模板、投递报告)。该仓库还包括一个简单的交互式MNotify代理用于CLI使用。它基于Mnotify API v2.0。
在这里查看PyPI MCP包
MNOTIFY_API_KEYcurl -LsSf https://astral.sh/uv/install.sh | sh # 如果需要,请安装uv
uv venv
uv pip install -r requirements.txt
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pip install mnotify_mcp_server
export MNOTIFY_API_KEY=sk_mnotify_...
# 启动服务器(推荐)
mnotify_mcp server
# 其他选项
mnotify-mcp
python -m mnotify_mcp.server
.cursor/mcp.json(推荐){
"mcpServers": {
"mnotify": {
"command": "mnotify_mcp",
"args": ["server"]
}
}
}
从与虚拟环境相同的环境中重新启动cursor
mnotify_mcpserverMNOTIFY_API_KEY一个本地聊天代理,可以直接调用所有MNotify工具。

.env文件,内容如下:OPENROUTER_API_KEY=sk-or-v1-...
MNOTIFY_API_KEY=...
AGNO_API_KEY=ag-... # 可选,如果设置了监控。
uv run mnotify_agent.py
send_quick_bulk_sms, send_bulk_group_sms, update_scheduled_smssms_delivery_report, specific_sms_delivery_report, periodic_sms_delivery_reportadd_contact, update_contact, delete_contact, get_contact_details, get_contact_list, get_group_contactsadd_group, update_group, delete_group, get_group_details, get_group_listget_template_list, get_message_template, add_message_template, update_message_template, delete_message_templateregister_sender_id, check_sender_id, check_sms_balanceget_context_snapshot, resolve_group_namemessage长度≤460;sender_id长度≤11。schedule=true需要schedule_time(YYYY-MM-DD HH:MM)。verify_sender=true在发送前执行最佳努力的发送者状态检查。MNOTIFY_API_KEY。