wechat-skill — 技能工具
v1.0.1Windows 电脑端微信消息发送 MCP,实现在微信上给指定联系人发送消息
0· 303·1 当前·1 累计
安全扫描
OpenClaw
安全
high confidenceThe skill's code and instructions match its stated purpose (GUI automation to send WeChat messages on Windows); no unexplained external network access or secret requests, but it performs sensitive local actions (screenshots, clipboard/keystroke automation, files written to disk) that you should be aware of.
评估建议
This skill appears to do exactly what it claims: control the WeChat desktop window to send messages via GUI automation. Before installing or running it, consider the following: (1) it takes and saves screenshots of your WeChat window to the skill folder — these may contain sensitive messages; (2) it copies message text to your clipboard (overwriting whatever was there); (3) it sends global keystrokes and mouse clicks and can accidentally send input to the wrong window if focus is lost; (4) depen...详细分析 ▾
✓ 用途与能力
The name/description (WeChat message sending on Windows) align with the included Python code and SKILL.md. Requiring python and the listed pyautogui-related packages is proportional to GUI automation of WeChat. No unrelated credentials, binaries, or cloud services are requested.
ℹ 指令范围
SKILL.md instructs the agent to invoke the bundled Python script to control the WeChat GUI. The script captures window screenshots, activates windows, manipulates the clipboard, and sends keystrokes/mouse clicks — all within the stated purpose. These instructions do not attempt to read unrelated system files or environment variables, but they do perform broad desktop interactions (focus changes, global keystrokes) that can affect other applications.
ℹ 安装机制
There is no registry install spec; SKILL.md tells the user to pip install standard PyPI packages (pyautogui, opencv, etc.). Using PyPI packages is typical for this task; it is moderate-risk compared with a direct remote download but expected for a Python GUI tool. Users should review and install dependencies themselves rather than blindly running install commands.
ℹ 凭证需求
The skill requests no environment credentials (proportional). However, it writes screenshots to the skill directory (verify.png, search_result.png, input_verify.png, opened_chat.png, result.png) and overwrites the clipboard when pasting messages. These behaviors can leak or persist sensitive chat content locally and can overwrite user clipboard data unexpectedly.
✓ 持久化与权限
No elevated privileges or always:true flag are requested. The skill runs only when invoked and does not modify other skills or system-wide configs. It does require an interactive desktop session (access to the user's GUI) and will act as the logged-in user, so it must run in the user's session context.
安全有层次,运行前请审查代码。
运行时依赖
🖥️ OSWindows
版本
latestv1.0.12026/3/13
- Updata the description. - No code or documentation updates included in this version.
● 可疑
安装命令 点击复制
官方npx clawhub@latest install wechat-skill
镜像加速npx clawhub@latest install wechat-skill --registry https://cn.clawhub-mirror.com
技能文档
Windows 电脑端微信消息发送 MCP。
基于 wechat-mcp 增强优化,感谢原始作者!
重要:本技能仅在用户明确要求通过微信发送消息时使用,不要与其他通信工具混淆。
触发条件
当用户明确要求通过微信发送消息时使用,例如:
- ✅ "给李永辉发微信"
- ✅ "用微信发给文件传输助手:测试"
- ✅ "在微信上发送你好"
- ✅ "微信消息:周末加班"
禁止在以下场景使用(会混淆):
- ❌ 飞书消息
- ❌ 钉钉消息
- ❌ QQ 消息
- ❌ 短信
- ❌ 邮件
如果用户没有指定平台,只是说"发消息",请先询问用户要使用哪个平台。
功能
- 📸 截取微信窗口截图
- 👤 搜索并打开联系人聊天窗口
- ✉️ 给指定联系人发送消息
- 🔍 支持独立聊天窗口识别和消息发送
安装
需要先安装 Python 依赖:
pip install pyautogui pygetwindow pillow pyperclip opencv-python
使用方法
当我(AI)帮你发送微信消息时,我会通过 exec 工具调用这个 Python 脚本。
发送消息流程
- 告诉我你想发给谁和什么内容,比如:
- 我会搜索并显示搜索结果截图
- 如果有多个同名联系人,会让你选择:
- 你确认后,我再执行发送
两种发送方式
- 自动搜索发送(需要确认)
- 当前窗口发送(仅限已打开的聊天)
手动调用
如果你想自己运行,可以直接执行:
python C:\Users\toby\.openclaw\workspace\skills\wechat-mcp\server.py
但更简单的方式是让我帮你发送消息!
依赖
需要安装 Python 依赖(已安装):
- pyautogui
- pygetwindow
- pillow
- pyperclip
- opencv-python
MCP 工具
如果通过 MCP 协议调用:
{
"tools": [
{
"name": "wechat_get_status",
"description": "获取微信窗口状态"
},
{
"name": "wechat_send_message",
"description": "给当前聊天窗口发送消息",
"inputSchema": {
"type": "object",
"properties": {
"message": {"type": "string", "description": "消息内容"}
},
"required": ["message"]
}
}
]
}
注意事项
- 微信窗口需要保持打开状态
- 发送消息时会自动激活微信窗口
- 中文输入需要确保系统中文输入法正常工作
- 支持给独立聊天窗口(单独打开的 Dragon 窗口)发送消息
文件结构
wechat-mcp/
├── server.py # MCP 服务器主程序
├── test_wechat.py # 测试工具
├── requirements.txt # Python 依赖
└── README.md # 说明文档
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制