WeChat MCP for Openclaw

A specialized Model Context Protocol (MCP) skill that enables AI agents to monitor, search, and send messages through the Windows WeChat desktop application.

dragon015
v1.0.0
Feb 28, 2026
6
4.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install wechat-mcp

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install wechat-mcp using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is WeChat MCP?

The WeChat MCP skill provides a bridge between AI agents and the Windows version of WeChat. By utilizing desktop automation libraries, it allows agents to interact with the chat interface as a human would, but with the speed and precision of a program. This integration is a prime example of how Openclaw Skills can extend the reach of AI into local desktop applications that lack official APIs.

This skill is particularly useful for developers and power users who want to incorporate WeChat into their automated workflows. It handles the complexities of window management, contact searching, and message delivery, making it a vital component for those building communication-centric AI tools.

WeChat MCP Use Cases

  • Automating outreach to specific contacts based on external triggers.
  • Integrating WeChat notifications into broader AI-driven devops or monitoring workflows.
  • Creating AI assistants that can read and respond to messages in independent chat windows.
  • Programmatic status monitoring of the WeChat application to ensure communication lines are active.

How WeChat MCP Works

  1. The agent calls the Openclaw Skills tool to retrieve the current status and window coordinates of the WeChat application.
  2. To send a message, the skill programmatically activates the WeChat window to bring it to the foreground.
  3. It utilizes search functionality to locate the specified contact and open the appropriate chat buffer.
  4. Text is transferred via the system clipboard to ensure multi-byte character support (like Chinese) before simulating a send command.
  5. The skill returns a confirmation of the action or provides screenshot data for visual verification of the interface state.

WeChat MCP Setup

First, ensure you have the WeChat desktop client installed on Windows. Then, install the required Python dependencies via pip:

pip install pyautogui pygetwindow pillow pyperclip opencv-python

Ensure that your Openclaw Skills environment has the necessary permissions to control the mouse and keyboard on your Windows machine.

WeChat MCP Data Schema & Taxonomy

File/Component Purpose
server.py The core MCP server that defines the tools and handles automation logic.
test_wechat.py A testing utility to verify that automation commands work correctly in your environment.
requirements.txt Defines the necessary libraries including pyautogui and opencv-python.
Tool: wechat_get_status Returns JSON data containing window status, title, position, and dimensions.
Tool: wechat_send_message Accepts a string message and handles the input workflow for the current chat.

WeChat MCP Advanced Features

  • Support for independent chat windows (Dragon windows) for multi-tasking conversations.
  • Visual interface recognition using OpenCV to ensure high accuracy in window detection.
  • Automatic window activation logic that brings WeChat to the front before executing commands.
  • Seamless integration with the broader Openclaw Skills ecosystem for complex, multi-agent communication chains.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*