Wechat Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Wechat Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<div align="center">
一个符合 Model Context Protocol (MCP) 标准的微信消息发送服务器,专为AI助手设计
快速开始 • 功能特点 • 使用方法 • API文档 • 贡献指南
</div>
Model Context Protocol (MCP) 是一个开放标准协议,用于连接AI助手与各种数据源和工具。它就像是AI应用的USB-C接口,提供了标准化的方式来连接AI模型与外部系统。
WeChat-MCP-Server/
├── 📂 src/
│ ├── 📄 __init__.py
│ ├── 📄 mcp_server.py # MCP服务器主要实现
│ └── 📄 wechat_controller.py # 微信自动化控制器
├── 📂 examples/
│ └── 📄 mcp_client_example.py # 客户端使用示例
├── 📂 docs/
│ └── 📄 QUICK_START.md # 快速开始指南
├── 📂 支持我们/
│ ├── 🖼️ 1.jpg # 支付宝收款码
│ └── 🖼️ 2.jpg # 微信赞赏码
├── 📄 mcp_config.json # MCP配置文件
├── 📄 requirements.txt # 依赖包列表
├── 📄 LICENSE # 许可证文件
└── 📄 README.md # 项目说明文档# 克隆项目
git clone https://github.com/1052666/WeChat-MCP-Server.git
cd WeChat-MCP-Server
# 安装依赖
pip install -r requirements.txt⚠️ 重要提醒
>
在使用前,请确保: - ✅ 微信客户端已安装并正在运行 - ✅ 已成功登录微信账号 - ✅ 微信窗口可见(不要最小化)
将此MCP服务器添加到您的AI助手配置中。以 Claude Desktop 为例:
{
"mcpServers": {
"wechat": {
"command": "python",
"args": ["C:/path/to/WeChat-MCP-Server/src/mcp_server.py"],
"env": {}
}
}
}注意: 请将 C:/path/to/WeChat-MCP-Server 替换为您实际的项目路径发送文本消息到指定的微信联系人或群组。
参数:
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
contact_name | string | ✅ | 联系人或群组名称 |
message | string | ✅ | 要发送的文本消息 |
示例:
{
"name": "send_wechat_message",
"arguments": {
"contact_name": "文件传输助手",
"message": "Hello from AI assistant!"
}
}安排在指定延迟后发送消息。
参数:
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
contact_name | string | ✅ | 联系人或群组名称 |
message | string | ✅ | 要发送的文本消息 |
delay_seconds | number | ✅ | 延迟发送的秒数 |
示例:
{
"name": "schedule_wechat_message",
"arguments": {
"contact_name": "文件传输助手",
"message": "This is a scheduled message!",
"delay_seconds": 30
}
}配置完成后,您可以直接在AI助手中使用自然语言请求:
💬 示例对话
>
- "帮我给张三发个微信消息说'会议推迟到下午3点'" - "10分钟后提醒我开会,发到工作群" - "给文件传输助手发送今天的工作总结"
运行示例客户端进行测试:
试想一下,您可以使用Cloud Code等自动化工具完成各种任务,并通过微信自动发送报备消息:
#### 📊 自动化场景示例
#### 💻 实现示例
# 示例:GitHub Actions完成后发送微信通知
import requests
def send_deployment_notification(status, details):
# 调用WeChat MCP Server API
payload = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "send_wechat_message",
"arguments": {
"contact_name": "技术团队群",
"message": f"🚀 部署状态: {status}\n📋 详情: {details}"
}
}
}
response = requests.post("http://localhost:8080/mcp", json=payload)
return response.json()
# 在CI/CD流程中调用
if __name__ == "__main__":
send_deployment_notification("成功", "版本v2.1.0已部署到生产环境")cd examples
python mcp_client_example.py本服务器实现了以下MCP标准方法:
| 方法 | 描述 |
|---|---|
initialize | 初始化服务器连接 |
tools/list | 列出可用工具 |
tools/call | 调用指定工具 |
<details> <summary>点击查看详细的消息格式示例</summary>
请求示例:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "send_wechat_message",
"arguments": {
"contact_name": "文件传输助手",
"message": "Hello World!"
}
},
"id": 1
}响应示例:
{
"jsonrpc": "2.0",
"result": {
"content": [
{
"type": "text",
"text": "Successfully sent message to 文件传输助手: Hello World!"
}
]
},
"id": 1
}</details>
#### 🔧 NT框架技术特性
#### 🎯 智能输入技术
⚠️ 重要提醒
>
- 使用期间请勿手动操作微信窗口 - 确保微信窗口可见且未被遮挡 - 建议先向"文件传输助手"测试
<details> <summary>📋 常见问题解决方案</summary>
</details>
服务器会输出详细的日志信息,包括:
mcp_server.py 中的 _register_tools() 方法添加工具定义wechat_controller.py 中添加具体功能当前版本仅支持Windows系统。要支持其他平台,需要:
如果您觉得这个项目对您有帮助,请考虑:
如果您愿意支持项目的持续发展,可以通过以下方式进行捐赠:
<div align="center">
支付宝收款码
<img src="支持我们/1.jpg" alt="支付宝收款码" width="200"/>
微信赞赏码
<img src="支持我们/2.jpg" alt="微信赞赏码" width="200"/>
</div>
您的每一份支持都是我们持续改进和维护项目的动力!❤️
🚨 严重警告
>
本项目涉及微信自动化操作,存在重大风险。使用前请充分评估风险并自行承担所有后果。
<details> <summary>📋 点击查看完整免责声明</summary>
开发者、贡献者、分发者在任何情况下均不承担任何责任,包括但不限于:
#### 直接责任免除
#### 间接责任免除
#### 法律责任免除
使用本项目即表示您:
以下情况严禁使用本项目:
虽然MIT许可证允许商业使用,但我们强烈建议:
如果您不同意上述任何条款,请立即停止下载、安装或使用本项目。继续使用即视为完全同意并接受所有免责条款。
</details>
本项目采用 MIT License 开源许可证。
<details> <summary>📋 许可证详情</summary>
MIT许可证允许:
但需要:
重要提醒:
</details>
我们欢迎所有形式的贡献!
如果您有任何问题、建议或合作意向,欢迎通过以下方式联系我们:
我们会尽快回复您的咨询!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)<div align="center">
</div>
<div align="center">
</div>
<div align="center">
感谢您使用 WeChat MCP Server!
如果这个项目对您有帮助,请考虑给我们一个 ⭐
</div>
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.