π¦ ClawHub
Windows WeChat MCP
by @openlark
Monitor WeChat window status, search contacts, and send messages on Windows via automated screenshots and input control.
π‘ Examples
1. Send a Message to a Specified Contact
from scripts.server import send_message_to_contactComplete flow: Search -> Open chat -> Send
send_message_to_contact("Contact Name", "Message content")
2. Send a Message to the Current Chat Window
from scripts.server import send_message_to_currentsend_message_to_current("Message content")
3. Get WeChat Status
from scripts.server import get_wechat_statusstatus = get_wechat_status()
Returns: {'status': 'running', 'title': 'WeChat', 'position': {'x': 0, 'y': 0}, 'size': {'width': 1920, 'height': 1080}}
βοΈ Configuration
1. The WeChat window must remain open 2. Python dependencies installed:
pip install pyautogui pygetwindow pillow pyperclip opencv-python
π Tips & Best Practices
1. The WeChat window is automatically activated when sending messages 2. Chinese input requires the system's Chinese input method to function properly 3. Supports sending messages to detached chat windows (separately opened Dragon windows)
TERMINAL
clawhub install windows-wechat-mcp